5 * Copyright (C) 2010, Broadcom Corporation
8 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
9 * the contents of this file may not be disclosed to third parties, copied
10 * or duplicated in any form, in whole or in part, without the prior
11 * written permission of Broadcom Corporation.
13 * $Id: prf_vectors.h,v 1.7 2006-06-22 00:16:57 Exp $
18 /* test vectors from rfc2202 */
20 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
21 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
22 0x0b, 0x0b, 0x0b, 0x0b
25 uint8 prefix_0
[6] = "prefix";
27 uint8 data_0
[8] = "Hi There";
30 0x92, 0x94, 0x72, 0x7a, 0x36, 0x38, 0xbb, 0x1c,
31 0x13, 0xf4, 0x8e, 0xf8, 0x15, 0x8b, 0xfc, 0x9d
35 0xb6, 0x17, 0x31, 0x86, 0x55, 0x05, 0x72, 0x64,
36 0xe2, 0x8b, 0xc0, 0xb6, 0xfb, 0x37, 0x8c, 0x8e,
37 0xf1, 0x46, 0xbe, 0x00
41 0xbc, 0xd4, 0xc6, 0x50, 0xb3, 0x0b, 0x96, 0x84,
42 0x95, 0x18, 0x29, 0xe0, 0xd7, 0x5f, 0x9d, 0x54,
43 0xb8, 0x62, 0x17, 0x5e, 0xd9, 0xf0, 0x06, 0x06,
44 0xe1, 0x7d, 0x8d, 0xa3, 0x54, 0x02, 0xff, 0xee,
45 0x75, 0xdf, 0x78, 0xc3, 0xd3, 0x1e, 0x0f, 0x88,
46 0x9f, 0x01, 0x21, 0x20, 0xc0, 0x86, 0x2b, 0xeb,
47 0x67, 0x75, 0x3e, 0x74, 0x39, 0xae, 0x24, 0x2e,
48 0xdb, 0x83, 0x73, 0x69, 0x83, 0x56, 0xcf, 0x5a
52 uint8 key_1
[4] = "Jefe";
54 uint8 prefix_1
[6] = "prefix";
56 uint8 data_1
[28] = "what do ya want for nothing?";
59 0x75, 0x0c, 0x78, 0x3e, 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 0x34, 0x52, 0x1d, 0x14, 0x4c, 0x88,
99 0xdb, 0xb8, 0xc7, 0x33, 0xf0, 0xe8, 0xb3, 0xf6
102 uint8 digest1_2
[] = {
103 0x12, 0x5d, 0x73, 0x42, 0xb9, 0xac, 0x11, 0xcd,
104 0x91, 0xa3, 0x9a, 0xf4, 0x8a, 0xa1, 0x7b, 0x4f,
105 0x63, 0xf1, 0x75, 0xd3
109 0xe1, 0xac, 0x54, 0x6e, 0xc4, 0xcb, 0x63, 0x6f,
110 0x99, 0x76, 0x48, 0x7b, 0xe5, 0xc8, 0x6b, 0xe1,
111 0x7a, 0x02, 0x52, 0xca, 0x5d, 0x8d, 0x8d, 0xf1,
112 0x2c, 0xfb, 0x04, 0x73, 0x52, 0x52, 0x49, 0xce,
113 0x9d, 0xd8, 0xd1, 0x77, 0xea, 0xd7, 0x10, 0xbc,
114 0x9b, 0x59, 0x05, 0x47, 0x23, 0x91, 0x07, 0xae,
115 0xf7, 0xb4, 0xab, 0xd4, 0x3d, 0x87, 0xf0, 0xa6,
116 0x8f, 0x1c, 0xbd, 0x9e, 0x2b, 0x6f, 0x76, 0x07
122 unsigned char *prefix
;
126 unsigned char* digest
;
127 unsigned char* digest1
;
131 #define PRF_VECTOR_ENTRY(x) \
133 key_##x, sizeof(key_##x), prefix_##x, sizeof(prefix_##x), \
134 data_##x, sizeof(data_##x), digest_##x, digest1_##x, prf_##x \
137 prf_vector_t prf_vec
[] = {
143 #define NUM_VECTORS (sizeof(prf_vec)/sizeof(prf_vec[0]))