OcCryptoLib: Sha2
Add note regarding int overflow and mem limit
@@ -556,6 +556,12 @@ Sha384Final (
BlockNb = ((SHA384_BLOCK_SIZE - 17) < (Context->Length % SHA384_BLOCK_SIZE)) + 1;
+ //
+ // @TODO: Using 32 bit integer for data len doesn't work for a big memory blocks.
+ // Also there are possible integer overflow
+ // Context->TotalLength + Context->Length
+ // Same thing for 512-bit implementation above
+ //
LenB = (Context->TotalLength + Context->Length) << 3;
PmLen = BlockNb << 7;
