Closed mgi closed 5 years ago
The info
vector seems to have the same role as the additional-data
vector for argon2, therefore the additional-data
keyword of the make-kdf
function can be used.
I'd say:
info
slot in the hmac-kdf
class.make-kdf
, initialize the info
slot with the value of additional-data
when instanciating the hmac-kdf
class.shared-initialize
, check that the info
slot will be set to a value that makes sense.derive-key
, fetch the info
slot and do stuff with it.Basically, it should be pretty similar to what is done with additional-data
for the argon2
class.
Implemented and merged (PR #20).
Hi,
I'm in the process of adding hmac-kdf RFC 5869 to ironclad. So far so good, but I don't know what to do with the optional
info
vector.Should I modify the
derive-key
interface to have it as a parameter? Should It be a slot into the newhmac-kdf
class?Thanks