diff options
author | tb <> | 2023-04-25 15:46:54 +0000 |
---|---|---|
committer | tb <> | 2023-04-25 15:46:54 +0000 |
commit | 986af8b8c75e881cc58bc780520a6f87826e92c4 (patch) | |
tree | 907c72cb9ccbc5764cfb6c6905d6f1304490263a | |
parent | 349a04c9783d2e8cecfe7947de8afc4ee501a27d (diff) | |
download | openbsd-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.num | 28 | ||||
-rw-r--r-- | src/lib/libcrypto/objects/objects.txt | 51 |
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 | |||
1022 | hkdf 1022 | 1022 | hkdf 1022 |
1023 | id_smime_aa_signingCertificateV2 1023 | 1023 | id_smime_aa_signingCertificateV2 1023 |
1024 | id_ct_signedTAL 1024 | 1024 | id_ct_signedTAL 1024 |
1025 | sha512_224WithRSAEncryption 1025 | ||
1026 | sha512_256WithRSAEncryption 1026 | ||
1027 | hmacWithSHA512_224 1027 | ||
1028 | hmacWithSHA512_256 1028 | ||
1029 | sha512_224 1029 | ||
1030 | sha512_256 1030 | ||
1031 | sha3_224 1031 | ||
1032 | sha3_256 1032 | ||
1033 | sha3_384 1033 | ||
1034 | sha3_512 1034 | ||
1035 | hmac_sha3_224 1035 | ||
1036 | hmac_sha3_256 1036 | ||
1037 | hmac_sha3_384 1037 | ||
1038 | hmac_sha3_512 1038 | ||
1039 | dsa_with_SHA384 1039 | ||
1040 | dsa_with_SHA512 1040 | ||
1041 | dsa_with_SHA3_224 1041 | ||
1042 | dsa_with_SHA3_256 1042 | ||
1043 | dsa_with_SHA3_384 1043 | ||
1044 | dsa_with_SHA3_512 1044 | ||
1045 | ecdsa_with_SHA3_224 1045 | ||
1046 | ecdsa_with_SHA3_256 1046 | ||
1047 | ecdsa_with_SHA3_384 1047 | ||
1048 | ecdsa_with_SHA3_512 1048 | ||
1049 | RSA_SHA3_224 1049 | ||
1050 | RSA_SHA3_256 1050 | ||
1051 | RSA_SHA3_384 1051 | ||
1052 | RSA_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 | |||
175 | pkcs1 12 : RSA-SHA384 : sha384WithRSAEncryption | 175 | pkcs1 12 : RSA-SHA384 : sha384WithRSAEncryption |
176 | pkcs1 13 : RSA-SHA512 : sha512WithRSAEncryption | 176 | pkcs1 13 : RSA-SHA512 : sha512WithRSAEncryption |
177 | pkcs1 14 : RSA-SHA224 : sha224WithRSAEncryption | 177 | pkcs1 14 : RSA-SHA224 : sha224WithRSAEncryption |
178 | pkcs1 15 : RSA-SHA512/224 : sha512-224WithRSAEncryption | ||
179 | pkcs1 16 : RSA-SHA512/256 : sha512-256WithRSAEncryption | ||
178 | 180 | ||
179 | pkcs 3 : pkcs3 | 181 | pkcs 3 : pkcs3 |
180 | pkcs3 1 : : dhKeyAgreement | 182 | pkcs3 1 : : dhKeyAgreement |
@@ -379,6 +381,9 @@ rsadsi 2 9 : : hmacWithSHA256 | |||
379 | rsadsi 2 10 : : hmacWithSHA384 | 381 | rsadsi 2 10 : : hmacWithSHA384 |
380 | rsadsi 2 11 : : hmacWithSHA512 | 382 | rsadsi 2 11 : : hmacWithSHA512 |
381 | 383 | ||
384 | rsadsi 2 12 : : hmacWithSHA512-224 | ||
385 | rsadsi 2 13 : : hmacWithSHA512-256 | ||
386 | |||
382 | rsadsi 3 2 : RC2-CBC : rc2-cbc | 387 | rsadsi 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 |
871 | id-smime-alg 8 : ZLIB : zlib compression | 876 | id-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 | ||
879 | aes 1 : AES-128-ECB : aes-128-ecb | 890 | aes 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 |
932 | nist_hashalgs 1 : SHA256 : sha256 | 943 | nist_hashalgs 1 : SHA256 : sha256 |
933 | nist_hashalgs 2 : SHA384 : sha384 | 944 | nist_hashalgs 2 : SHA384 : sha384 |
934 | nist_hashalgs 3 : SHA512 : sha512 | 945 | nist_hashalgs 3 : SHA512 : sha512 |
935 | nist_hashalgs 4 : SHA224 : sha224 | 946 | nist_hashalgs 4 : SHA224 : sha224 |
936 | 947 | nist_hashalgs 5 : SHA512-224 : sha512-224 | |
937 | # OIDs for dsa-with-sha224 and dsa-with-sha256 | 948 | nist_hashalgs 6 : SHA512-256 : sha512-256 |
938 | !Alias dsa_with_sha2 nistAlgorithms 3 | 949 | nist_hashalgs 7 : SHA3-224 : sha3-224 |
939 | dsa_with_sha2 1 : dsa_with_SHA224 | 950 | nist_hashalgs 8 : SHA3-256 : sha3-256 |
940 | dsa_with_sha2 2 : dsa_with_SHA256 | 951 | nist_hashalgs 9 : SHA3-384 : sha3-384 |
952 | nist_hashalgs 10 : SHA3-512 : sha3-512 | ||
953 | #nist_hashalgs 11 : SHAKE128 : shake128 | ||
954 | #nist_hashalgs 12 : SHAKE256 : shake256 | ||
955 | nist_hashalgs 13 : id-hmacWithSHA3-224 : hmac-sha3-224 | ||
956 | nist_hashalgs 14 : id-hmacWithSHA3-256 : hmac-sha3-256 | ||
957 | nist_hashalgs 15 : id-hmacWithSHA3-384 : hmac-sha3-384 | ||
958 | nist_hashalgs 16 : id-hmacWithSHA3-512 : hmac-sha3-512 | ||
959 | |||
960 | # NIST CSOR Signature Algorithms | ||
961 | !Alias nist_sigalgs nistAlgorithms 3 | ||
962 | nist_sigalgs 1 : id-dsa-with-sha224 : dsa_with_SHA224 | ||
963 | nist_sigalgs 2 : id-dsa-with-sha256 : dsa_with_SHA256 | ||
964 | nist_sigalgs 3 : id-dsa-with-sha384 : dsa_with_SHA384 | ||
965 | nist_sigalgs 4 : id-dsa-with-sha512 : dsa_with_SHA512 | ||
966 | nist_sigalgs 5 : id-dsa-with-sha3-224 : dsa_with_SHA3-224 | ||
967 | nist_sigalgs 6 : id-dsa-with-sha3-256 : dsa_with_SHA3-256 | ||
968 | nist_sigalgs 7 : id-dsa-with-sha3-384 : dsa_with_SHA3-384 | ||
969 | nist_sigalgs 8 : id-dsa-with-sha3-512 : dsa_with_SHA3-512 | ||
970 | nist_sigalgs 9 : id-ecdsa-with-sha3-224 : ecdsa_with_SHA3-224 | ||
971 | nist_sigalgs 10 : id-ecdsa-with-sha3-256 : ecdsa_with_SHA3-256 | ||
972 | nist_sigalgs 11 : id-ecdsa-with-sha3-384 : ecdsa_with_SHA3-384 | ||
973 | nist_sigalgs 12 : id-ecdsa-with-sha3-512 : ecdsa_with_SHA3-512 | ||
974 | nist_sigalgs 13 : id-rsassa-pkcs1-v1_5-with-sha3-224 : RSA-SHA3-224 | ||
975 | nist_sigalgs 14 : id-rsassa-pkcs1-v1_5-with-sha3-256 : RSA-SHA3-256 | ||
976 | nist_sigalgs 15 : id-rsassa-pkcs1-v1_5-with-sha3-384 : RSA-SHA3-384 | ||
977 | nist_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 |