diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-18 16:30:24 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-11-18 16:31:36 +0100 |
commit | c53dc32939820914184cae9530d51e5b8370a77a (patch) | |
tree | 2e579c94489e631d558d99f91466a032c76ff1c2 | |
parent | b575ef9f1b996f7165336aa585f6d920539d1c4a (diff) | |
download | gnutls-c53dc32939820914184cae9530d51e5b8370a77a.tar.gz |
enhanced cipher selftests with variable key sizes on arcfour
-rw-r--r-- | lib/crypto-selftests.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/crypto-selftests.c b/lib/crypto-selftests.c index 7999b79507..2b78ec929a 100644 --- a/lib/crypto-selftests.c +++ b/lib/crypto-selftests.c @@ -330,6 +330,26 @@ const struct cipher_vectors_st tdes_cbc_vectors[] = { const struct cipher_vectors_st arcfour_vectors[] = { /* RFC6229 */ { STR(key, key_size, + "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18"), + STR(plaintext, plaintext_size, + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), + .ciphertext = (uint8_t *) + "\x05\x95\xe5\x7f\xe5\xf0\xbb\x3c\x70\x6e\xda\xc8\xa4\xb2\xdb\x11", + .iv = NULL, + .iv_size = 0 + }, + { + STR(key, key_size, + "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"), + STR(plaintext, plaintext_size, + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), + .ciphertext = (uint8_t *) + "\xea\xa6\xbd\x25\x88\x0b\xf9\x3d\x3f\x5d\x1e\x4c\xa2\x61\x1d\x91", + .iv = NULL, + .iv_size = 0 + }, + { + STR(key, key_size, "\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"), STR(plaintext, plaintext_size, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"), |