![]() |
GNUnet
0.11.x
|
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 32 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 63 of file crypto_symmetric.c.
References GNUNET_CRYPTO_SymmetricInitializationVector::aes_iv, GNUNET_CRYPTO_SymmetricSessionKey::aes_key, GNUNET_assert, and GNUNET_OK.
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 93 of file crypto_symmetric.c.
References GNUNET_assert, GNUNET_OK, GNUNET_CRYPTO_SymmetricInitializationVector::twofish_iv, and GNUNET_CRYPTO_SymmetricSessionKey::twofish_key.
Referenced by GNUNET_CRYPTO_symmetric_decrypt(), and GNUNET_CRYPTO_symmetric_encrypt().
void GNUNET_CRYPTO_symmetric_derive_iv_v | ( | struct GNUNET_CRYPTO_SymmetricInitializationVector * | iv, |
const struct GNUNET_CRYPTO_SymmetricSessionKey * | skey, | ||
const void * | salt, | ||
size_t | salt_len, | ||
va_list | argp | ||
) |
Derive an IV.
iv | initialization vector |
skey | session key |
salt | salt for the derivation |
salt_len | size of the salt |
argp | pairs of void * & size_t for context chunks, terminated by NULL |
Definition at line 229 of file crypto_symmetric.c.
References GNUNET_CRYPTO_SymmetricInitializationVector::aes_iv, GNUNET_CRYPTO_SymmetricSessionKey::aes_key, GNUNET_CRYPTO_kdf_v(), GNUNET_memcpy, GNUNET_CRYPTO_SymmetricInitializationVector::twofish_iv, and GNUNET_CRYPTO_SymmetricSessionKey::twofish_key.
Referenced by GNUNET_CRYPTO_symmetric_derive_iv().