ReactOS
0.4.17-dev-1005-g171e1de
hash_pattern.c
Go to the documentation of this file.
1
//
2
// hash_pattern.c
3
// Copyright (c) Microsoft Corporation. Licensed under the MIT license.
4
//
5
6
#if 0
7
#pragma makedep header
8
#endif
9
10
//
11
// This is a file that is #included to define the
12
// all-in-one hash function.
13
//
14
15
16
17
SYMCRYPT_NOINLINE
18
VOID
19
SYMCRYPT_CALL
20
SYMCRYPT_Xxx
(
21
_In_reads_
(
cbData
)
PCBYTE
pbData
,
22
SIZE_T
cbData
,
23
_Out_writes_
(
CONCAT3
( SYMCRYPT_,
ALG
, _RESULT_SIZE ) )
PBYTE
pbResult
)
24
{
25
SYMCRYPT_XXX_STATE
state
;
26
27
SYMCRYPT_XxxInit
( &
state
);
28
SYMCRYPT_XxxAppend
( &
state
,
pbData
,
cbData
);
29
SYMCRYPT_XxxResult
( &
state
,
pbResult
);
30
}
31
32
VOID
33
SYMCRYPT_CALL
34
SYMCRYPT_XxxStateCopy
(
_In_
const
SYMCRYPT_XXX_STATE
* pSrc,
_Out_
SYMCRYPT_XXX_STATE
* pDst )
35
{
36
SYMCRYPT_CHECK_MAGIC
( pSrc );
37
*pDst = *pSrc;
38
SYMCRYPT_SET_MAGIC
( pDst );
39
}
state
static int state
Definition:
maze.c:121
void
Definition:
nsiface.idl:2307
ALG
#define ALG(id)
_In_reads_
#define _In_reads_(s)
Definition:
no_sal2.h:168
_Out_writes_
#define _Out_writes_(s)
Definition:
no_sal2.h:176
_Out_
#define _Out_
Definition:
no_sal2.h:160
_In_
#define _In_
Definition:
no_sal2.h:158
PBYTE
BYTE * PBYTE
Definition:
pedump.c:66
SYMCRYPT_XxxInit
#define SYMCRYPT_XxxInit
Definition:
sc_lib.h:123
SYMCRYPT_XxxAppend
#define SYMCRYPT_XxxAppend
Definition:
sc_lib.h:124
SYMCRYPT_XXX_STATE
#define SYMCRYPT_XXX_STATE
Definition:
sc_lib.h:116
CONCAT3
#define CONCAT3(a, b, c)
Definition:
sc_lib.h:111
SYMCRYPT_Xxx
#define SYMCRYPT_Xxx
Definition:
sc_lib.h:120
SYMCRYPT_XxxResult
#define SYMCRYPT_XxxResult
Definition:
sc_lib.h:125
SYMCRYPT_XxxStateCopy
#define SYMCRYPT_XxxStateCopy
Definition:
sc_lib.h:122
pbResult
static const BYTE pbResult[]
Definition:
ssh_kdf_sha256.c:38
SYMCRYPT_CALL
#define SYMCRYPT_CALL
Definition:
symcrypt_internal.h:167
cbData
PCBYTE PBYTE SIZE_T cbData
Definition:
symcrypt_internal.h:1989
SYMCRYPT_SET_MAGIC
#define SYMCRYPT_SET_MAGIC(p)
Definition:
symcrypt_internal.h:358
PCBYTE
const BYTE * PCBYTE
Definition:
symcrypt_internal.h:248
pbData
PCBYTE pbData
Definition:
symcrypt_internal.h:1246
SYMCRYPT_CHECK_MAGIC
#define SYMCRYPT_CHECK_MAGIC(p)
Definition:
symcrypt_internal.h:359
SIZE_T
ULONG_PTR SIZE_T
Definition:
typedefs.h:80
sdk
lib
3rdparty
symcrypt
lib
hash_pattern.c
Generated on Tue Oct 6 2026 06:20:06 for ReactOS by
1.9.6