Closed dnaeon closed 1 year ago
When creating a HMAC, the provided key is processed (padded, hashed, etc) when the hmac
class is instanciated, but it is not kept as-is in any slot after that. So it's not possible to recover the key from the hmac
object.
Got it, thanks @glv2 !
Hey there,
I'm currently working on a new system for decoding and encoding JSON Web Keys (JWK).
In order to encode a symmetric key back to a JWK format, I need to access the internal MAC key, which I don't see it being exposed in ironclad.
For example:
Once I get the instance from
MAKE-MAC
, is there a way to get it back? Or should I just keep thekey
around when I need it?Thanks!
References: