diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-04-27 09:46:07 -0500 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2017-06-24 19:25:43 -0500 |
commit | d499a3e185d909c779801c6d1310218a25898341 (patch) | |
tree | 4f4c634fca7a57241a6ea348e6a850110f74f5f1 /util | |
parent | 6ffeb269a325febb6f48130ad2178d6dfb893bd4 (diff) |
Add constants for TLS 1.3 SignatureScheme values
Put them into the TLSProxy::Message namespace along with the extension
type constants.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3326)
Diffstat (limited to 'util')
-rw-r--r-- | util/TLSProxy/Message.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/util/TLSProxy/Message.pm b/util/TLSProxy/Message.pm index 4cb594cfef..a9002ec654 100644 --- a/util/TLSProxy/Message.pm +++ b/util/TLSProxy/Message.pm @@ -91,6 +91,33 @@ use constant { EXT_FORCE_LAST => 0xffff }; +# SignatureScheme of TLS 1.3, from +# https://tools.ietf.org/html/draft-ietf-tls-tls13-20#appendix-B.3.1.3 +# TODO(TLS1.3) update link to IANA registry after publication +# We have to manually grab the SHA224 equivalents from the old registry +use constant { + SIG_ALG_RSA_PKCS1_SHA256 => 0x0401, + SIG_ALG_RSA_PKCS1_SHA384 => 0x0501, + SIG_ALG_RSA_PKCS1_SHA512 => 0x0601, + SIG_ALG_ECDSA_SECP256R1_SHA256 => 0x0403, + SIG_ALG_ECDSA_SECP384R1_SHA384 => 0x0503, + SIG_ALG_ECDSA_SECP521R1_SHA512 => 0x0603, + SIG_ALG_RSA_PSS_SHA256 => 0x0804, + SIG_ALG_RSA_PSS_SHA384 => 0x0805, + SIG_ALG_RSA_PSS_SHA512 => 0x0806, + SIG_ALG_ED25519 => 0x0807, + SIG_ALG_ED448 => 0x0808, + SIG_ALG_RSA_PKCS1_SHA1 => 0x0201, + SIG_ALG_ECDSA_SHA1 => 0x0203, + SIG_ALG_DSA_SHA1 => 0x0202, + SIG_ALG_DSA_SHA256 => 0x0402, + SIG_ALG_DSA_SHA384 => 0x0502, + SIG_ALG_DSA_SHA512 => 0x0602, + OSSL_SIG_ALG_RSA_PKCS1_SHA224 => 0x0301, + OSSL_SIG_ALG_DSA_SHA224 => 0x0302, + OSSL_SIG_ALG_ECDSA_SHA224 => 0x0303 +}; + use constant { CIPHER_DHE_RSA_AES_128_SHA => 0x0033, CIPHER_ADH_AES_128_SHA => 0x0034, |