| author | |
| committer | |
| log | 8a8fd47d217eadb8a45ec6b9325acfe1d42704d7 |
| tree | e83269ebea160aa0934a13ef011e3a1252a827aa |
| parent | daf91ed8d1149d10f0e4a597efc9f17c4a49b0ca |
| parent | f276bb107e3f33e0425558846f60f8ed079682d4 |
| signature |
TLS: The 0x1306 TLS identifier was updated to TLS_AEGIS_256_SHA5122 files changed, 7 insertions(+), 7 deletions(-)
lib/std/crypto/tls.zig+3-3| ... | @@ -290,7 +290,7 @@ pub const CipherSuite = enum(u16) { | ... | @@ -290,7 +290,7 @@ pub const CipherSuite = enum(u16) { |
| 290 | CHACHA20_POLY1305_SHA256 = 0x1303, | 290 | CHACHA20_POLY1305_SHA256 = 0x1303, |
| 291 | AES_128_CCM_SHA256 = 0x1304, | 291 | AES_128_CCM_SHA256 = 0x1304, |
| 292 | AES_128_CCM_8_SHA256 = 0x1305, | 292 | AES_128_CCM_8_SHA256 = 0x1305, |
| 293 | AEGIS_256_SHA384 = 0x1306, | 293 | AEGIS_256_SHA512 = 0x1306, |
| 294 | AEGIS_128L_SHA256 = 0x1307, | 294 | AEGIS_128L_SHA256 = 0x1307, |
| 295 | _, | 295 | _, |
| 296 | }; | 296 | }; |
| ... | @@ -330,7 +330,7 @@ pub const HandshakeCipher = union(enum) { | ... | @@ -330,7 +330,7 @@ pub const HandshakeCipher = union(enum) { |
| 330 | AES_128_GCM_SHA256: HandshakeCipherT(crypto.aead.aes_gcm.Aes128Gcm, crypto.hash.sha2.Sha256), | 330 | AES_128_GCM_SHA256: HandshakeCipherT(crypto.aead.aes_gcm.Aes128Gcm, crypto.hash.sha2.Sha256), |
| 331 | AES_256_GCM_SHA384: HandshakeCipherT(crypto.aead.aes_gcm.Aes256Gcm, crypto.hash.sha2.Sha384), | 331 | AES_256_GCM_SHA384: HandshakeCipherT(crypto.aead.aes_gcm.Aes256Gcm, crypto.hash.sha2.Sha384), |
| 332 | CHACHA20_POLY1305_SHA256: HandshakeCipherT(crypto.aead.chacha_poly.ChaCha20Poly1305, crypto.hash.sha2.Sha256), | 332 | CHACHA20_POLY1305_SHA256: HandshakeCipherT(crypto.aead.chacha_poly.ChaCha20Poly1305, crypto.hash.sha2.Sha256), |
| 333 | AEGIS_256_SHA384: HandshakeCipherT(crypto.aead.aegis.Aegis256, crypto.hash.sha2.Sha384), | 333 | AEGIS_256_SHA512: HandshakeCipherT(crypto.aead.aegis.Aegis256, crypto.hash.sha2.Sha512), |
| 334 | AEGIS_128L_SHA256: HandshakeCipherT(crypto.aead.aegis.Aegis128L, crypto.hash.sha2.Sha256), | 334 | AEGIS_128L_SHA256: HandshakeCipherT(crypto.aead.aegis.Aegis128L, crypto.hash.sha2.Sha256), |
| 335 | }; | 335 | }; |
| 336 | 336 | ||
| ... | @@ -355,7 +355,7 @@ pub const ApplicationCipher = union(enum) { | ... | @@ -355,7 +355,7 @@ pub const ApplicationCipher = union(enum) { |
| 355 | AES_128_GCM_SHA256: ApplicationCipherT(crypto.aead.aes_gcm.Aes128Gcm, crypto.hash.sha2.Sha256), | 355 | AES_128_GCM_SHA256: ApplicationCipherT(crypto.aead.aes_gcm.Aes128Gcm, crypto.hash.sha2.Sha256), |
| 356 | AES_256_GCM_SHA384: ApplicationCipherT(crypto.aead.aes_gcm.Aes256Gcm, crypto.hash.sha2.Sha384), | 356 | AES_256_GCM_SHA384: ApplicationCipherT(crypto.aead.aes_gcm.Aes256Gcm, crypto.hash.sha2.Sha384), |
| 357 | CHACHA20_POLY1305_SHA256: ApplicationCipherT(crypto.aead.chacha_poly.ChaCha20Poly1305, crypto.hash.sha2.Sha256), | 357 | CHACHA20_POLY1305_SHA256: ApplicationCipherT(crypto.aead.chacha_poly.ChaCha20Poly1305, crypto.hash.sha2.Sha256), |
| 358 | AEGIS_256_SHA384: ApplicationCipherT(crypto.aead.aegis.Aegis256, crypto.hash.sha2.Sha384), | 358 | AEGIS_256_SHA512: ApplicationCipherT(crypto.aead.aegis.Aegis256, crypto.hash.sha2.Sha512), |
| 359 | AEGIS_128L_SHA256: ApplicationCipherT(crypto.aead.aegis.Aegis128L, crypto.hash.sha2.Sha256), | 359 | AEGIS_128L_SHA256: ApplicationCipherT(crypto.aead.aegis.Aegis128L, crypto.hash.sha2.Sha256), |
| 360 | }; | 360 | }; |
| 361 | 361 |
lib/std/crypto/tls/Client.zig+4-4| ... | @@ -355,7 +355,7 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In | ... | @@ -355,7 +355,7 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In |
| 355 | inline .AES_128_GCM_SHA256, | 355 | inline .AES_128_GCM_SHA256, |
| 356 | .AES_256_GCM_SHA384, | 356 | .AES_256_GCM_SHA384, |
| 357 | .CHACHA20_POLY1305_SHA256, | 357 | .CHACHA20_POLY1305_SHA256, |
| 358 | .AEGIS_256_SHA384, | 358 | .AEGIS_256_SHA512, |
| 359 | .AEGIS_128L_SHA256, | 359 | .AEGIS_128L_SHA256, |
| 360 | => |tag| { | 360 | => |tag| { |
| 361 | const P = std.meta.TagPayloadByName(tls.HandshakeCipher, @tagName(tag)); | 361 | const P = std.meta.TagPayloadByName(tls.HandshakeCipher, @tagName(tag)); |
| ... | @@ -569,7 +569,7 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In | ... | @@ -569,7 +569,7 @@ pub fn init(stream: anytype, ca_bundle: Certificate.Bundle, host: []const u8) In |
| 569 | try hsd.ensure(sig_len); | 569 | try hsd.ensure(sig_len); |
| 570 | const encoded_sig = hsd.slice(sig_len); | 570 | const encoded_sig = hsd.slice(sig_len); |
| 571 | const max_digest_len = 64; | 571 | const max_digest_len = 64; |
| 572 | var verify_buffer = | 572 | var verify_buffer: [64 + 34 + max_digest_len]u8 = |
| 573 | ([1]u8{0x20} ** 64) ++ | 573 | ([1]u8{0x20} ** 64) ++ |
| 574 | "TLS 1.3, server CertificateVerify\x00".* ++ | 574 | "TLS 1.3, server CertificateVerify\x00".* ++ |
| 575 | @as([max_digest_len]u8, undefined); | 575 | @as([max_digest_len]u8, undefined); |
| ... | @@ -1406,7 +1406,7 @@ fn limitVecs(iovecs: []std.os.iovec, len: usize) []std.os.iovec { | ... | @@ -1406,7 +1406,7 @@ fn limitVecs(iovecs: []std.os.iovec, len: usize) []std.os.iovec { |
| 1406 | const cipher_suites = if (crypto.core.aes.has_hardware_support) | 1406 | const cipher_suites = if (crypto.core.aes.has_hardware_support) |
| 1407 | enum_array(tls.CipherSuite, &.{ | 1407 | enum_array(tls.CipherSuite, &.{ |
| 1408 | .AEGIS_128L_SHA256, | 1408 | .AEGIS_128L_SHA256, |
| 1409 | .AEGIS_256_SHA384, | 1409 | .AEGIS_256_SHA512, |
| 1410 | .AES_128_GCM_SHA256, | 1410 | .AES_128_GCM_SHA256, |
| 1411 | .AES_256_GCM_SHA384, | 1411 | .AES_256_GCM_SHA384, |
| 1412 | .CHACHA20_POLY1305_SHA256, | 1412 | .CHACHA20_POLY1305_SHA256, |
| ... | @@ -1415,7 +1415,7 @@ else | ... | @@ -1415,7 +1415,7 @@ else |
| 1415 | enum_array(tls.CipherSuite, &.{ | 1415 | enum_array(tls.CipherSuite, &.{ |
| 1416 | .CHACHA20_POLY1305_SHA256, | 1416 | .CHACHA20_POLY1305_SHA256, |
| 1417 | .AEGIS_128L_SHA256, | 1417 | .AEGIS_128L_SHA256, |
| 1418 | .AEGIS_256_SHA384, | 1418 | .AEGIS_256_SHA512, |
| 1419 | .AES_128_GCM_SHA256, | 1419 | .AES_128_GCM_SHA256, |
| 1420 | .AES_256_GCM_SHA384, | 1420 | .AES_256_GCM_SHA384, |
| 1421 | }); | 1421 | }); |