]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[crypto] Allow for extraction of ASN.1 algorithm parameters
authorMichael Brown <mcb30@ipxe.org>
Mon, 26 Aug 2024 22:36:06 +0000 (23:36 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 28 Aug 2024 12:03:55 +0000 (13:03 +0100)
commit4b4a362f0713ffa08c9236d66a1881d6234d7717
tree70fca07b5f66b4b66a47fe405a04b577c150add4
parentbdb5b4aef46ed34b47094652f3eefc7d0463d166
[crypto] Allow for extraction of ASN.1 algorithm parameters

Some ASN.1 OID-identified algorithms require additional parameters,
such as an initialisation vector for a block cipher.  The structure of
the parameters is defined by the individual algorithm.

Extend asn1_algorithm() to allow these additional parameters to be
returned via a separate ASN.1 cursor.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/crypto/asn1.c
src/crypto/mishmash/oid_aes_cbc.c
src/crypto/mishmash/oid_aes_gcm.c
src/include/ipxe/asn1.h