Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support RDRAND on AMD Ryzen CPU #28

Closed
blackbearman opened this issue Nov 11, 2022 · 1 comment
Closed

Support RDRAND on AMD Ryzen CPU #28

blackbearman opened this issue Nov 11, 2022 · 1 comment
Labels

Comments

@blackbearman
Copy link
Contributor

Ryzen series of AMD processors support instructions RDRAND and RDSEED. Instructions for checking of presence and random numbers generations are same on Intel and AMD platforms.

Bee2 checks manufacturer by CPUID 01 instruction to be Intel ("GenuineIntel" in a twelve-character ASCII string stored in EBX, EDX, ECX). AMD processors produce "AuthenticAMD" after same CPUID command.

@agievich agievich added the rng label Feb 14, 2023
@blackbearman
Copy link
Contributor Author

Tested bb70597 on AMD Ryzen 5 5600H (cat /proc/cpuinfo shows flags : rdrand rdseed ...)

rngSource[ trng]: 19142CF6582CB0B18EDD0932B4A2DA31... [FIPS: 1+ 2+ 3+ 4+]
rngSource[trng2]: A2E6AC1805803AF33349AD2018DA4E5B... [FIPS: 1+ 2+ 3+ 4+]
rngSource[  sys]: A5584A86EE4E36BAE96717C1D491B376... [FIPS: 1+ 2+ 3+ 4+]
rngSource[timer]: 2D5115DF89D26EE9B028E11788CC361B... [FIPS: 1+ 2+ 3+ 4+]
rngStepR:         8CF66A8D612B4D968907584D518C0D26... [FIPS: 1+ 2+ 3+ 4+]
rngStepR2:        C49EE0446557912D30EEBCFBE8A54709... [FIPS: 1+ 2+ 3+ 4+]
rngTest: OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants