aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/data/kdf/tls_prf.vec34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/tests/data/kdf/tls_prf.vec b/src/tests/data/kdf/tls_prf.vec
index 8112a02b6..5ebd18a72 100644
--- a/src/tests/data/kdf/tls_prf.vec
+++ b/src/tests/data/kdf/tls_prf.vec
@@ -158,3 +158,37 @@ Secret = 2212169D33FADC6FF94A3E5E0020587953CF1964
Salt = FCD5C9637A21E43F3CFF6ECF65B6E2F97933779F101AD6
OutputLen = 32
Output = 1E1C646C2BFBDC62FA4C81F1D0781F5F269D3F45E5C33CAC8A2640226C8C5D16
+
+# TLS 1.2 PRF vectors from https://www.ietf.org/mail-archive/web/tls/current/msg03416.html
+
+[TLS-12-PRF(SHA-224)]
+
+Secret = e18828740352b530d69b34c6597dea2e
+Salt = f5a3fe6d34e2e28560fdcaf6823f9091
+Label = 74657374206c6162656c
+OutputLen = 88
+Output = 224d8af3c0453393a9779789d21cf7da5ee62ae6b617873d489428efc8dd58d1566e7029e2ca3a5ecd355dc64d4d927e2fbd78c4233e8604b14749a77a92a70fddf614bc0df623d798604e4ca5512794d802a258e82f86cf
+
+[TLS-12-PRF(SHA-256)]
+
+Secret = 9bbe436ba940f017b17652849a71db35
+Salt = a0ba9f936cda311827a6f796ffd5198c
+Label = 74657374206c6162656c
+OutputLen = 100
+Output = e3f229ba727be17b8d122620557cd453c2aab21d07c3d495329b52d4e61edb5a6b301791e90d35c9c9a46b4e14baf9af0fa022f7077def17abfd3797c0564bab4fbc91666e9def9b97fce34f796789baa48082d122ee42c5a72e5a5110fff70187347b66
+
+[TLS-12-PRF(SHA-384)]
+
+Secret = b80b733d6ceefcdc71566ea48e5567df
+Salt = cd665cf6a8447dd6ff8b27555edb7465
+Label = 74657374206c6162656c
+OutputLen = 148
+Output = 7b0c18e9ced410ed1804f2cfa34a336a1c14dffb4900bb5fd7942107e81c83cde9ca0faa60be9fe34f82b1233c9146a0e534cb400fed2700884f9dc236f80edd8bfa961144c9e8d792eca722a7b32fc3d416d473ebc2c5fd4abfdad05d9184259b5bf8cd4d90fa0d31e2dec479e4f1a26066f2eea9a69236a3e52655c9e9aee691c8f3a26854308d5eaa3be85e0990703d73e56f
+
+[TLS-12-PRF(SHA-512)]
+
+Secret = b0 32 35 23 c1 85 35 9958 4d 88 56 8b bb 05 eb
+Salt = d4640e12e4bcdbfb437f03e6ae418ee5
+Label = 74 65 73 74 20 6c 61 6265 6c
+OutputLen = 196
+Output = 1261f588c798c5c201ff036e7a9cb5edcd7fe3f94c669a122a4638d7d508b283042df6789875c7147e906d868bc75c45e20eb40c1cf4a1713b27371f68432592f7dc8ea8ef223e12ea8507841311bf68653d0cfc4056d811f025c45ddfa6e6fec702f054b409d6f28dd0a3233e498da41a3e75c5630eedbe22fe254e33a1b0e9f6b9826675bec7d01a845658dc9c397545401d40b9f46c7a400ee1b8f81ca0a60d1a397a1028bff5d2ef5066126842fb8da4197632bdb54ff6633f86bbc836e640d4d898