16 Commits

Author SHA1 Message Date
PMheart
11232d53f5 Codestyle: Fixed by Uncrustify 2022-04-25 21:30:42 +02:00
Marvin Häuser
9d152dc686 OcCryptoLib: Fix potential Mont BN overflows 2022-04-25 19:32:19 +02:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
vit9696
d12c413664 OcCryptoLib: Use scratch buffer in BN words for simplicity 2022-03-06 15:58:32 +03:00
vit9696
8d9d387e38 OcCryptoLib: Drop BigNumMod memory allocation
BigNumCalculateMontParams previously did not check BigNumMod for memory
allocation failure anyway, which was thus harder to diagnose due to
the Montgomery Inverse of N still returning correctly.
2022-03-06 15:25:02 +03:00
vit9696
0f22e66dfb OcCryptoLib: Drop pool memory usage optimisation in BigNumMod
Currently BigNumMod does not allocate memory for A words with leading
zeroes. For us words are 8 bytes. When doing RSA computations with
proper keys 8 zero bytes are nearly impossible and 16 zero bytes are
completely impossible. Avoiding this optimisation does not change
library behaviour for nearly all inputs but provides simpler guarantees
about memory usage and simplifies testing.
2022-03-06 15:14:58 +03:00
vit9696
8551daca79 OcCryptoLib: Improve portability 2022-03-06 11:49:16 +03:00
MikhailKrichanov
910343ae46
Analysis: Patches to several Svace warnings. (#308) 2021-12-21 19:57:48 +03:00
vit9696
f918b0ab19 OcCryptoLib: Silence compiler warnings
closes acidanthera/bugtracker#638
2020-01-09 11:55:07 +03:00
Download-Fritz
469cc6ef33 OcCryptoLib: Fix type cast warnings 2019-11-30 13:58:18 +01:00
vit9696
1560cec90c OcGuardLib: Switch to edk2-stable201911 2019-11-29 17:32:17 +03:00
Download-Fritz
3e9ef5ac41 OcCryptoLib: Import changes missed in f18ec0022b 2019-11-11 22:28:14 +01:00
Download-Fritz
f18ec0022b OcCryptoLib: Import new BN mod algorithm. Deprecate former support functions. 2019-11-11 22:24:21 +01:00
Download-Fritz
ca949104a6 OcCryptoLib: Fix potential deadlock 2019-11-11 22:24:21 +01:00
Download-Fritz
aece54d878 OcCryptoLib: Fix MSVC build and type consistency 2019-11-06 19:47:14 +01:00
Download-Fritz
410d10d3fc
OcCryptoLib: Import new RSA stack
Import a new RSA stack and test utilities to support IMG4 image verification.
2019-11-06 19:26:45 +01:00