summaryrefslogtreecommitdiffstats
path: root/win-x86_64/crypto/rand/rdrand-x86_64.asm
blob: a63ea69d4cb93cc7af6d94b95b3379c9da976385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
default	rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section	.text code align=64


global	CRYPTO_rdrand

ALIGN	16
CRYPTO_rdrand:
	mov	QWORD[8+rsp],rdi	;WIN64 prologue
	mov	QWORD[16+rsp],rsi
	mov	rax,rsp
$L$SEH_begin_CRYPTO_rdrand:
	mov	rdi,rcx


DB	0x48,0x0f,0xc7,0xf0
	mov	rdi,QWORD[8+rsp]	;WIN64 epilogue
	mov	rsi,QWORD[16+rsp]
	DB	0F3h,0C3h		;repret