summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-04-25 15:46:54 +0000
committertb <>2023-04-25 15:46:54 +0000
commit986af8b8c75e881cc58bc780520a6f87826e92c4 (patch)
tree907c72cb9ccbc5764cfb6c6905d6f1304490263a
parent349a04c9783d2e8cecfe7947de8afc4ee501a27d (diff)
downloadopenbsd-986af8b8c75e881cc58bc780520a6f87826e92c4.tar.gz
openbsd-986af8b8c75e881cc58bc780520a6f87826e92c4.tar.bz2
openbsd-986af8b8c75e881cc58bc780520a6f87826e92c4.zip
Add NIDs for truncated SHA-2, SHA-3 and related things
From jsing
-rw-r--r--src/lib/libcrypto/objects/obj_mac.num28
-rw-r--r--src/lib/libcrypto/objects/objects.txt51
2 files changed, 72 insertions, 7 deletions
diff --git a/src/lib/libcrypto/objects/obj_mac.num b/src/lib/libcrypto/objects/obj_mac.num
index 3371a1d131..15178e37d0 100644
--- a/src/lib/libcrypto/objects/obj_mac.num
+++ b/src/lib/libcrypto/objects/obj_mac.num
@@ -1022,3 +1022,31 @@ ct_cert_scts 1021
1022hkdf 1022 1022hkdf 1022
1023id_smime_aa_signingCertificateV2 1023 1023id_smime_aa_signingCertificateV2 1023
1024id_ct_signedTAL 1024 1024id_ct_signedTAL 1024
1025sha512_224WithRSAEncryption 1025
1026sha512_256WithRSAEncryption 1026
1027hmacWithSHA512_224 1027
1028hmacWithSHA512_256 1028
1029sha512_224 1029
1030sha512_256 1030
1031sha3_224 1031
1032sha3_256 1032
1033sha3_384 1033
1034sha3_512 1034
1035hmac_sha3_224 1035
1036hmac_sha3_256 1036
1037hmac_sha3_384 1037
1038hmac_sha3_512 1038
1039dsa_with_SHA384 1039
1040dsa_with_SHA512 1040
1041dsa_with_SHA3_224 1041
1042dsa_with_SHA3_256 1042
1043dsa_with_SHA3_384 1043
1044dsa_with_SHA3_512 1044
1045ecdsa_with_SHA3_224 1045
1046ecdsa_with_SHA3_256 1046
1047ecdsa_with_SHA3_384 1047
1048ecdsa_with_SHA3_512 1048
1049RSA_SHA3_224 1049
1050RSA_SHA3_256 1050
1051RSA_SHA3_384 1051
1052RSA_SHA3_512 1052
diff --git a/src/lib/libcrypto/objects/objects.txt b/src/lib/libcrypto/objects/objects.txt
index 4ce86ac88e..964a0ec46e 100644
--- a/src/lib/libcrypto/objects/objects.txt
+++ b/src/lib/libcrypto/objects/objects.txt
@@ -175,6 +175,8 @@ pkcs1 11 : RSA-SHA256 : sha256WithRSAEncryption
175pkcs1 12 : RSA-SHA384 : sha384WithRSAEncryption 175pkcs1 12 : RSA-SHA384 : sha384WithRSAEncryption
176pkcs1 13 : RSA-SHA512 : sha512WithRSAEncryption 176pkcs1 13 : RSA-SHA512 : sha512WithRSAEncryption
177pkcs1 14 : RSA-SHA224 : sha224WithRSAEncryption 177pkcs1 14 : RSA-SHA224 : sha224WithRSAEncryption
178pkcs1 15 : RSA-SHA512/224 : sha512-224WithRSAEncryption
179pkcs1 16 : RSA-SHA512/256 : sha512-256WithRSAEncryption
178 180
179pkcs 3 : pkcs3 181pkcs 3 : pkcs3
180pkcs3 1 : : dhKeyAgreement 182pkcs3 1 : : dhKeyAgreement
@@ -379,6 +381,9 @@ rsadsi 2 9 : : hmacWithSHA256
379rsadsi 2 10 : : hmacWithSHA384 381rsadsi 2 10 : : hmacWithSHA384
380rsadsi 2 11 : : hmacWithSHA512 382rsadsi 2 11 : : hmacWithSHA512
381 383
384rsadsi 2 12 : : hmacWithSHA512-224
385rsadsi 2 13 : : hmacWithSHA512-256
386
382rsadsi 3 2 : RC2-CBC : rc2-cbc 387rsadsi 3 2 : RC2-CBC : rc2-cbc
383 : RC2-ECB : rc2-ecb 388 : RC2-ECB : rc2-ecb
384!Cname rc2-cfb64 389!Cname rc2-cfb64
@@ -870,10 +875,16 @@ mime-mhs-headings 2 : id-hex-multipart-message : id-hex-multipart-message
870!Cname zlib-compression 875!Cname zlib-compression
871id-smime-alg 8 : ZLIB : zlib compression 876id-smime-alg 8 : ZLIB : zlib compression
872 877
873# AES aka Rijndael 878#
879# NIST CSOR
880#
881# https://csrc.nisg.gov/projects/computer-security-objects/register/algorithm-registration
882#
874 883
875!Alias csor 2 16 840 1 101 3 884!Alias csor 2 16 840 1 101 3
876!Alias nistAlgorithms csor 4 885!Alias nistAlgorithms csor 4
886
887# AES aka Rijndael
877!Alias aes nistAlgorithms 1 888!Alias aes nistAlgorithms 1
878 889
879aes 1 : AES-128-ECB : aes-128-ecb 890aes 1 : AES-128-ECB : aes-128-ecb
@@ -927,17 +938,43 @@ aes 48 : id-aes256-wrap-pad
927 : DES-EDE3-CFB1 : des-ede3-cfb1 938 : DES-EDE3-CFB1 : des-ede3-cfb1
928 : DES-EDE3-CFB8 : des-ede3-cfb8 939 : DES-EDE3-CFB8 : des-ede3-cfb8
929 940
930# OIDs for SHA224, SHA256, SHA385 and SHA512, according to x9.84. 941# NIST CSOR Hash Algorithms (see also RFC 4231, RFC 8017, RFC 8702)
931!Alias nist_hashalgs nistAlgorithms 2 942!Alias nist_hashalgs nistAlgorithms 2
932nist_hashalgs 1 : SHA256 : sha256 943nist_hashalgs 1 : SHA256 : sha256
933nist_hashalgs 2 : SHA384 : sha384 944nist_hashalgs 2 : SHA384 : sha384
934nist_hashalgs 3 : SHA512 : sha512 945nist_hashalgs 3 : SHA512 : sha512
935nist_hashalgs 4 : SHA224 : sha224 946nist_hashalgs 4 : SHA224 : sha224
936 947nist_hashalgs 5 : SHA512-224 : sha512-224
937# OIDs for dsa-with-sha224 and dsa-with-sha256 948nist_hashalgs 6 : SHA512-256 : sha512-256
938!Alias dsa_with_sha2 nistAlgorithms 3 949nist_hashalgs 7 : SHA3-224 : sha3-224
939dsa_with_sha2 1 : dsa_with_SHA224 950nist_hashalgs 8 : SHA3-256 : sha3-256
940dsa_with_sha2 2 : dsa_with_SHA256 951nist_hashalgs 9 : SHA3-384 : sha3-384
952nist_hashalgs 10 : SHA3-512 : sha3-512
953#nist_hashalgs 11 : SHAKE128 : shake128
954#nist_hashalgs 12 : SHAKE256 : shake256
955nist_hashalgs 13 : id-hmacWithSHA3-224 : hmac-sha3-224
956nist_hashalgs 14 : id-hmacWithSHA3-256 : hmac-sha3-256
957nist_hashalgs 15 : id-hmacWithSHA3-384 : hmac-sha3-384
958nist_hashalgs 16 : id-hmacWithSHA3-512 : hmac-sha3-512
959
960# NIST CSOR Signature Algorithms
961!Alias nist_sigalgs nistAlgorithms 3
962nist_sigalgs 1 : id-dsa-with-sha224 : dsa_with_SHA224
963nist_sigalgs 2 : id-dsa-with-sha256 : dsa_with_SHA256
964nist_sigalgs 3 : id-dsa-with-sha384 : dsa_with_SHA384
965nist_sigalgs 4 : id-dsa-with-sha512 : dsa_with_SHA512
966nist_sigalgs 5 : id-dsa-with-sha3-224 : dsa_with_SHA3-224
967nist_sigalgs 6 : id-dsa-with-sha3-256 : dsa_with_SHA3-256
968nist_sigalgs 7 : id-dsa-with-sha3-384 : dsa_with_SHA3-384
969nist_sigalgs 8 : id-dsa-with-sha3-512 : dsa_with_SHA3-512
970nist_sigalgs 9 : id-ecdsa-with-sha3-224 : ecdsa_with_SHA3-224
971nist_sigalgs 10 : id-ecdsa-with-sha3-256 : ecdsa_with_SHA3-256
972nist_sigalgs 11 : id-ecdsa-with-sha3-384 : ecdsa_with_SHA3-384
973nist_sigalgs 12 : id-ecdsa-with-sha3-512 : ecdsa_with_SHA3-512
974nist_sigalgs 13 : id-rsassa-pkcs1-v1_5-with-sha3-224 : RSA-SHA3-224
975nist_sigalgs 14 : id-rsassa-pkcs1-v1_5-with-sha3-256 : RSA-SHA3-256
976nist_sigalgs 15 : id-rsassa-pkcs1-v1_5-with-sha3-384 : RSA-SHA3-384
977nist_sigalgs 16 : id-rsassa-pkcs1-v1_5-with-sha3-512 : RSA-SHA3-512
941 978
942# Hold instruction CRL entry extension 979# Hold instruction CRL entry extension
943!Cname hold-instruction-code 980!Cname hold-instruction-code