diff options
author | Martin Willi <martin@strongswan.org> | 2006-05-10 13:16:27 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-05-10 13:16:27 +0000 |
commit | 9cf5f29027969d5477fe190a8bf85f1aef457179 (patch) | |
tree | 120bd8cc9fc8dc1fdc3b2378c94b1df79ada0d9b /src/libfreeswan/libcrypto/libtwofish/twofish.h | |
parent | 4e98759d32841d3f4f67feba9f7aaa842fdf3acf (diff) | |
download | strongswan-9cf5f29027969d5477fe190a8bf85f1aef457179.tar.bz2 strongswan-9cf5f29027969d5477fe190a8bf85f1aef457179.tar.xz |
Diffstat (limited to 'src/libfreeswan/libcrypto/libtwofish/twofish.h')
-rw-r--r-- | src/libfreeswan/libcrypto/libtwofish/twofish.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libfreeswan/libcrypto/libtwofish/twofish.h b/src/libfreeswan/libcrypto/libtwofish/twofish.h deleted file mode 100644 index 9b289f265..000000000 --- a/src/libfreeswan/libcrypto/libtwofish/twofish.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef TWOFISH_H -#define TWOFISH_H -#ifdef __KERNEL__ -#include <linux/types.h> -#else -#include <sys/types.h> -#endif -/* Structure for an expanded Twofish key. s contains the key-dependent - * S-boxes composed with the MDS matrix; w contains the eight "whitening" - * subkeys, K[0] through K[7]. k holds the remaining, "round" subkeys. Note - * that k[i] corresponds to what the Twofish paper calls K[i+8]. */ -typedef struct { - u_int32_t s[4][256], w[8], k[32]; -} TWOFISH_context; - -typedef TWOFISH_context twofish_context; -int twofish_set_key(twofish_context *tf_ctx, const u_int8_t * in_key, int key_len); -int twofish_encrypt(twofish_context *tf_ctx, const u_int8_t * in, u_int8_t * out); -int twofish_decrypt(twofish_context * tf_ctx, const u_int8_t * in, u_int8_t * out); -#endif /* TWOFISH_H */ |