RESULT_ERROR_LITERAL
This commit is contained in:
@@ -127,7 +127,7 @@ Result(u32) AESBlockDecryptor_decrypt(AESBlockDecryptor* ptr,
|
||||
|
||||
// validate decrypted data
|
||||
if(memcmp(header.key_checksum, ptr->key_checksum, __AES_BLOCK_KEY_CHECKSUM_SIZE) != 0){
|
||||
Return RESULT_ERROR("decrypted data is invalid or key is wrong", false);
|
||||
Return RESULT_ERROR_LITERAL("decrypted data is invalid or key is wrong");
|
||||
}
|
||||
|
||||
// size of decrypted data without padding
|
||||
@@ -266,7 +266,7 @@ Result(u32) AESStreamDecryptor_decrypt(AESStreamDecryptor* ptr,
|
||||
key_checksum, __AES_BLOCK_KEY_CHECKSUM_SIZE);
|
||||
// validate decrypted data
|
||||
if(memcmp(key_checksum, ptr->key_checksum, __AES_BLOCK_KEY_CHECKSUM_SIZE) != 0){
|
||||
Return RESULT_ERROR("decrypted data is invalid or key is wrong", false);
|
||||
Return RESULT_ERROR_LITERAL("decrypted data is invalid or key is wrong");
|
||||
}
|
||||
}
|
||||
// size without IV
|
||||
|
||||
Reference in New Issue
Block a user