Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/crypto/opencrypto Use RFC 3713 vector, add comment to ...



details:   https://anonhg.NetBSD.org/src/rev/cd13be70d4dd
branches:  trunk
changeset: 326085:cd13be70d4dd
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Jan 17 19:39:51 2014 +0000

description:
Use RFC 3713 vector, add comment to identify the source

diffstat:

 tests/crypto/opencrypto/h_camellia.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r e34d6022867a -r cd13be70d4dd tests/crypto/opencrypto/h_camellia.c
--- a/tests/crypto/opencrypto/h_camellia.c      Fri Jan 17 19:35:33 2014 +0000
+++ b/tests/crypto/opencrypto/h_camellia.c      Fri Jan 17 19:39:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_camellia.c,v 1.2 2014/01/17 14:16:08 pgoyette Exp $ */
+/* $NetBSD: h_camellia.c,v 1.3 2014/01/17 19:39:51 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 
 #include <crypto/cryptodev.h>
 
+/* Test vector from RFC3713 */
 unsigned char key[32] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
                         0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10,
                         0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
@@ -44,8 +45,8 @@
 char plaintx[16] = {0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef,
                    0xfe, 0xdc, 0xba, 0x98, 0x76, 0x54, 0x32, 0x10};
 const unsigned char ciphertx[16] = {
-       0xe4, 0x09, 0x5d, 0x4f, 0xb7, 0xa7, 0xb3, 0x79,
-       0x2d, 0x61, 0x75, 0xa3, 0x26, 0x13, 0x11, 0xb8
+       0x9a, 0xcc, 0x23, 0x7d, 0xff, 0x16, 0xd7, 0x6c,
+       0x20, 0xef, 0x7c, 0x91, 0x9e, 0x3a, 0x75, 0x09
 };
 
 int



Home | Main Index | Thread Index | Old Index