tls: add 2nd cipher_id, TLS_RSA_WITH_AES_128_CBC_SHA, so far it doesn't work
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jan 2017 15:00:54 +0000 (16:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 24 Jan 2017 15:00:54 +0000 (16:00 +0100)
commit49ecee098d062b92fcf095e05e15779c32899646
treea02df1cfc23064d3f37a7adb15e1dafdf7a76c97
parent9a64c3337cc0a5e84e9ad457eeb1d475c311e9fc
tls: add 2nd cipher_id, TLS_RSA_WITH_AES_128_CBC_SHA, so far it doesn't work

Good news that TLS_RSA_WITH_AES_256_CBC_SHA256 still works with new code ;)

This change adds inevitable extension to have different sized hashes and AES key sizes.
In libbb, md5_end() and shaX_end() are extended to return result size instead of void -
this helps *a lot* in tls (the cost is ~5 bytes per _end() function).

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/md5_sha1_sum.c
include/libbb.h
libbb/hash_md5_sha.c
libbb/hash_md5prime.c
libbb/pw_encrypt_sha.c
networking/tls.c