aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/sha1.c')
-rw-r--r--src/crypto/sha1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crypto/sha1.c b/src/crypto/sha1.c
index fd271a638..7f287d3c4 100644
--- a/src/crypto/sha1.c
+++ b/src/crypto/sha1.c
@@ -30,6 +30,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#include <assert.h>
#include <ipxe/rotate.h>
#include <ipxe/crypto.h>
+#include <ipxe/asn1.h>
#include <ipxe/sha1.h>
/** SHA-1 variables */
@@ -258,3 +259,13 @@ struct digest_algorithm sha1_algorithm = {
.update = sha1_update,
.final = sha1_final,
};
+
+/** "sha1" object identifier */
+static uint8_t oid_sha1[] = { ASN1_OID_SHA1 };
+
+/** "sha1" OID-identified algorithm */
+struct asn1_algorithm oid_sha1_algorithm __asn1_algorithm = {
+ .name = "sha1",
+ .digest = &sha1_algorithm,
+ .oid = ASN1_OID_CURSOR ( oid_sha1 ),
+};