OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

pkcs11 message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [pkcs11] TLS 1.2 test vector


Oscar, all, 

The information mentioned at this URL: 

# Generating 88 bytes of pseudo-randomness using TLS1.2PRF-SHA224
Secret (16 bytes):
0000    e1 88 28 74 03 52 b5 30    ...t.R.0
0008    d6 9b 34 c6 59 7d ea 2e    ..4.Y...

Seed (16 bytes):
0000    f5 a3 fe 6d 34 e2 e2 85    ...m4...
0008    60 fd ca f6 82 3f 90 91    ........

Label (10 bytes):
0000    74 65 73 74 20 6c 61 62    test lab
0008    65 6c                      el

Output (88 bytes):
0000    22 4d 8a f3 c0 45 33 93    .M...E3.
0008    a9 77 97 89 d2 1c f7 da    .w......
0010    5e e6 2a e6 b6 17 87 3d    ........
0018    48 94 28 ef c8 dd 58 d1    H.....X.
0020    56 6e 70 29 e2 ca 3a 5e    Vnp.....
0028    cd 35 5d c6 4d 4d 92 7e    .5..MM..
0030    2f bd 78 c4 23 3e 86 04    ..x.....
0038    b1 47 49 a7 7a 92 a7 0f    .GI.z...
0040    dd f6 14 bc 0d f6 23 d7    ........
0048    98 60 4e 4c a5 51 27 94    ..NL.Q..
0050    d8 02 a2 58 e8 2f 86 cf    ...X....

# Generating 100 bytes of pseudo-randomness using TLS1.2PRF-SHA256
Secret (16 bytes):
0000    9b be 43 6b a9 40 f0 17    ..Ck....
0008    b1 76 52 84 9a 71 db 35    .vR..q.5

Seed (16 bytes):
0000    a0 ba 9f 93 6c da 31 18    ....l.1.
0008    27 a6 f7 96 ff d5 19 8c    ........

Label (10 bytes):
0000    74 65 73 74 20 6c 61 62    test lab
0008    65 6c                      el

Output (100 bytes):
0000    e3 f2 29 ba 72 7b e1 7b    ....r...
0008    8d 12 26 20 55 7c d4 53    ... U..S
0010    c2 aa b2 1d 07 c3 d4 95    ........
0018    32 9b 52 d4 e6 1e db 5a    2.R....Z
0020    6b 30 17 91 e9 0d 35 c9    k0....5.
0028    c9 a4 6b 4e 14 ba f9 af    ..kN....
0030    0f a0 22 f7 07 7d ef 17    ........
0038    ab fd 37 97 c0 56 4b ab    ..7..VK.
0040    4f bc 91 66 6e 9d ef 9b    O..fn...
0048    97 fc e3 4f 79 67 89 ba    ...Oyg..
0050    a4 80 82 d1 22 ee 42 c5    ......B.
0058    a7 2e 5a 51 10 ff f7 01    ..ZQ....
0060    87 34 7b 66                .4.f

# Generating 196 bytes of pseudo-randomness using TLS1.2PRF-SHA512
Secret (16 bytes):
0000    b0 32 35 23 c1 85 35 99    .25...5.
0008    58 4d 88 56 8b bb 05 eb    XM.V....

Seed (16 bytes):
0000    d4 64 0e 12 e4 bc db fb    .d......
0008    43 7f 03 e6 ae 41 8e e5    C....A..

Label (10 bytes):
0000    74 65 73 74 20 6c 61 62    test lab
0008    65 6c                      el

