Symmetric encryption services; combined cipher AES+TWOFISH (256-bit each) More...
Go to the source code of this file.
Macros | |
#define | LOG(kind, ...) |
Symmetric encryption services; combined cipher AES+TWOFISH (256-bit each)
Definition in file crypto_symmetric.c.
#define LOG | ( | kind, | |
... | |||
) |
Definition at line 33 of file crypto_symmetric.c.
|
static |
Initialize AES cipher.
handle | handle to initialize |
sessionkey | session key to use |
iv | initialization vector to use |
Definition at line 64 of file crypto_symmetric.c.
References GNUNET_CRYPTO_SymmetricInitializationVector::aes_iv, GNUNET_CRYPTO_SymmetricSessionKey::aes_key, GNUNET_assert, GNUNET_OK, and handle.
Referenced by GNUNET_CRYPTO_symmetric_decrypt(), and GNUNET_CRYPTO_symmetric_encrypt().
|
static |
Initialize TWOFISH cipher.
handle | handle to initialize |
sessionkey | session key to use |
iv | initialization vector to use |
Definition at line 94 of file crypto_symmetric.c.
References GNUNET_assert, GNUNET_OK, handle, GNUNET_CRYPTO_SymmetricInitializationVector::twofish_iv, and GNUNET_CRYPTO_SymmetricSessionKey::twofish_key.
Referenced by GNUNET_CRYPTO_symmetric_decrypt(), and GNUNET_CRYPTO_symmetric_encrypt().