/src/SymCrypt/lib/hash_pattern.c
Line | Count | Source (jump to first uncovered line) |
1 | | // |
2 | | // hash_pattern.c |
3 | | // Copyright (c) Microsoft Corporation. Licensed under the MIT license. |
4 | | // |
5 | | |
6 | | // |
7 | | // This is a file that is #included to define the |
8 | | // all-in-one hash function. |
9 | | // |
10 | | |
11 | | |
12 | | |
13 | | SYMCRYPT_NOINLINE |
14 | | VOID |
15 | | SYMCRYPT_CALL |
16 | | SYMCRYPT_Xxx( |
17 | | _In_reads_( cbData ) PCBYTE pbData, |
18 | | SIZE_T cbData, |
19 | | _Out_writes_( CONCAT3( SYMCRYPT_, ALG, _RESULT_SIZE ) ) PBYTE pbResult ) |
20 | 0 | { |
21 | 0 | SYMCRYPT_XXX_STATE state; |
22 | |
|
23 | 0 | SYMCRYPT_XxxInit( &state ); |
24 | 0 | SYMCRYPT_XxxAppend( &state, pbData, cbData ); |
25 | 0 | SYMCRYPT_XxxResult( & state, pbResult ); |
26 | 0 | } Unexecuted instantiation: SymCryptMd2 Unexecuted instantiation: SymCryptMd4 Unexecuted instantiation: SymCryptMd5 Unexecuted instantiation: SymCryptSha1 Unexecuted instantiation: SymCryptSha256 Unexecuted instantiation: SymCryptSha3_256 Unexecuted instantiation: SymCryptSha3_384 Unexecuted instantiation: SymCryptSha3_512 Unexecuted instantiation: SymCryptSha384 Unexecuted instantiation: SymCryptSha512 |
27 | | |
28 | | VOID |
29 | | SYMCRYPT_CALL |
30 | | SYMCRYPT_XxxStateCopy( _In_ const SYMCRYPT_XXX_STATE * pSrc, _Out_ SYMCRYPT_XXX_STATE * pDst ) |
31 | 0 | { |
32 | 0 | SYMCRYPT_CHECK_MAGIC( pSrc ); |
33 | 0 | *pDst = *pSrc; |
34 | 0 | SYMCRYPT_SET_MAGIC( pDst ); |
35 | 0 | } Unexecuted instantiation: SymCryptMd2StateCopy Unexecuted instantiation: SymCryptMd4StateCopy Unexecuted instantiation: SymCryptMd5StateCopy Unexecuted instantiation: SymCryptSha1StateCopy Unexecuted instantiation: SymCryptSha256StateCopy Unexecuted instantiation: SymCryptSha3_256StateCopy Unexecuted instantiation: SymCryptSha3_384StateCopy Unexecuted instantiation: SymCryptSha3_512StateCopy Unexecuted instantiation: SymCryptSha384StateCopy Unexecuted instantiation: SymCryptSha512StateCopy |