Fabcoin Core
0.16.2
P2P Digital Currency
|
A PRNG class for ChaCha20. More...
#include <chacha20.h>
Public Types | |
typedef SymmetricCipherFinal< ConcretePolicyHolder< ChaCha_Policy< 20 >, AdditiveCipherTemplate<> >, ChaCha_Info< 20 > > | Encryption |
typedef Encryption | Decryption |
Public Types inherited from SymmetricCipherDocumentation | |
typedef SymmetricCipher | Encryption |
implements the SymmetricCipher interface More... | |
typedef SymmetricCipher | Decryption |
implements the SymmetricCipher interface More... | |
Public Member Functions | |
ChaCha20 () | |
ChaCha20 (const unsigned char *key, size_t keylen) | |
void | SetKey (const unsigned char *key, size_t keylen) |
void | SetIV (uint64_t iv) |
void | Seek (uint64_t pos) |
void | Output (unsigned char *output, size_t bytes) |
Public Member Functions inherited from ChaCha_Info< 20 > | |
CRYPTOPP_STATIC_CONSTEXPR const char * | StaticAlgorithmName () |
Public Member Functions inherited from VariableKeyLength< 32, 16, 32, 16, SimpleKeyingInterface::UNIQUE_IV, 8 > | |
CRYPTOPP_STATIC_CONSTEXPR size_t CRYPTOPP_API | StaticGetValidKeyLength (size_t keylength) |
The minimum key length used by the algorithm provided as a constant. More... | |
Private Attributes | |
uint32_t | input [16] |
A PRNG class for ChaCha20.
ChaCha20 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
.
Definition at line 12 of file chacha20.h.
typedef Encryption ChaCha20::Decryption |
typedef SymmetricCipherFinal<ConcretePolicyHolder<ChaCha_Policy<20>, AdditiveCipherTemplate<> >, ChaCha_Info<20> > ChaCha20::Encryption |
ChaCha20::ChaCha20 | ( | ) |
Definition at line 52 of file chacha20.cpp.
ChaCha20::ChaCha20 | ( | const unsigned char * | key, |
size_t | keylen | ||
) |
void ChaCha20::Output | ( | unsigned char * | output, |
size_t | bytes | ||
) |
void ChaCha20::Seek | ( | uint64_t | pos | ) |
Definition at line 68 of file chacha20.cpp.
void ChaCha20::SetIV | ( | uint64_t | iv | ) |
Definition at line 62 of file chacha20.cpp.
void ChaCha20::SetKey | ( | const unsigned char * | key, |
size_t | keylen | ||
) |
|
private |
Definition at line 15 of file chacha20.h.