[Random] add a flag to be able to disable rdrand
This commit is contained in:
parent
56839fcd82
commit
db3e180a41
@ -51,6 +51,11 @@ Flag support_aesni
|
|||||||
Default: True
|
Default: True
|
||||||
Manual: True
|
Manual: True
|
||||||
|
|
||||||
|
Flag support_rdrand
|
||||||
|
Description: allow compilation with AESNI on system and architecture that supports it
|
||||||
|
Default: True
|
||||||
|
Manual: True
|
||||||
|
|
||||||
Flag support_pclmuldq
|
Flag support_pclmuldq
|
||||||
Description: Allow compilation with pclmuldq on architecture that supports it
|
Description: Allow compilation with pclmuldq on architecture that supports it
|
||||||
Default: False
|
Default: False
|
||||||
@ -202,7 +207,7 @@ Library
|
|||||||
if arch(i386)
|
if arch(i386)
|
||||||
CPP-options: -DARCH_X86
|
CPP-options: -DARCH_X86
|
||||||
|
|
||||||
if arch(x86_64)
|
if flag(support_rdrand) && arch(x86_64)
|
||||||
CPP-options: -DARCH_X86_64
|
CPP-options: -DARCH_X86_64
|
||||||
CPP-options: -DSUPPORT_RDRAND
|
CPP-options: -DSUPPORT_RDRAND
|
||||||
Other-modules: Crypto.Random.Entropy.RDRand
|
Other-modules: Crypto.Random.Entropy.RDRand
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user