Test digests.
[openssl.git] / crypto / evp / evptests.txt
1 #cipher:key:iv:input:output
2 #digest:::input:output
3
4 # MD5 tests (from md5test.c)
5 MD5::::d41d8cd98f00b204e9800998ecf8427e
6 MD5:::61:0cc175b9c0f1b6a831c399e269772661
7 MD5:::616263:900150983cd24fb0d6963f7d28e17f72
8 MD5:::6d65737361676520646967657374:f96b697d7cb7938d525a2f31aaf161d0
9 MD5:::6162636465666768696a6b6c6d6e6f707172737475767778797a:c3fcd3d76192e4007dfb496cca67e13b
10 MD5:::4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a30313233343536373839:d174ab98d277d9f5a5611c2c9f419d9f
11 MD5:::3132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930:57edf4a22be3c955ac49da2e2107b67a
12
13 # AES 128 ECB tests (from NIST test vectors, encrypt)
14
15 #AES-128-ECB:00000000000000000000000000000000::00000000000000000000000000000000:C34C052CC0DA8D73451AFE5F03BE297F
16
17 # AES 128 ECB tests (from NIST test vectors, decrypt)
18
19 #AES-128-ECB:00000000000000000000000000000000::44416AC2D1F53C583303917E6BE9EBE0:00000000000000000000000000000000
20
21 # AES 192 ECB tests (from NIST test vectors, decrypt)
22
23 #AES-192-ECB:000000000000000000000000000000000000000000000000::48E31E9E256718F29229319C19F15BA4:00000000000000000000000000000000
24
25 # AES 256 ECB tests (from NIST test vectors, decrypt)
26
27 #AES-256-ECB:0000000000000000000000000000000000000000000000000000000000000000::058CCFFDBBCB382D1F6F56585D8A4ADE:00000000000000000000000000000000
28
29 # AES 128 CBC tests (from NIST test vectors, encrypt)
30
31 #AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:00000000000000000000000000000000:8A05FC5E095AF4848A08D328D3688E3D
32
33 # AES 128 CBC tests (from NIST test vectors, decrypt)
34
35 #AES-128-CBC:00000000000000000000000000000000:00000000000000000000000000000000:FACA37E0B0C85373DF706E73F7C9AF86:00000000000000000000000000000000
36
37 # DES ECB tests (from destest)
38
39 DES-ECB:0000000000000000::0000000000000000:8CA64DE9C1B123A7
40 DES-ECB:FFFFFFFFFFFFFFFF::FFFFFFFFFFFFFFFF:7359B2163E4EDC58
41 DES-ECB:3000000000000000::1000000000000001:958E6E627A05557B
42 DES-ECB:1111111111111111::1111111111111111:F40379AB9E0EC533
43 DES-ECB:0123456789ABCDEF::1111111111111111:17668DFC7292532D
44 DES-ECB:1111111111111111::0123456789ABCDEF:8A5AE1F81AB8F2DD
45 DES-ECB:FEDCBA9876543210::0123456789ABCDEF:ED39D950FA74BCC4
46
47 # DESX-CBC tests (from destest)
48 DESX-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:846B2914851E9A2954732F8AA0A611C115CDC2D7951B1053A63C5E03B21AA3C4
49
50 # DES EDE3 CBC tests (from destest)
51 DES-EDE3-CBC:0123456789abcdeff1e0d3c2b5a49786fedcba9876543210:fedcba9876543210:37363534333231204E6F77206973207468652074696D6520666F722000000000:3FE301C962AC01D02213763C1CBD4CDC799657C064ECF5D41C673812CFDE9675
52
53 # RC4 tests (from rc4test)
54 RC4:0123456789abcdef0123456789abcdef::0123456789abcdef:75b7878099e0c596
55 RC4:0123456789abcdef0123456789abcdef::0000000000000000:7494c2e7104b0879
56 RC4:00000000000000000000000000000000::0000000000000000:de188941a3375d3a
57 RC4:ef012345ef012345ef012345ef012345::0000000000000000000000000000000000000000:d6a141a7ec3c38dfbd615a1162e1c7ba36b67858
58 RC4:0123456789abcdef0123456789abcdef::123456789ABCDEF0123456789ABCDEF0123456789ABCDEF012345678:66a0949f8af7d6891f7f832ba833c00c892ebe30143ce28740011ecf
59 RC4:ef012345ef012345ef012345ef012345::00000000000000000000:d6a141a7ec3c38dfbd61