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>
This commit is contained in:
		@@ -166,7 +166,7 @@ static uint8_t *hash_file(const char *filename, unsigned sha3_width)
 | 
			
		||||
	} context;
 | 
			
		||||
	uint8_t *hash_value;
 | 
			
		||||
	void FAST_FUNC (*update)(void*, const void*, size_t);
 | 
			
		||||
	void FAST_FUNC (*final)(void*, void*);
 | 
			
		||||
	unsigned FAST_FUNC (*final)(void*, void*);
 | 
			
		||||
	char hash_algo;
 | 
			
		||||
 | 
			
		||||
	src_fd = open_or_warn_stdin(filename);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user