Output (196 bytes):
0000    12 61 f5 88 c7 98 c5 c2    .a......
0008    01 ff 03 6e 7a 9c b5 ed    ...nz...
0010    cd 7f e3 f9 4c 66 9a 12    ....Lf..
0018    2a 46 38 d7 d5 08 b2 83    .F8.....
0020    04 2d f6 78 98 75 c7 14    ...x.u..
0028    7e 90 6d 86 8b c7 5c 45    ..m....E
0030    e2 0e b4 0c 1c f4 a1 71    .......q
0038    3b 27 37 1f 68 43 25 92    ..7.hC..
0040    f7 dc 8e a8 ef 22 3e 12    ........
0048    ea 85 07 84 13 11 bf 68    .......h
0050    65 3d 0c fc 40 56 d8 11    e....V..
0058    f0 25 c4 5d df a6 e6 fe    ........
0060    c7 02 f0 54 b4 09 d6 f2    ...T....
0068    8d d0 a3 23 3e 49 8d a4    .....I..
0070    1a 3e 75 c5 63 0e ed be    ..u.c...
0078    22 fe 25 4e 33 a1 b0 e9    ...N3...
0080    f6 b9 82 66 75 be c7 d0    ...fu...
0088    1a 84 56 58 dc 9c 39 75    ..VX..9u
0090    45 40 1d 40 b9 f4 6c 7a    E.....lz
0098    40 0e e1 b8 f8 1c a0 a6    ........
00a0    0d 1a 39 7a 10 28 bf f5    ..9z....
00a8    d2 ef 50 66 12 68 42 fb    ..Pf.hB.
00b0    8d a4 19 76 32 bd b5 4f    ...v2..O
00b8    f6 63 3f 86 bb c8 36 e6    .c....6.
00c0    40 d4 d8 98                ....

# Generating 148 bytes of pseudo-randomness using TLS1.2PRF-SHA384
Secret (16 bytes):
0000    b8 0b 73 3d 6c ee fc dc    ..s.l...
0008    71 56 6e a4 8e 55 67 df    qVn..Ug.

Seed (16 bytes):
0000    cd 66 5c f6 a8 44 7d d6    .f...D..
0008    ff 8b 27 55 5e db 74 65    ...U..te

Label (10 bytes):
0000    74 65 73 74 20 6c 61 62    test lab
0008    65 6c                      el

Output (148 bytes):
0000    7b 0c 18 e9 ce d4 10 ed    ........
0008    18 04 f2 cf a3 4a 33 6a    .....J3j
0010    1c 14 df fb 49 00 bb 5f    ....I...
0018    d7 94 21 07 e8 1c 83 cd    ........
0020    e9 ca 0f aa 60 be 9f e3    ........
0028    4f 82 b1 23 3c 91 46 a0    O.....F.
0030    e5 34 cb 40 0f ed 27 00    .4......
0038    88 4f 9d c2 36 f8 0e dd    .O..6...
0040    8b fa 96 11 44 c9 e8 d7    ....D...
0048    92 ec a7 22 a7 b3 2f c3    ........
0050    d4 16 d4 73 eb c2 c5 fd    ...s....
0058    4a bf da d0 5d 91 84 25    J.......
0060    9b 5b f8 cd 4d 90 fa 0d    ....M...
0068    31 e2 de c4 79 e4 f1 a2    1...y...
0070    60 66 f2 ee a9 a6 92 36    .f.....6
0078    a3 e5 26 55 c9 e9 ae e6    ...U....
0080    91 c8 f3 a2 68 54 30 8d    ....hT0.
0088    5e aa 3b e8 5e 09 90 70    .......p
0090    3d 73 e5 6f                .s.o

Can be used without restriction although we can make no claims as to its quality or veracity.  I should note that the PRF output is determined by the secret, the seed, label and the appropriate HMAC function of the module.  So a correctly functioning HMAC funcction will get you the right output.  

NIST maintains test vectors for a number of algorithms, including HMAC, at http://csrc.nist.gov/groups/STM/cavp/. 

Regards, 

Sander

Classification: Thales e-Security Open


-----Original Message-----
From: pkcs11@lists.oasis-open.org [mailto:pkcs11@lists.oasis-open.org] On Behalf Of Oscar So
Sent: Wednesday, November 05, 2014 4:23 PM
To: OASIS PKCS #11 TC
Subject: [pkcs11] TLS 1.2 test vector

Here are the test vectors I found so far for TLS 1.2:
https://www.ietf.org/mail-archive/web/tls/current/msg03416.html

---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that generates this mail.  Follow this link to all your TCs in OASIS at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]