Module Name: src Committed By: pgoyette Date: Fri Jan 17 19:39:51 UTC 2014
Modified Files: src/tests/crypto/opencrypto: h_camellia.c Log Message: Use RFC 3713 vector, add comment to identify the source To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/crypto/opencrypto/h_camellia.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/crypto/opencrypto/h_camellia.c diff -u src/tests/crypto/opencrypto/h_camellia.c:1.2 src/tests/crypto/opencrypto/h_camellia.c:1.3 --- src/tests/crypto/opencrypto/h_camellia.c:1.2 Fri Jan 17 14:16:08 2014 +++ src/tests/crypto/opencrypto/h_camellia.c Fri Jan 17 19:39:51 2014 @@ -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 @@ unsigned char iv[16] = {0}; 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