summaryrefslogtreecommitdiffstats
path: root/src/crypto/mishmash/rsa_aes_cbc_sha1.c
diff options
context:
space:
mode:
authorMichael Brown2022-10-11 14:54:34 +0200
committerMichael Brown2022-10-11 15:37:12 +0200
commitea33ea33c0d77b853c39d7b0e8c54f1a6f56b6bc (patch)
treec36d42e2c31a03ffe03bb0a646a2c0e075082abf /src/crypto/mishmash/rsa_aes_cbc_sha1.c
parent[tls] Record ServerKeyExchange record, if provided (diff)
downloadipxe-ea33ea33c0d77b853c39d7b0e8c54f1a6f56b6bc.tar.gz
ipxe-ea33ea33c0d77b853c39d7b0e8c54f1a6f56b6bc.tar.xz
ipxe-ea33ea33c0d77b853c39d7b0e8c54f1a6f56b6bc.zip
[tls] Add key exchange mechanism to definition of cipher suite
Allow for the key exchange mechanism to vary depending upon the selected cipher suite. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto/mishmash/rsa_aes_cbc_sha1.c')
-rw-r--r--src/crypto/mishmash/rsa_aes_cbc_sha1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/crypto/mishmash/rsa_aes_cbc_sha1.c b/src/crypto/mishmash/rsa_aes_cbc_sha1.c
index 06722c0e1..04b4ce2a7 100644
--- a/src/crypto/mishmash/rsa_aes_cbc_sha1.c
+++ b/src/crypto/mishmash/rsa_aes_cbc_sha1.c
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
struct tls_cipher_suite tls_rsa_with_aes_128_cbc_sha __tls_cipher_suite (03) = {
.code = htons ( TLS_RSA_WITH_AES_128_CBC_SHA ),
.key_len = ( 128 / 8 ),
+ .exchange = &tls_pubkey_exchange_algorithm,
.pubkey = &rsa_algorithm,
.cipher = &aes_cbc_algorithm,
.digest = &sha1_algorithm,
@@ -42,6 +43,7 @@ struct tls_cipher_suite tls_rsa_with_aes_128_cbc_sha __tls_cipher_suite (03) = {
struct tls_cipher_suite tls_rsa_with_aes_256_cbc_sha __tls_cipher_suite (04) = {
.code = htons ( TLS_RSA_WITH_AES_256_CBC_SHA ),
.key_len = ( 256 / 8 ),
+ .exchange = &tls_pubkey_exchange_algorithm,
.pubkey = &rsa_algorithm,
.cipher = &aes_cbc_algorithm,
.digest = &sha1_algorithm,