GCM and CCM test support
authorDr. Stephen Henson <steve@openssl.org>
Wed, 6 Mar 2013 15:45:15 +0000 (15:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 1 Oct 2013 13:01:17 +0000 (14:01 +0100)
commitec19082eccd008a9aee089696ba346e7316b47f3
treea6eb4e0b4ef53023d737604ea9843a469a845c52
parent0eff7c7c885d9d1f51af5dea05c3ab8ea0717278
GCM and CCM test support

Add code to support GCM an CCM modes in evp_test. On encrypt this
will compare the expected ciphertext and tag. On decrypt it will
compare the expected plaintext: tag comparison is done internally.

Add a simple CCM test case and convert all tests from crypto/modes/gcm128.c
(cherry picked from commit 15652f9825de25481676767aa73945409f9c82e2)
crypto/evp/evp_test.c
crypto/evp/evptests.txt