|
ReactOS 0.4.17-dev-1005-g171e1de
|

Go to the source code of this file.
Macros | |
| #define | N_PARALLEL_TWEAKS 16 |
| #define | SYMCRYPT_XTS_AES_LOCALSCRATCH_DEFN SYMCRYPT_ALIGN BYTE localScratch[N_PARALLEL_TWEAKS * SYMCRYPT_AES_BLOCK_SIZE]; |
| #define | SYMCRYPT_AesEcbEncryptXxx SymCryptAesEcbEncryptC |
| #define | SYMCRYPT_XtsAesXxx SymCryptXtsAesEncryptInternalC |
| #define | SYMCRYPT_XTSAESDATAUNIT_INVOKE SymCryptXtsAesEncryptDataUnitC( &pExpandedKey->key1, &tweakBuf[i], pbSrc, pbDst, cbDataUnit ); |
| #define | SYMCRYPT_XtsAesXxx SymCryptXtsAesDecryptInternalC |
| #define | SYMCRYPT_XTSAESDATAUNIT_INVOKE SymCryptXtsAesDecryptDataUnitC( &pExpandedKey->key1, &tweakBuf[i], pbSrc, pbDst, cbDataUnit ); |
Variables | |
| static const BYTE | SymCryptXtsAesCiphertext [32] |
| #define SYMCRYPT_AesEcbEncryptXxx SymCryptAesEcbEncryptC |
| #define SYMCRYPT_XTS_AES_LOCALSCRATCH_DEFN SYMCRYPT_ALIGN BYTE localScratch[N_PARALLEL_TWEAKS * SYMCRYPT_AES_BLOCK_SIZE]; |
| #define SYMCRYPT_XTSAESDATAUNIT_INVOKE SymCryptXtsAesEncryptDataUnitC( &pExpandedKey->key1, &tweakBuf[i], pbSrc, pbDst, cbDataUnit ); |
| #define SYMCRYPT_XTSAESDATAUNIT_INVOKE SymCryptXtsAesDecryptDataUnitC( &pExpandedKey->key1, &tweakBuf[i], pbSrc, pbDst, cbDataUnit ); |
| VOID SYMCRYPT_CALL SymCryptXtsAesDecrypt | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| UINT64 | tweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 354 of file xtsaes.c.
Referenced by SymCryptXtsAesSelftest().
| VOID SYMCRYPT_CALL SymCryptXtsAesDecryptDataUnitAsm | ( | _In_ PCSYMCRYPT_AES_EXPANDED_KEY | pExpandedKey, |
| _Inout_updates_(SYMCRYPT_AES_BLOCK_SIZE) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 629 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsAesDecryptDataUnitC | ( | _In_ PCSYMCRYPT_AES_EXPANDED_KEY | pExpandedKey, |
| _Inout_updates_(SYMCRYPT_AES_BLOCK_SIZE) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 668 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsAesDecryptInternal | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| _In_reads_(SYMCRYPT_AES_BLOCK_SIZE) PCBYTE | pbTweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData, | ||
| BOOLEAN | bOverflow | ||
| ) |
Definition at line 303 of file xtsaes.c.
Referenced by SymCryptXtsAesDecrypt(), and SymCryptXtsAesDecryptWith128bTweak().
| VOID SYMCRYPT_CALL SymCryptXtsAesDecryptWith128bTweak | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| _In_reads_(SYMCRYPT_AES_BLOCK_SIZE) PCBYTE | pbTweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
| VOID SYMCRYPT_CALL SymCryptXtsAesEncrypt | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| UINT64 | tweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 255 of file xtsaes.c.
Referenced by SymCryptXtsAesSelftest().
| VOID SYMCRYPT_CALL SymCryptXtsAesEncryptDataUnitAsm | ( | _In_ PCSYMCRYPT_AES_EXPANDED_KEY | pExpandedKey, |
| _Inout_updates_(SYMCRYPT_AES_BLOCK_SIZE) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 610 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsAesEncryptDataUnitC | ( | _In_ PCSYMCRYPT_AES_EXPANDED_KEY | pExpandedKey, |
| _Inout_updates_(SYMCRYPT_AES_BLOCK_SIZE) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 648 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsAesEncryptInternal | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| _In_reads_(SYMCRYPT_AES_BLOCK_SIZE) PCBYTE | pbTweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData, | ||
| BOOLEAN | bOverflow | ||
| ) |
Definition at line 204 of file xtsaes.c.
Referenced by SymCryptXtsAesEncrypt(), and SymCryptXtsAesEncryptWith128bTweak().
| VOID SYMCRYPT_CALL SymCryptXtsAesEncryptWith128bTweak | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| SIZE_T | cbDataUnit, | ||
| _In_reads_(SYMCRYPT_AES_BLOCK_SIZE) PCBYTE | pbTweak, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptXtsAesExpandKey | ( | _Out_ PSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| _In_reads_(cbKey) PCBYTE | pbKey, | ||
| SIZE_T | cbKey | ||
| ) |
Definition at line 11 of file xtsaes.c.
Referenced by SymCryptXtsAesExpandKeyEx().
| SYMCRYPT_ERROR SYMCRYPT_CALL SymCryptXtsAesExpandKeyEx | ( | _Out_ PSYMCRYPT_XTS_AES_EXPANDED_KEY | pExpandedKey, |
| _In_reads_(cbKey) PCBYTE | pbKey, | ||
| SIZE_T | cbKey, | ||
| UINT32 | flags | ||
| ) |
Definition at line 44 of file xtsaes.c.
Referenced by SymCryptXtsAesSelftest().
| VOID SYMCRYPT_CALL SymCryptXtsAesKeyCopy | ( | _In_ PCSYMCRYPT_XTS_AES_EXPANDED_KEY | pSrc, |
| _Out_ PSYMCRYPT_XTS_AES_EXPANDED_KEY | pDst | ||
| ) |
Definition at line 69 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsAesSelftest | ( | void | ) |
Definition at line 695 of file xtsaes.c.
| VOID SYMCRYPT_CALL SymCryptXtsDecryptDataUnit | ( | _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, |
| _In_ PCVOID | pExpandedKey, | ||
| _Inout_updates_(pBlockCipher->blockSize) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 524 of file xtsaes.c.
Referenced by SymCryptXtsAesDecryptDataUnitAsm(), and SymCryptXtsAesDecryptDataUnitC().
| VOID SYMCRYPT_CALL SymCryptXtsEncryptDataUnit | ( | _In_ PCSYMCRYPT_BLOCKCIPHER | pBlockCipher, |
| _In_ PCVOID | pExpandedKey, | ||
| _Inout_updates_(pBlockCipher->blockSize) PBYTE | pbTweakBlock, | ||
| _In_reads_(cbData) PCBYTE | pbSrc, | ||
| _Out_writes_(cbData) PBYTE | pbDst, | ||
| SIZE_T | cbData | ||
| ) |
Definition at line 444 of file xtsaes.c.
Referenced by SymCryptXtsAesEncryptDataUnitAsm(), and SymCryptXtsAesEncryptDataUnitC().
| VOID SYMCRYPT_CALL SymCryptXtsUpdateTweak | ( | _Inout_updates_(SYMCRYPT_AES_BLOCK_SIZE) PBYTE | buf | ) |
Definition at line 401 of file xtsaes.c.
Referenced by SymCryptXtsDecryptDataUnit(), and SymCryptXtsEncryptDataUnit().
Definition at line 686 of file xtsaes.c.
Referenced by SymCryptXtsAesSelftest().