diff options
author | Shane Wang <shane.wang@intel.com> | 2009-09-02 20:05:22 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-09-02 20:05:22 +1000 |
commit | 894b82d8e942b89338281a5a55c236aceb8364d8 (patch) | |
tree | f4b428c281472f644bc43abe9cc679bb55cc2c60 /crypto/testmgr.h | |
parent | b25770efba07510642ab4f894411be106e19cd79 (diff) | |
download | linux-crypto-894b82d8e942b89338281a5a55c236aceb8364d8.tar.gz linux-crypto-894b82d8e942b89338281a5a55c236aceb8364d8.zip |
crypto: vmac - New hash algorithm for intel_txt support
This patch adds VMAC (a fast MAC) support into crypto framework.
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Joseph Cihula <joseph.cihula@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | crypto/testmgr.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/testmgr.h b/crypto/testmgr.h index 69316228..9963b189 100644 --- a/crypto/testmgr.h +++ b/crypto/testmgr.h @@ -1654,6 +1654,22 @@ static struct hash_testvec aes_xcbc128_tv_template[] = { } }; +#define VMAC_AES_TEST_VECTORS 1 +static char vmac_string[128] = {'\x01', '\x01', '\x01', '\x01', + '\x02', '\x03', '\x02', '\x02', + '\x02', '\x04', '\x01', '\x07', + '\x04', '\x01', '\x04', '\x03',}; +static struct hash_testvec aes_vmac128_tv_template[] = { + { + .key = "\x00\x01\x02\x03\x04\x05\x06\x07" + "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", + .plaintext = vmac_string, + .digest = "\xcb\xd7\x8a\xfd\xb7\x33\x79\xe7", + .psize = 128, + .ksize = 16, + }, +}; + /* * SHA384 HMAC test vectors from RFC4231 */ |