Commit 296bfc8
committed
wolfcrypt/src/random.c:
* in USE_WINDOWS_API wc_GenerateSeed(), recognize HAVE_AMD_RDSEED, and properly enforce FORCE_FAILURE_RDSEED when CPU support is missing;
* in WOLFSSL_LINUXKM wc_GenerateSeed(), initialize ret to RNG_FAILURE_E, and properly enforce FORCE_FAILURE_RDSEED when CPU support is missing;
* in WOLFSSL_BSDKM wc_GenerateSeed(), properly enforce FORCE_FAILURE_RDSEED when CPU support is missing;1 parent c2a8f77 commit 296bfc8
2 files changed
Lines changed: 28 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3934 | 3934 | | |
3935 | 3935 | | |
3936 | 3936 | | |
3937 | | - | |
| 3937 | + | |
3938 | 3938 | | |
3939 | 3939 | | |
3940 | 3940 | | |
| |||
3945 | 3945 | | |
3946 | 3946 | | |
3947 | 3947 | | |
3948 | | - | |
| 3948 | + | |
| 3949 | + | |
| 3950 | + | |
| 3951 | + | |
| 3952 | + | |
| 3953 | + | |
| 3954 | + | |
3949 | 3955 | | |
3950 | 3956 | | |
3951 | 3957 | | |
| |||
4914 | 4920 | | |
4915 | 4921 | | |
4916 | 4922 | | |
4917 | | - | |
| 4923 | + | |
4918 | 4924 | | |
4919 | 4925 | | |
4920 | 4926 | | |
| |||
4934 | 4940 | | |
4935 | 4941 | | |
4936 | 4942 | | |
| 4943 | + | |
| 4944 | + | |
| 4945 | + | |
| 4946 | + | |
| 4947 | + | |
| 4948 | + | |
4937 | 4949 | | |
4938 | 4950 | | |
4939 | 4951 | | |
| |||
4957 | 4969 | | |
4958 | 4970 | | |
4959 | 4971 | | |
4960 | | - | |
| 4972 | + | |
4961 | 4973 | | |
4962 | 4974 | | |
4963 | 4975 | | |
| |||
4980 | 4992 | | |
4981 | 4993 | | |
4982 | 4994 | | |
| 4995 | + | |
| 4996 | + | |
| 4997 | + | |
| 4998 | + | |
| 4999 | + | |
| 5000 | + | |
4983 | 5001 | | |
4984 | 5002 | | |
4985 | 5003 | | |
| |||
0 commit comments