aboutsummaryrefslogtreecommitdiffstats
path: root/src/crypto/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/md5.c')
-rw-r--r--src/crypto/md5.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crypto/md5.c b/src/crypto/md5.c
index 2d0d03d13..b8b7b43dd 100644
--- a/src/crypto/md5.c
+++ b/src/crypto/md5.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/md5.h>
/** MD5 variables */
@@ -284,3 +285,13 @@ struct digest_algorithm md5_algorithm = {
.update = md5_update,
.final = md5_final,
};
+
+/** "md5" object identifier */
+static uint8_t oid_md5[] = { ASN1_OID_MD5 };
+
+/** "md5" OID-identified algorithm */
+struct asn1_algorithm oid_md5_algorithm __asn1_algorithm = {
+ .name = "md5",
+ .digest = &md5_algorithm,
+ .oid = ASN1_OID_CURSOR ( oid_md5 ),
+};