diff options
author | Jeffrey Walton <noloader@gmail.com> | 2017-03-08 14:09:58 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2017-03-08 14:09:58 -0500 |
commit | 3f528fef1ff15da1bfe3b4807b514299da0454e1 (patch) | |
tree | 2632ea183d9628bb0d43f3e4c92617c955b169dd /rdrand.asm | |
parent | 5b98a255f7e5be68b485ffa76aa2fa1ab1559e13 (diff) | |
download | cryptopp-git-3f528fef1ff15da1bfe3b4807b514299da0454e1.tar.gz |
Add guard for RDSEED64 on 32-bit platforms (Issue 387)
Cleanup comments in rdrand.cpp and rdrand.asm
Diffstat (limited to 'rdrand.asm')
-rw-r--r-- | rdrand.asm | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -22,12 +22,6 @@ PUBLIC MASM_RDSEED_GenerateBlock ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;; Caller/Callee Saved Registers
-;; https://msdn.microsoft.com/en-us/library/6t169e9c.aspx
-
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
;; C/C++ Function prototypes (both are fastcall)
;; X86:
;; extern "C" void __fastcall MASM_RDRAND_GenerateBlock(byte* ptr, size_t size);
@@ -42,6 +36,7 @@ IFDEF _M_X86 ;; Set via the command line .486
.MODEL FLAT
+;; Fastcall calling conventions exports
ALIAS <@MASM_RDRAND_GenerateBlock@8> = <MASM_RDRAND_GenerateBlock>
ALIAS <@MASM_RDSEED_GenerateBlock@8> = <MASM_RDSEED_GenerateBlock>
@@ -149,7 +144,7 @@ OPTION EPILOGUE:NONE ;; RCX (in): arg1, byte* buffer
;; RDX (in): arg2, size_t bsize
-MASM_RDRAND_GenerateBlock PROC
+MASM_RDRAND_GenerateBlock PROC ;; arg1:QWORD, arg2:QWORD
MWSIZE EQU 08h ;; machine word size
buffer EQU rcx
@@ -335,7 +330,7 @@ OPTION EPILOGUE:NONE ;; RCX (in): arg1, byte* buffer
;; RDX (in): arg2, size_t bsize
-MASM_RDSEED_GenerateBlock PROC ;; arg1:QWORD, arg2:QWORD
+MASM_RDSEED_GenerateBlock PROC ;; arg1:QWORD, arg2:QWORD
MWSIZE EQU 08h ;; machine word size
buffer EQU rcx
|