diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-06-18 09:42:05 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-06-18 09:42:05 +0200 |
commit | c233bb932ac9202b6bfe232176cf844ce86898cd (patch) | |
tree | aca16fc0a27c9d7bfd8d1e4ba7d731fde6f1b008 /src | |
parent | 21142d40d11ae1af3b4d9a06aec6cda69306c9b9 (diff) | |
download | strongswan-c233bb932ac9202b6bfe232176cf844ce86898cd.tar.bz2 strongswan-c233bb932ac9202b6bfe232176cf844ce86898cd.tar.xz |
added test vector for NULL encryption
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/test_vectors/test_vectors/null.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/test_vectors/test_vectors/null.c b/src/libstrongswan/plugins/test_vectors/test_vectors/null.c new file mode 100644 index 000000000..c4f5d41b3 --- /dev/null +++ b/src/libstrongswan/plugins/test_vectors/test_vectors/null.c @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2009 Andreas Steffen + * Hochschule fuer Technik Rapperswil + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the Licenseor (at your + * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>. + * + * This program is distributed in the hope that it will be usefulbut + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +#include <crypto/crypto_tester.h> + +crypter_test_vector_t null1 = { + .alg = ENCR_NULL, .key_size = 0, .len = 44, + .key = "", + .iv = "", + .plain = "The quick brown fox jumped over the lazy dog", + .cipher = "The quick brown fox jumped over the lazy dog" +}; + |