◆ chacha20() [1/2]
Constructor for CHACHA20 algorithm
- Parameters
-
| key | - key for encryption |
| nonce | - initial value for the NONCE |
| counter | - initial counter value |
◆ chacha20() [2/2]
Constructor for CHACHA20 algorithm with context
- Parameters
-
| ctx | - Context to re-initialize the engine with |
| length | - length of the context in bytes (must be 64) |
◆ context()
Function to return CHACHA20 state
- Parameters
-
| context | - state of the engine |
| length | - length up to 64 bytes of state. Length of 32 is needed for AEAD_CHACHA20_POLY1305 |
◆ ProcessData()
Function to encrypt data with CHACHA20
- Parameters
-
| input | - plain/ciphertext |
| output | - resulting cipher/plaintext |
| length | - length of the data |
The documentation for this class was generated from the following file: