Przeglądaj źródła

[crypto] Add ASN.1 OIDs for sha{224,384,512}WithRsaEncryption

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Tufan Karadere 9 lat temu
rodzic
commit
93370488ac
1 zmienionych plików z 18 dodań i 0 usunięć
  1. 18
    0
      src/include/ipxe/asn1.h

+ 18
- 0
src/include/ipxe/asn1.h Wyświetl plik

@@ -141,6 +141,24 @@ struct asn1_builder_header {
141 141
 	ASN1_OID_TRIPLE ( 113549 ), ASN1_OID_SINGLE ( 1 ),	\
142 142
 	ASN1_OID_SINGLE ( 1 ), ASN1_OID_SINGLE ( 11 )
143 143
 
144
+/** ASN.1 OID for sha384WithRSAEncryption (1.2.840.113549.1.1.12) */
145
+#define ASN1_OID_SHA384WITHRSAENCRYPTION			\
146
+	ASN1_OID_INITIAL ( 1, 2 ), ASN1_OID_DOUBLE ( 840 ),	\
147
+	ASN1_OID_TRIPLE ( 113549 ), ASN1_OID_SINGLE ( 1 ),	\
148
+	ASN1_OID_SINGLE ( 1 ), ASN1_OID_SINGLE ( 12 )
149
+
150
+/** ASN.1 OID for sha512WithRSAEncryption (1.2.840.113549.1.1.13) */
151
+#define ASN1_OID_SHA512WITHRSAENCRYPTION			\
152
+	ASN1_OID_INITIAL ( 1, 2 ), ASN1_OID_DOUBLE ( 840 ),	\
153
+	ASN1_OID_TRIPLE ( 113549 ), ASN1_OID_SINGLE ( 1 ),	\
154
+	ASN1_OID_SINGLE ( 1 ), ASN1_OID_SINGLE ( 13 )
155
+
156
+/** ASN.1 OID for sha224WithRSAEncryption (1.2.840.113549.1.1.14) */
157
+#define ASN1_OID_SHA224WITHRSAENCRYPTION			\
158
+	ASN1_OID_INITIAL ( 1, 2 ), ASN1_OID_DOUBLE ( 840 ),	\
159
+	ASN1_OID_TRIPLE ( 113549 ), ASN1_OID_SINGLE ( 1 ),	\
160
+	ASN1_OID_SINGLE ( 1 ), ASN1_OID_SINGLE ( 14 )
161
+
144 162
 /** ASN.1 OID for id-md5 (1.2.840.113549.2.5) */
145 163
 #define ASN1_OID_MD5						\
146 164
 	ASN1_OID_INITIAL ( 1, 2 ), ASN1_OID_DOUBLE ( 840 ),	\

Ładowanie…
Anuluj
Zapisz