Ben Laurie e5420be6cd Make CBC decoding constant time.
This patch makes the decoding of SSLv3 and TLS CBC records constant
time. Without this, a timing side-channel can be used to build a padding
oracle and mount Vaudenay's attack.

This patch also disables the stitched AESNI+SHA mode pending a similar
fix to that code.

In order to be easy to backport, this change is implemented in ssl/,
rather than as a generic AEAD mode. In the future this should be changed
around so that HMAC isn't in ssl/, but crypto/ as FIPS expects.
(cherry picked from commit e130841bccfc0bb9da254dc84e23bc6a1c78a64e)

Conflicts:
	crypto/evp/c_allc.c
	ssl/ssl_algs.c
	ssl/ssl_locl.h
	ssl/t1_enc.c
2013-02-05 16:46:16 +00:00
..
2010-05-27 12:41:20 +00:00
2009-07-01 14:55:59 +00:00
2013-02-05 16:46:16 +00:00
2007-04-23 23:48:59 +00:00
2008-11-05 18:39:08 +00:00
2010-10-11 23:24:51 +00:00
2010-03-27 19:27:51 +00:00
2009-12-17 15:28:45 +00:00
2008-11-05 18:39:08 +00:00
2011-09-01 13:48:57 +00:00
2010-03-27 19:27:51 +00:00
2007-04-23 23:48:59 +00:00
2005-07-16 12:37:36 +00:00
2005-07-16 12:37:36 +00:00
2005-07-16 12:37:36 +00:00
2010-02-02 13:36:05 +00:00
2005-07-16 12:37:36 +00:00
2008-03-12 21:14:28 +00:00
2005-07-16 12:37:36 +00:00
2005-11-30 20:57:23 +00:00
2010-12-02 18:26:12 +00:00
2010-11-30 19:37:33 +00:00
2009-06-16 16:39:20 +00:00
2008-11-05 18:39:08 +00:00