RSA: verify only build fixes

configuration: --disable-ecc --disable-dh --disable-aes --disable-aesgcm
--disable-sha512 --disable-sha384 --disable-sha --disable-poly1305
--disable-chacha --disable-md5 --disable-sha3 --enable-cryptonly
--disable-inline --enable-rsavfy --disable-asn --disable-oaep
--disable-rng --disable-filesystem --enable-sp=rsa2048 --enable-sp-math
Fixes to make code build again.
This commit is contained in:
Sean Parkinson
2021-01-06 11:58:15 +10:00
parent 54f072fd8d
commit cd0670cbd7
3 changed files with 31 additions and 5 deletions

View File

@@ -100,7 +100,7 @@ static WC_INLINE byte Base64_Char2Val(byte c)
byte mask;
c -= BASE64_MIN;
mask = ctMaskLTE(c, 0x3f);
mask = (((byte)(0x3f - c)) >> 7) - 1;
/* Load a value from the first cache line and use when mask set. */
v = base64Decode[ c & 0x3f ] & mask ;
/* Load a value from the second cache line and use when mask not set. */