diff options
| author | Michael Brown | 2015-04-12 17:57:25 +0200 |
|---|---|---|
| committer | Michael Brown | 2015-04-12 18:02:11 +0200 |
| commit | ea3d5875cd8881273e02c3a0e70c7fe4317123f7 (patch) | |
| tree | 32dce14fa536551ee84cbcf2fe044277d2aace64 /src/include/ipxe/asn1.h | |
| parent | [crypto] Add SHA-512/256 algorithm (diff) | |
| download | ipxe-ea3d5875cd8881273e02c3a0e70c7fe4317123f7.tar.gz ipxe-ea3d5875cd8881273e02c3a0e70c7fe4317123f7.tar.xz ipxe-ea3d5875cd8881273e02c3a0e70c7fe4317123f7.zip | |
[crypto] Add SHA-512/224 algorithm
SHA-512/224 is almost identical to SHA-512, with differing initial
hash values and a truncated output length.
This implementation has been verified using the NIST SHA-512/224 test
vectors.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/asn1.h')
| -rw-r--r-- | src/include/ipxe/asn1.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/ipxe/asn1.h b/src/include/ipxe/asn1.h index f9ae3112b..795fb5706 100644 --- a/src/include/ipxe/asn1.h +++ b/src/include/ipxe/asn1.h @@ -181,6 +181,13 @@ struct asn1_builder_header { ASN1_OID_SINGLE ( 3 ), ASN1_OID_SINGLE ( 4 ), \ ASN1_OID_SINGLE ( 2 ), ASN1_OID_SINGLE ( 4 ) +/** ASN.1 OID for id-sha512-224 (2.16.840.1.101.3.4.2.5) */ +#define ASN1_OID_SHA512_224 \ + ASN1_OID_INITIAL ( 2, 16 ), ASN1_OID_DOUBLE ( 840 ), \ + ASN1_OID_SINGLE ( 1 ), ASN1_OID_SINGLE ( 101 ), \ + ASN1_OID_SINGLE ( 3 ), ASN1_OID_SINGLE ( 4 ), \ + ASN1_OID_SINGLE ( 2 ), ASN1_OID_SINGLE ( 5 ) + /** ASN.1 OID for id-sha512-256 (2.16.840.1.101.3.4.2.6) */ #define ASN1_OID_SHA512_256 \ ASN1_OID_INITIAL ( 2, 16 ), ASN1_OID_DOUBLE ( 840 ), \ |
