# # Copyright 2001-2017 The OpenSSL Project Authors. All Rights Reserved. # # Licensed under the OpenSSL license (the "License"). You may not use # this file except in compliance with the License. You can obtain a copy # in the file LICENSE in the source distribution or at # https://www.openssl.org/source/license.html # Tests start with one of these keywords # Cipher Decrypt Derive Digest Encoding KDF MAC PBE # PrivPubKeyPair Sign Verify VerifyRecover # and continue until a blank line. Lines starting with a pound sign, # like this prolog, are ignored. # SIPHASH tests - default values: 2,4 rounds, 16-byte mac # There are no official test vectors, they are simple vectors 1, 2, 3, etc MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = Output = a3817f04ba25a8e66df67214c7550293 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00 Output = da87c1d86b99af44347659119b22fc45 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001 Output = 8177228da4a45dc7fca38bdef60affe4 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102 Output = 9c70b60c5267a94e5f33b6b02985ed51 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00010203 Output = f88164c12d9c8faf7d0f6e7c7bcd5579 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001020304 Output = 1368875980776f8854527a07690e9627 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405 Output = 14eeca338b208613485ea0308fd7a15e MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00010203040506 Output = a1f1ebbed8dbc153c0b84aa61ff08239 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001020304050607 Output = 3b62a9ba6258f5610f83e264f31497b4 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405060708 Output = 264499060ad9baabc47f8b02bb6d71ed MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E Output = 5150d1772f50834a503e069a973fbd7c MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = Output = a3817f04ba25a8e66df67214c7550293 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00 Output = da87c1d86b99af44347659119b22fc45 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001 Output = 8177228da4a45dc7fca38bdef60affe4 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102 Output = 9c70b60c5267a94e5f33b6b02985ed51 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00010203 Output = f88164c12d9c8faf7d0f6e7c7bcd5579 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001020304 Output = 1368875980776f8854527a07690e9627 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405 Output = 14eeca338b208613485ea0308fd7a15e MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 00010203040506 Output = a1f1ebbed8dbc153c0b84aa61ff08239 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 0001020304050607 Output = 3b62a9ba6258f5610f83e264f31497b4 MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405060708 Output = 264499060ad9baabc47f8b02bb6d71ed MAC = SipHash Key = 000102030405060708090A0B0C0D0E0F Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E Output = 5150d1772f50834a503e069a973fbd7c # HMAC tests from RFC2104 MAC = HMAC Algorithm = MD5 Key = 0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b Input = "Hi There" Output = 9294727a3638bb1c13f48ef8158bfc9d MAC = HMAC Algorithm = MD5 Key = "Jefe" Input = "what do ya want for nothing?" Output = 750c783e6ab0b503eaa86e310a5db738 MAC = HMAC Algorithm = MD5 Key = AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Input = DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD Output = 56be34521d144c88dbb8c733f0e8b3f6 # HMAC tests from NIST test data MAC = HMAC Algorithm = SHA1 Input = "Sample message for keylen=blocklen" Key = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E3F Output = 5FD596EE78D5553C8FF4E72D266DFD192366DA29 MAC = HMAC Algorithm = SHA1 Input = "Sample message for keylen