The error codes encode a bunch of values, so you won't see that value via a straight grep.
But you can use tpm2_rc_decode from the tpm2-tools project, like so:
$ tpm2_rc_decode 0x2c4
tpm:parameter(2):value is out of range or is not correct for the contex
See the tools project:
Note that the commands specification will show you what parameter 2 is:
Everything after the triple line starts the parameters starting at index 1.
So in this case the secret parameter is wrong.
Note that since TSS version 2.3.0 a software library was also added
for converting these return codes to more human understandable strings,
The header file is here:
and then you just link against lib tss2-rc, just in case you needed this built into
> -----Original Message-----
> From: Rahul Hardikar [mailto:firstname.lastname@example.org]
> Sent: Tuesday, March 10, 2020 5:02 PM
> To: email@example.com
> Subject: [tpm2] ESys_ActivateCredential
> Hi All,
> What does it mean when Esys_ActivateCredential returns 0x2c4? I don't see this
> error defined anywhere.