diff options
author | Bodo Möller <bodo@openssl.org> | 2006-07-19 13:38:26 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 2006-07-19 13:38:26 +0000 |
commit | 413e0853d7457e9ca2dcc18fd2ca15ef9327b04d (patch) | |
tree | 1195519682a1f98675cf4f90ccb0d4eb40c4a20e /crypto/camellia/camellia.h | |
parent | 8e4560c42fde17fd96e62c9321b9611fe4a9ae05 (diff) |
New Camellia implementation (replacing previous version)
Submitted by: NTT
Diffstat (limited to 'crypto/camellia/camellia.h')
-rw-r--r-- | crypto/camellia/camellia.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crypto/camellia/camellia.h b/crypto/camellia/camellia.h index 1aa1c3ae8c..3c8a359543 100644 --- a/crypto/camellia/camellia.h +++ b/crypto/camellia/camellia.h @@ -74,13 +74,17 @@ extern "C" { #define CAMELLIA_TABLE_BYTE_LEN 272 #define CAMELLIA_TABLE_WORD_LEN (CAMELLIA_TABLE_BYTE_LEN / 4) -typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; /* to match with WORD */ + /* to match with WORD */ +typedef unsigned int KEY_TABLE_TYPE[CAMELLIA_TABLE_WORD_LEN]; struct camellia_key_st { KEY_TABLE_TYPE rd_key; int bitLength; + void (*enc)(const unsigned int *subkey, unsigned int *io); + void (*dec)(const unsigned int *subkey, unsigned int *io); }; + typedef struct camellia_key_st CAMELLIA_KEY; int Camellia_set_key(const unsigned char *userKey, const int bits, @@ -122,3 +126,4 @@ void Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out, #endif #endif /* !HEADER_Camellia_H */ + |