Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c822cb99
Commit
c822cb99
authored
Oct 12, 2020
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dssenh: Implement CPGenRandom.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e32b29a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
dssenh.spec
dlls/dssenh/dssenh.spec
+1
-1
main.c
dlls/dssenh/main.c
+12
-0
No files found.
dlls/dssenh/dssenh.spec
View file @
c822cb99
...
...
@@ -9,7 +9,7 @@
@ stub CPEncrypt
@ stdcall CPExportKey(ptr ptr ptr long long ptr ptr)
@ stdcall CPGenKey(ptr long long ptr)
@ st
ub CPGenRandom
@ st
dcall CPGenRandom(ptr long ptr)
@ stdcall CPGetHashParam(ptr ptr long ptr ptr long)
@ stub CPGetKeyParam
@ stdcall CPGetProvParam(ptr long ptr ptr long)
...
...
dlls/dssenh/main.c
View file @
c822cb99
...
...
@@ -27,6 +27,7 @@
#include "bcrypt.h"
#include "objbase.h"
#include "rpcproxy.h"
#include "ntsecapi.h"
#include "wine/debug.h"
#include "wine/heap.h"
...
...
@@ -498,6 +499,17 @@ BOOL WINAPI CPDuplicateKey( HCRYPTPROV hprov, HCRYPTKEY hkey, DWORD *reserved, D
return
TRUE
;
}
BOOL
WINAPI
CPGenRandom
(
HCRYPTPROV
hprov
,
DWORD
len
,
BYTE
*
buffer
)
{
struct
container
*
container
=
(
struct
container
*
)
hprov
;
TRACE
(
"%p, %u, %p
\n
"
,
(
void
*
)
hprov
,
len
,
buffer
);
if
(
container
->
magic
!=
MAGIC_CONTAINER
)
return
FALSE
;
return
RtlGenRandom
(
buffer
,
len
);
}
static
struct
hash
*
create_hash
(
ALG_ID
algid
)
{
struct
hash
*
ret
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment