|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
Macros | |
| #define | KECCAK_COLUMN_SUM(state, c) (state[0 + (c)] ^ state[5 + (c)] ^ state[10 + (c)] ^ state[15 + (c)] ^ state[20 + (c)]) |
| #define | KECCAK_COLUMN_UPDATE(state, c, w) |
| #define | KECCAK_THETA(state) |
| #define | KECCAK_RHO_ROW(state, r) |
| #define | KECCAK_RHO_ROW0(state) |
| #define | KECCAK_RHO(state) |
| #define | KECCAK_PI(state) |
| #define | KECCAK_CHI_ROW(state, r) |
| #define | KECCAK_CHI(state) |
| #define | KECCAK_IOTA(state, rnd) state[0] ^= KeccakIotaK[rnd] |
| #define | KECCAK_PERM_ROUND(state, rnd) |
Variables | |
| static const UINT8 | KeccakRhoK [25] |
| static UINT64 | KeccakIotaK [24] |
| #define KECCAK_IOTA | ( | state, | |
| rnd | |||
| ) | state[0] ^= KeccakIotaK[rnd] |
| VOID SYMCRYPT_CALL SymCryptKeccakAppend | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbData, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 285 of file sha3.c.
Referenced by SYMCRYPT_XxxAppend(), SymCryptKeccakAppendEncodedString(), SymCryptKeccakAppendEncodeTimes8(), SymCryptSha3_224Append(), SymCryptSha3_256Append(), SymCryptSha3_384Append(), and SymCryptSha3_512Append().
| FORCEINLINE VOID SYMCRYPT_CALL SymCryptKeccakAppendByte | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| BYTE | val | ||
| ) |
| FORCEINLINE VOID SYMCRYPT_CALL SymCryptKeccakAppendBytes | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| PCBYTE | pbBuffer, | ||
| SIZE_T | cbBuffer | ||
| ) |
Definition at line 220 of file sha3.c.
Referenced by SymCryptKeccakAppend().
| VOID SYMCRYPT_CALL SymCryptKeccakAppendLanes | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| _In_reads_(uLaneCount *sizeof(UINT64)) PCBYTE | pbData, | ||
| SIZE_T | uLaneCount | ||
| ) |
Definition at line 239 of file sha3.c.
Referenced by SymCryptKeccakAppend().
| VOID SYMCRYPT_CALL SymCryptKeccakApplyPadding | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState | ) |
Definition at line 338 of file sha3.c.
Referenced by SymCryptKeccakExtract().
| VOID SYMCRYPT_CALL SymCryptKeccakExtract | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| _Out_writes_(cbResult) PBYTE | pbResult, | ||
| SIZE_T | cbResult, | ||
| BOOLEAN | bWipe | ||
| ) |
Definition at line 411 of file sha3.c.
Referenced by SYMCRYPT_XxxExtract(), SYMCRYPT_XxxResult(), SYMCRYPT_XxxResultEx(), SymCryptSha3_224Result(), SymCryptSha3_256Result(), SymCryptSha3_384Result(), and SymCryptSha3_512Result().
| FORCEINLINE BYTE SYMCRYPT_CALL SymCryptKeccakExtractByte | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState | ) |
| VOID SYMCRYPT_CALL SymCryptKeccakExtractLanes | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState, |
| _Out_writes_(uLaneCount *sizeof(UINT64)) PBYTE | pbResult, | ||
| SIZE_T | uLaneCount | ||
| ) |
Definition at line 377 of file sha3.c.
Referenced by SymCryptKeccakExtract().
| VOID SYMCRYPT_CALL SymCryptKeccakInit | ( | _Out_ PSYMCRYPT_KECCAK_STATE | pState, |
| UINT32 | inputBlockSize, | ||
| UINT8 | paddingValue | ||
| ) |
Definition at line 174 of file sha3.c.
Referenced by SYMCRYPT_XxxInit(), SymCryptSha3_224Init(), SymCryptSha3_256Init(), SymCryptSha3_384Init(), and SymCryptSha3_512Init().
| VOID SYMCRYPT_CALL SymCryptKeccakPermute | ( | _Inout_updates_(25) UINT64 * | pState | ) |
Definition at line 160 of file sha3.c.
Referenced by SymCryptKeccakAppend(), SymCryptKeccakAppendLanes(), SymCryptKeccakApplyPadding(), SymCryptKeccakExtract(), SymCryptKeccakExtractLanes(), and SymCryptKeccakZeroAppendBlock().
| VOID SYMCRYPT_CALL SymCryptKeccakReset | ( | _Out_ PSYMCRYPT_KECCAK_STATE | pState | ) |
Definition at line 186 of file sha3.c.
Referenced by SymCryptKeccakAppend(), SymCryptKeccakExtract(), and SymCryptKeccakInit().
| VOID SYMCRYPT_CALL SymCryptKeccakStateExport | ( | SYMCRYPT_BLOB_TYPE | type, |
| _In_ PCSYMCRYPT_KECCAK_STATE | pState, | ||
| _Out_writes_bytes_(SYMCRYPT_KECCAK_STATE_EXPORT_SIZE) PBYTE | pbBlob | ||
| ) |
Definition at line 479 of file sha3.c.
Referenced by SymCryptSha3_224StateExport(), SymCryptSha3_256StateExport(), SymCryptSha3_384StateExport(), and SymCryptSha3_512StateExport().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptKeccakStateImport | ( | SYMCRYPT_BLOB_TYPE | type, |
| _Out_ PSYMCRYPT_KECCAK_STATE | pState, | ||
| _In_reads_bytes_(SYMCRYPT_KECCAK_STATE_EXPORT_SIZE) PCBYTE | pbBlob | ||
| ) |
Definition at line 518 of file sha3.c.
Referenced by SymCryptSha3_224StateImport(), SymCryptSha3_256StateImport(), SymCryptSha3_384StateImport(), and SymCryptSha3_512StateImport().
| VOID SYMCRYPT_CALL SymCryptKeccakZeroAppendBlock | ( | _Inout_ PSYMCRYPT_KECCAK_STATE | pState | ) |
Definition at line 273 of file sha3.c.
Referenced by SYMCRYPT_XxxExpandKeyEx(), and SymCryptCShakeEncodeInputStrings().
|
static |