在TLS RFC中,在记录层中定义了安全参数。
BulkCipherAlgorithm bulk_cipher_algorithm;
CipherType cipher_type;
uint8 enc_key_length;
uint8 block_length;
uint8 fixed_iv_length;
uint8 record_iv_length;
MACAlgorithm mac_algorithm;
uint8 mac_length;
uint8 mac_key_length;
CompressionMethod compression_algorithm;
opaque master_secret[48];
opaque client_random[32];
opaque server_random[32];master_secret,clinetrandom ..etc在握手协议中进行交换。
但是cipherAlgorithm,mac算法?
这些也是用握手协议交换的吗?
我读了RFC,但找不到它
当这些值(关于加密和mac )被交换时?
发布于 2016-09-12 05:30:48
密码- mac算法是由在TLS握手过程中协商的密码套件定义的。客户机在ClientHello中提供了一个受支持的密码套件列表,服务器在ServerHello中接受一个特定的密码套件。另见RFC 5246 (TLS 1.2)第8节:
在RFC附录C 5246中,您可以找到密码套件到密码和mac算法的映射:
Cipher Suite Key Cipher Mac
Exchange
TLS_NULL_WITH_NULL_NULL NULL NULL NULL
TLS_RSA_WITH_NULL_MD5 RSA NULL MD5
TLS_RSA_WITH_NULL_SHA RSA NULL SHA
TLS_RSA_WITH_NULL_SHA256 RSA NULL SHA256
TLS_RSA_WITH_RC4_128_MD5 RSA RC4_128 MD5
...https://security.stackexchange.com/questions/136567
复制相似问题