1; This file is generated from a similarly-named Perl script in the BoringSSL 2; source tree. Do not edit by hand. 3 4default rel 5%define XMMWORD 6%define YMMWORD 7%define ZMMWORD 8 9%ifdef BORINGSSL_PREFIX 10%include "boringssl_prefix_symbols_nasm.inc" 11%endif 12section .text code align=64 13 14 15 16 17 18global CRYPTO_rdrand 19 20ALIGN 16 21CRYPTO_rdrand: 22 23 xor rax,rax 24DB 73,15,199,240 25 26 adc rax,rax 27 mov QWORD[rcx],r8 28 DB 0F3h,0C3h ;repret 29 30 31 32 33 34 35 36global CRYPTO_rdrand_multiple8_buf 37 38ALIGN 16 39CRYPTO_rdrand_multiple8_buf: 40 41 test rdx,rdx 42 jz NEAR $L$out 43 mov r8,8 44$L$loop: 45DB 73,15,199,241 46 jnc NEAR $L$err 47 mov QWORD[rcx],r9 48 add rcx,r8 49 sub rdx,r8 50 jnz NEAR $L$loop 51$L$out: 52 mov rax,1 53 DB 0F3h,0C3h ;repret 54$L$err: 55 xor rax,rax 56 DB 0F3h,0C3h ;repret 57 58 59