From 4b1fedacda4fd35b8c200bb4a90c555a2f260d9c Mon Sep 17 00:00:00 2001 From: DacoTaco Date: Mon, 25 Nov 2024 22:15:43 +0100 Subject: [PATCH] crypto: allow data to be passed that is larger than msg block the sha_executeCommand will break it up in chunks for processing anyway --- libogc/sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libogc/sha.c b/libogc/sha.c index 92f18dd3..5a15a7d6 100644 --- a/libogc/sha.c +++ b/libogc/sha.c @@ -151,7 +151,7 @@ s32 SHA_Input(sha_context* context, const void* data, const u32 data_size) if(context == NULL || data == NULL || data_size == 0) return -1; - if((((u32)context) & 0x1F) || (((u32)data) & 0x3F) || (data_size & ~(SHA_MSGBLOCK_SIZE-1)) != 0) + if((((u32)context) & 0x1F) || (((u32)data) & 0x3F)) return -4; return SHA_ExecuteCommand(AddData, context, data, data_size, NULL);