aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/pccrd.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-08-12 12:36:41 +0100
committerMichael Brown <mcb30@ipxe.org>2024-08-14 13:04:01 +0100
commit97635eb71b5ad7e81e79f32fef5f4394bcee0722 (patch)
tree5cade59887c1c710ccd184bfc62cb16339b5a22b /src/net/pccrd.c
parent998edc6ec515a6c9b0635d728b1cc51253e7dd7f (diff)
downloadipxe-97635eb71b5ad7e81e79f32fef5f4394bcee0722.tar.gz
[crypto] Generalise cms_signature to cms_message
There is some exploitable similarity between the data structures used for representing CMS signatures and CMS encryption keys. In both cases, the CMS message fundamentally encodes a list of participants (either message signers or message recipients), where each participant has an associated certificate and an opaque octet string representing the signature or encrypted cipher key. The ASN.1 structures are not identical, but are sufficiently similar to be worth exploiting: for example, the SignerIdentifier and RecipientIdentifier data structures are defined identically. Rename data structures and functions, and add the concept of a CMS message type. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/pccrd.c')
0 files changed, 0 insertions, 0 deletions