[tls] Formalise the definition of a TLS cipher suite

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-03-05 23:12:47 +00:00
parent 6069b09bfc
commit c8f52cccfb
2 changed files with 125 additions and 84 deletions

View File

@@ -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 */