mirror of
https://github.com/ziglang/zig.git
synced 2024-11-13 23:52:57 +00:00
std.crypto.tls: advertise all supported signature algorithms
This commit is contained in:
parent
fbaefcaa94
commit
a4e88abf04
@ -266,6 +266,17 @@ pub const SignatureScheme = enum(u16) {
|
||||
rsa_pkcs1_sha1 = 0x0201,
|
||||
ecdsa_sha1 = 0x0203,
|
||||
|
||||
ecdsa_brainpoolP256r1tls13_sha256 = 0x081a,
|
||||
ecdsa_brainpoolP384r1tls13_sha384 = 0x081b,
|
||||
ecdsa_brainpoolP512r1tls13_sha512 = 0x081c,
|
||||
|
||||
rsa_sha224 = 0x0301,
|
||||
dsa_sha224 = 0x0302,
|
||||
ecdsa_sha224 = 0x0303,
|
||||
dsa_sha256 = 0x0402,
|
||||
dsa_sha384 = 0x0502,
|
||||
dsa_sha512 = 0x0602,
|
||||
|
||||
_,
|
||||
};
|
||||
|
||||
|
@ -209,9 +209,16 @@ pub fn init(stream: anytype, options: Options) InitError(@TypeOf(stream))!Client
|
||||
})) ++ tls.extension(.signature_algorithms, array(u16, tls.SignatureScheme, .{
|
||||
.ecdsa_secp256r1_sha256,
|
||||
.ecdsa_secp384r1_sha384,
|
||||
.rsa_pkcs1_sha256,
|
||||
.rsa_pkcs1_sha384,
|
||||
.rsa_pkcs1_sha512,
|
||||
.rsa_pss_rsae_sha256,
|
||||
.rsa_pss_rsae_sha384,
|
||||
.rsa_pss_rsae_sha512,
|
||||
.rsa_pss_pss_sha256,
|
||||
.rsa_pss_pss_sha384,
|
||||
.rsa_pss_pss_sha512,
|
||||
.rsa_pkcs1_sha1,
|
||||
.ed25519,
|
||||
})) ++ tls.extension(.supported_groups, array(u16, tls.NamedGroup, .{
|
||||
.x25519_ml_kem768,
|
||||
|
Loading…
Reference in New Issue
Block a user