|
ReactOS 0.4.17-dev-1005-g171e1de
|
#include "precomp.h"
Go to the source code of this file.
Macros | |
| #define | CCM_MIN_NONCE_SIZE (7) |
| #define | CCM_MAX_NONCE_SIZE (13) |
| #define | CCM_MIN_TAG_SIZE (4) |
| #define | CCM_MAX_TAG_SIZE (16) |
| #define | CCM_MAX_COUNTER_SIZE (SYMCRYPT_CCM_BLOCK_SIZE - 1 - CCM_MIN_NONCE_SIZE) |
| #define | AUTHDATA_16BIT_LIMIT ((1<<16) - (1<<8)) |
| #define | AUTHDATA_32BIT_LIMIT (1ull << 32) |
| #define | CCM_BLOCK_MOD_MASK (SYMCRYPT_CCM_BLOCK_SIZE - 1) |
| #define | CCM_BLOCK_ROUND_MASK (~CCM_BLOCK_MOD_MASK) |
Variables | |
| const BOOL | fcbAuthDataLt32bitLimitStatic = SIZE_T_MAX < AUTHDATA_32BIT_LIMIT |
| static const BYTE | SymCryptCcmSelftestResult [3+SYMCRYPT_AES_BLOCK_SIZE] |
| #define CCM_BLOCK_MOD_MASK (SYMCRYPT_CCM_BLOCK_SIZE - 1) |
| #define CCM_BLOCK_ROUND_MASK (~CCM_BLOCK_MOD_MASK) |
| #define CCM_MAX_COUNTER_SIZE (SYMCRYPT_CCM_BLOCK_SIZE - 1 - CCM_MIN_NONCE_SIZE) |
| VOID SYMCRYPT_CALL SymCryptCcmAddMacData | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbData, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 164 of file ccm.c.
Referenced by SymCryptCcmDecryptPart(), SymCryptCcmEncryptPart(), and SymCryptCcmInit().
| SYMCRYPT_NOINLINE SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptCcmDecrypt | ( | _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, |
| _In_ PCVOID | pExpandedKey, | ||
| _In_reads_(cbNonce) PCBYTE | pbNonce, | ||
| SIZE_T | cbNonce, | ||
| _In_reads_opt_(cbAuthData) PCBYTE | pbAuthData, | ||
| SIZE_T | cbAuthData, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData, | ||
| _In_reads_(cbTag) PCBYTE | pbTag, | ||
| SIZE_T | cbTag | ||
| ) |
Definition at line 257 of file ccm.c.
Referenced by SymCryptCcmSelftest().
| SYMCRYPT_NOINLINE SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptCcmDecryptFinal | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _In_reads_(cbTag) PCBYTE | pbTag, | ||
| SIZE_T | cbTag | ||
| ) |
Definition at line 542 of file ccm.c.
Referenced by SymCryptCcmDecrypt().
| SYMCRYPT_NOINLINE VOID SYMCRYPT_CALL SymCryptCcmDecryptPart | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 503 of file ccm.c.
Referenced by SymCryptCcmDecrypt().
| SYMCRYPT_NOINLINE VOID SYMCRYPT_CALL SymCryptCcmEncrypt | ( | _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, |
| _In_ PCVOID | pExpandedKey, | ||
| _In_reads_(cbNonce) PCBYTE | pbNonce, | ||
| SIZE_T | cbNonce, | ||
| _In_reads_opt_(cbAuthData) PCBYTE | pbAuthData, | ||
| SIZE_T | cbAuthData, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData, | ||
| _Out_writes_(cbTag) PBYTE | pbTag, | ||
| SIZE_T | cbTag | ||
| ) |
Definition at line 227 of file ccm.c.
Referenced by SymCryptCcmSelftest().
| VOID SYMCRYPT_CALL SymCryptCcmEncryptDecryptPart | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 93 of file ccm.c.
Referenced by SymCryptCcmDecryptFinal(), SymCryptCcmDecryptPart(), SymCryptCcmEncryptFinal(), and SymCryptCcmEncryptPart().
| SYMCRYPT_NOINLINE VOID SYMCRYPT_CALL SymCryptCcmEncryptFinal | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _Out_writes_(cbTag) PBYTE | pbTag, | ||
| SIZE_T | cbTag | ||
| ) |
Definition at line 468 of file ccm.c.
Referenced by SymCryptCcmEncrypt().
| SYMCRYPT_NOINLINE VOID SYMCRYPT_CALL SymCryptCcmEncryptPart | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState, |
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 433 of file ccm.c.
Referenced by SymCryptCcmEncrypt().
| SYMCRYPT_NOINLINE VOID SYMCRYPT_CALL SymCryptCcmInit | ( | _Out_ PSYMCRYPT_CCM_STATE | pState, |
| _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, | ||
| _In_ PCVOID | pExpandedKey, | ||
| _In_reads_(cbNonce) PCBYTE | pbNonce, | ||
| SIZE_T | cbNonce, | ||
| _In_reads_opt_(cbAuthData) PCBYTE | pbAuthData, | ||
| SIZE_T | cbAuthData, | ||
| UINT64 | cbData, | ||
| SIZE_T | cbTag | ||
| ) |
Definition at line 300 of file ccm.c.
Referenced by SymCryptCcmDecrypt(), and SymCryptCcmEncrypt().
| VOID SYMCRYPT_CALL SymCryptCcmPadMacData | ( | _Inout_ PSYMCRYPT_CCM_STATE | pState | ) |
Definition at line 209 of file ccm.c.
Referenced by SymCryptCcmDecryptFinal(), SymCryptCcmEncryptFinal(), and SymCryptCcmInit().
| VOID SYMCRYPT_CALL SymCryptCcmSelftest | ( | void | ) |
Definition at line 593 of file ccm.c.
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptCcmValidateParameters | ( | _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, |
| _In_ SIZE_T | cbNonce, | ||
| _In_ SIZE_T | cbAssociatedData, | ||
| _In_ UINT64 | cbData, | ||
| _In_ SIZE_T | cbTag | ||
| ) |
Definition at line 28 of file ccm.c.
Referenced by SymCryptCcmInit().
| const BOOL fcbAuthDataLt32bitLimitStatic = SIZE_T_MAX < AUTHDATA_32BIT_LIMIT |
Definition at line 21 of file ccm.c.
Referenced by SymCryptCcmInit().
|
static |
Definition at line 585 of file ccm.c.
Referenced by SymCryptCcmSelftest().