mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 02:04:46 +00:00
bcrypt: Add BCryptGenRandom stub.
This commit is contained in:
parent
97505a7475
commit
52aca431e4
|
@ -24,7 +24,7 @@
|
||||||
@ stub BCryptFinalizeKeyPair
|
@ stub BCryptFinalizeKeyPair
|
||||||
@ stub BCryptFinishHash
|
@ stub BCryptFinishHash
|
||||||
@ stub BCryptFreeBuffer
|
@ stub BCryptFreeBuffer
|
||||||
@ stub BCryptGenRandom
|
@ stdcall BCryptGenRandom(ptr ptr long long)
|
||||||
@ stub BCryptGenerateKeyPair
|
@ stub BCryptGenerateKeyPair
|
||||||
@ stub BCryptGenerateSymmetricKey
|
@ stub BCryptGenerateSymmetricKey
|
||||||
@ stub BCryptGetFipsAlgorithmMode
|
@ stub BCryptGetFipsAlgorithmMode
|
||||||
|
|
|
@ -18,11 +18,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "wine/port.h"
|
|
||||||
#include "wine/debug.h"
|
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#include "ntstatus.h"
|
||||||
|
#define WIN32_NO_STATUS
|
||||||
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "bcrypt.h"
|
#include "bcrypt.h"
|
||||||
|
#include "wine/debug.h"
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(bcrypt);
|
WINE_DEFAULT_DEBUG_CHANNEL(bcrypt);
|
||||||
|
|
||||||
|
@ -48,5 +52,12 @@ NTSTATUS WINAPI BCryptEnumAlgorithms(ULONG dwAlgOperations, ULONG *pAlgCount,
|
||||||
*ppAlgList=NULL;
|
*ppAlgList=NULL;
|
||||||
*pAlgCount=0;
|
*pAlgCount=0;
|
||||||
|
|
||||||
return ERROR_CALL_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI BCryptGenRandom(BCRYPT_ALG_HANDLE algorithm, UCHAR *buffer, ULONG count, ULONG flags)
|
||||||
|
{
|
||||||
|
FIXME("%p, %p, %u, %08x - stub\n", algorithm, buffer, count, flags);
|
||||||
|
|
||||||
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,4 +47,9 @@ typedef struct _BCRYPT_ALGORITHM_IDENTIFIER
|
||||||
ULONG dwFlags;
|
ULONG dwFlags;
|
||||||
} BCRYPT_ALGORITHM_IDENTIFIER;
|
} BCRYPT_ALGORITHM_IDENTIFIER;
|
||||||
|
|
||||||
|
typedef PVOID BCRYPT_ALG_HANDLE;
|
||||||
|
|
||||||
|
#define BCRYPT_RNG_USE_ENTROPY_IN_BUFFER 0x00000001
|
||||||
|
#define BCRYPT_USE_SYSTEM_PREFERRED_RNG 0x00000002
|
||||||
|
|
||||||
#endif /* __WINE_BCRYPT_H */
|
#endif /* __WINE_BCRYPT_H */
|
||||||
|
|
Loading…
Reference in a new issue