|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
Macros | |
| #define | OFFSET_MASK (((UINT64)1 << 38) - 1) |
| #define | CHACHA_QUARTERROUND(a, b, c, d) |
Variables | |
| static const BYTE | chacha20KatAnswer [3] = { 0xb5, 0xe0, 0x54 } |
Definition at line 147 of file chacha20.c.
Definition at line 22 of file chacha20.c.
| VOID SYMCRYPT_CALL SymCryptChaCha20Crypt | ( | _Inout_ PSYMCRYPT_CHACHA20_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 69 of file chacha20.c.
Referenced by SymCryptChaCha20Poly1305Decrypt(), SymCryptChaCha20Poly1305Encrypt(), and SymCryptChaCha20Selftest().
| VOID SYMCRYPT_CALL SymCryptChaCha20CryptBlocks | ( | _Inout_ PSYMCRYPT_CHACHA20_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 156 of file chacha20.c.
Referenced by SymCryptChaCha20Crypt().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptChaCha20Init | ( | _Out_ PSYMCRYPT_CHACHA20_STATE | pState, |
| _In_reads_(cbKey) PCBYTE | pbKey, | ||
| _In_ SIZE_T | cbKey, | ||
| _In_reads_(cbNonce) PCBYTE | pbNonce, | ||
| SIZE_T | cbNonce, | ||
| UINT64 | offset | ||
| ) |
Definition at line 26 of file chacha20.c.
Referenced by SymCryptChaCha20Poly1305Decrypt(), SymCryptChaCha20Poly1305Encrypt(), and SymCryptChaCha20Selftest().
| VOID SYMCRYPT_CALL SymCryptChaCha20Selftest | ( | void | ) |
Definition at line 249 of file chacha20.c.
| VOID SYMCRYPT_CALL SymCryptChaCha20SetOffset | ( | _Inout_ PSYMCRYPT_CHACHA20_STATE | pState, |
| UINT64 | offset | ||
| ) |
Definition at line 59 of file chacha20.c.
Referenced by SymCryptChaCha20Init(), SymCryptChaCha20Poly1305Decrypt(), and SymCryptChaCha20Poly1305Encrypt().
Definition at line 245 of file chacha20.c.
Referenced by SymCryptChaCha20Selftest().