diff options
author | Adrian Hoban <adrian.hoban@intel.com> | 2010-11-04 15:02:04 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2010-11-13 07:47:56 -0500 |
commit | 69435b94d01f49197b287eb5902fb8c5cee8fe1d (patch) | |
tree | 4e0f1142604b81de066c02cec2defbbe13f3e086 /crypto/tcrypt.c | |
parent | 0bd82f5f6355775fbaf7d3c664432ce1b862be1e (diff) |
crypto: rfc4106 - Extending the RC4106 AES-GCM test vectors
Updated RFC4106 AES-GCM testing. Some test vectors were taken from
http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
gcm/gcm-test-vectors.tar.gz
Signed-off-by: Adrian Hoban <adrian.hoban@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Gabriele Paoloni <gabriele.paoloni@intel.com>
Signed-off-by: Aidan O'Mahony <aidan.o.mahony@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r-- | crypto/tcrypt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 3ca68f9fc14d..9aac5e58be94 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c | |||
@@ -8,6 +8,13 @@ | |||
8 | * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org> | 8 | * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org> |
9 | * Copyright (c) 2007 Nokia Siemens Networks | 9 | * Copyright (c) 2007 Nokia Siemens Networks |
10 | * | 10 | * |
11 | * Updated RFC4106 AES-GCM testing. | ||
12 | * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com) | ||
13 | * Adrian Hoban <adrian.hoban@intel.com> | ||
14 | * Gabriele Paoloni <gabriele.paoloni@intel.com> | ||
15 | * Tadeusz Struk (tadeusz.struk@intel.com) | ||
16 | * Copyright (c) 2010, Intel Corporation. | ||
17 | * | ||
11 | * This program is free software; you can redistribute it and/or modify it | 18 | * This program is free software; you can redistribute it and/or modify it |
12 | * under the terms of the GNU General Public License as published by the Free | 19 | * under the terms of the GNU General Public License as published by the Free |
13 | * Software Foundation; either version 2 of the License, or (at your option) | 20 | * Software Foundation; either version 2 of the License, or (at your option) |
@@ -980,6 +987,10 @@ static int do_test(int m) | |||
980 | ret += tcrypt_test("ansi_cprng"); | 987 | ret += tcrypt_test("ansi_cprng"); |
981 | break; | 988 | break; |
982 | 989 | ||
990 | case 151: | ||
991 | ret += tcrypt_test("rfc4106(gcm(aes))"); | ||
992 | break; | ||
993 | |||
983 | case 200: | 994 | case 200: |
984 | test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, | 995 | test_cipher_speed("ecb(aes)", ENCRYPT, sec, NULL, 0, |
985 | speed_template_16_24_32); | 996 | speed_template_16_24_32); |