libsec: add aes_128_cbc and aes_256_cbc ciphers
This commit is contained in:
parent
774ccb19e4
commit
99f9a60178
2 changed files with 8 additions and 4 deletions
|
@ -258,9 +258,11 @@ This will always include
|
||||||
.BR clear ,
|
.BR clear ,
|
||||||
meaning no encryption or digesting.
|
meaning no encryption or digesting.
|
||||||
Currently implemented encryption algorithms are
|
Currently implemented encryption algorithms are
|
||||||
.B 'rc4_128'
|
.B 'rc4_128',
|
||||||
|
.BR '3des_ede_cbc',
|
||||||
|
.BR 'aes_128_cbc',
|
||||||
and
|
and
|
||||||
.BR '3des_ede_cbc' .
|
.BR 'aes_256_cbc'.
|
||||||
Currently implemented hashing algorithms are
|
Currently implemented hashing algorithms are
|
||||||
.B 'md5'
|
.B 'md5'
|
||||||
and
|
and
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
enum {
|
enum {
|
||||||
TLSFinishedLen = 12,
|
TLSFinishedLen = 12,
|
||||||
SSL3FinishedLen = MD5dlen+SHA1dlen,
|
SSL3FinishedLen = MD5dlen+SHA1dlen,
|
||||||
MaxKeyData = 104, // amount of secret we may need
|
MaxKeyData = 136, // amount of secret we may need
|
||||||
MaxChunk = 1<<14,
|
MaxChunk = 1<<14,
|
||||||
RandomSize = 32,
|
RandomSize = 32,
|
||||||
SidSize = 32,
|
SidSize = 32,
|
||||||
|
@ -249,6 +249,8 @@ static Algs cipherAlgs[] = {
|
||||||
{"rc4_128", "md5", 2 * (16 + MD5dlen), TLS_RSA_WITH_RC4_128_MD5},
|
{"rc4_128", "md5", 2 * (16 + MD5dlen), TLS_RSA_WITH_RC4_128_MD5},
|
||||||
{"rc4_128", "sha1", 2 * (16 + SHA1dlen), TLS_RSA_WITH_RC4_128_SHA},
|
{"rc4_128", "sha1", 2 * (16 + SHA1dlen), TLS_RSA_WITH_RC4_128_SHA},
|
||||||
{"3des_ede_cbc","sha1", 2*(4*8+SHA1dlen), TLS_RSA_WITH_3DES_EDE_CBC_SHA},
|
{"3des_ede_cbc","sha1", 2*(4*8+SHA1dlen), TLS_RSA_WITH_3DES_EDE_CBC_SHA},
|
||||||
|
{"aes_128_cbc", "sha1", 2*(16+16+SHA1dlen), TLS_RSA_WITH_AES_128_CBC_SHA},
|
||||||
|
{"aes_256_cbc", "sha1", 2*(32+16+SHA1dlen), TLS_RSA_WITH_AES_256_CBC_SHA},
|
||||||
};
|
};
|
||||||
|
|
||||||
static uchar compressors[] = {
|
static uchar compressors[] = {
|
||||||
|
|
Loading…
Reference in a new issue