diff options
author | Michael Brown | 2012-03-06 00:12:47 +0100 |
---|---|---|
committer | Michael Brown | 2012-03-06 00:13:52 +0100 |
commit | c8f52cccfbd54e764cafee627cb72059fbe93f79 (patch) | |
tree | ebac6a791274f467ad2da9494755c8abb461d5cd /src/include/ipxe/tls.h | |
parent | [tls] Support (and prefer) SHA-256 variants of existing cipher suites (diff) | |
download | ipxe-c8f52cccfbd54e764cafee627cb72059fbe93f79.tar.gz ipxe-c8f52cccfbd54e764cafee627cb72059fbe93f79.tar.xz ipxe-c8f52cccfbd54e764cafee627cb72059fbe93f79.zip |
[tls] Formalise the definition of a TLS cipher suite
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/tls.h')
-rw-r--r-- | src/include/ipxe/tls.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/include/ipxe/tls.h b/src/include/ipxe/tls.h index 8d4e709d..804e1a1f 100644 --- a/src/include/ipxe/tls.h +++ b/src/include/ipxe/tls.h @@ -99,8 +99,8 @@ enum tls_tx_pending { TLS_TX_FINISHED = 0x0010, }; -/** A TLS cipher specification */ -struct tls_cipherspec { +/** A TLS cipher suite */ +struct tls_cipher_suite { /** Public-key encryption algorithm */ struct pubkey_algorithm *pubkey; /** Bulk encryption cipher algorithm */ @@ -108,7 +108,15 @@ struct tls_cipherspec { /** MAC digest algorithm */ struct digest_algorithm *digest; /** Key length */ - size_t key_len; + uint16_t key_len; + /** Numeric code (in network-endian order) */ + uint16_t code; +}; + +/** A TLS cipher specification */ +struct tls_cipherspec { + /** Cipher suite */ + struct tls_cipher_suite *suite; /** Dynamically-allocated storage */ void *dynamic; /** Public key encryption context */ |