openssl/test/recipes/30-test_evp_data/evpciph_rc5.txt
Matt Caswell 1838580037 Add test for non-default sized keys in variable key size ciphers
Various ciphers have the ability to support varaible length keys.
This adds some test cases for algorithms where we did not test a key
length other than the default size.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10449)
2019-11-19 13:33:54 +00:00

107 lines
2.9 KiB
Plaintext

#
# Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
#
# Licensed under the Apache License 2.0 (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
#The following tests were generated using legacy code, to ensure that the
#provider ciphers have identical results.
Title = RC5 Tests
Cipher = RC5-ECB
Key = 00000000000000000000000000000000
Plaintext = 0000000000000000
Ciphertext = 21a5dbee154b8f6d
Cipher = RC5-ECB
Key = 00000000000000000000000000000000
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = d9d37019aec1161b27d7ad56b21f0f42
#Self generated. Bigger key.
Cipher = RC5-ECB
Key = 0000000000000000000000000000000000000000
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = 610084f3e141cbc5455b82e2d56da565
Cipher = RC5-CBC
Key = 00000000000000000000000000000000
IV = 0000000000000000
Plaintext = 0000000000000000
Ciphertext = 21a5dbee154b8f6d
Cipher = RC5-CBC
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = eeebae12d768ac9e5b3d6072a9c76c65
#Self generated. Bigger key.
Cipher = RC5-CBC
Key = 0102030405060708090A0B0C0D0E0F1000000000
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = af64972111a80ec28871c51dd4bfe8de
Cipher = RC5-OFB
Key = 00000000000000000000000000000000
IV = 0000000000000000
Plaintext = 0000000000000000
Ciphertext = 21a5dbee154b8f6d
Cipher = RC5-OFB
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = c0ad101b40fc7ffdfc386ea5ecf458b7
#Self generated. Bigger key.
Cipher = RC5-OFB
Key = 0102030405060708090A0B0C0D0E0F1000000000
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = 66ff8fee03d45533dde93632e8f81f6f
Cipher = RC5-CFB
Key = 00000000000000000000000000000000
IV = 0000000000000000
Plaintext = 0000000000000000
Ciphertext = 21a5dbee154b8f6d
Cipher = RC5-CFB
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = c0ad101b40fc7ffdeb97c6173bf2987e
Cipher = RC5-CFB
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Rounds = 8
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = 439945301dfa830885ac2f3cf5e61d0e
Cipher = RC5-CFB
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Rounds = 16
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = 5ad80530f4a19e622d03cd4f2b165730
#Bad rounds
Cipher = RC5-CFB
Key = 0102030405060708090A0B0C0D0E0F10
IV = 0102030405060708
Rounds = 9
Plaintext = 000102030405060708090A0B0C0D0E0F
Result = INVALID_ROUNDS
#bigger key
Cipher = RC5-CFB
Key = 0102030405060708090A0B0C0D0E0F101213141516
IV = 0102030405060708
Plaintext = 000102030405060708090A0B0C0D0E0F
Ciphertext = b3724d2d9d1b9285e1338fd266c2277d