Crypto++
6.1
Free C++ class library of cryptographic schemes
|
ChaCha12 stream cipher. More...
Public Types | |
typedef SymmetricCipherFinal< ConcretePolicyHolder< ChaCha_Policy< 12 >, AdditiveCipherTemplate<> >, ChaCha_Info< 12 > > | Encryption |
typedef Encryption | Decryption |
![]() | |
typedef SymmetricCipher | Encryption |
implements the SymmetricCipher interface | |
typedef SymmetricCipher | Decryption |
implements the SymmetricCipher interface | |
Additional Inherited Members | |
![]() | |
static const char * | StaticAlgorithmName () |
![]() | |
static size_t | StaticGetValidKeyLength (size_t keylength) |
Provides a valid key length for the algorithm provided by a static function. More... | |
![]() | |
static const int | MIN_KEYLENGTH |
The minimum key length used by the algorithm provided as a constant. More... | |
static const int | MAX_KEYLENGTH |
The maximum key length used by the algorithm provided as a constant. More... | |
static const int | DEFAULT_KEYLENGTH |
The default key length used by the algorithm provided as a constant. More... | |
static const int | KEYLENGTH_MULTIPLE |
The key length multiple used by the algorithm provided as a constant. More... | |
static const int | IV_REQUIREMENT |
The default IV requirements for the algorithm provided as a constant. More... | |
static const int | IV_LENGTH |
The default initialization vector length for the algorithm provided as a constant. More... | |
![]() | |
static const int | ROUNDS = R |
The number of rounds for the algorithm provided as a constant. | |
ChaCha12 stream cipher.
Bernstein and ECRYPT's ChaCha is _slightly_ different from the TLS working group's implementation for cipher suites TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256
, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256
, and TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256
.