mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
fix: AES ECB mode in Data processor not working at all (#1986)
Fix the AES ECB mode in the data processor along with some other misc fixes: - Fixed nullpointer node not working - Fixed crypto module incorrectly using mbedtls api - Fixed crypto module ignoring mbedtls errors - Fixed silently ignoring of errors in AES node
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
|
||||
#include <hex.hpp>
|
||||
|
||||
#include <wolv/utils/expected.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#define CRYPTO_ERROR_INVALID_KEY_LENGTH (-1)
|
||||
#define CRYPTO_ERROR_INVALID_MODE (-2)
|
||||
|
||||
namespace hex::prv {
|
||||
class Provider;
|
||||
}
|
||||
@@ -60,5 +65,5 @@ namespace hex::crypt {
|
||||
Key256Bits = 2
|
||||
};
|
||||
|
||||
std::vector<u8> aesDecrypt(AESMode mode, KeyLength keyLength, const std::vector<u8> &key, std::array<u8, 8> nonce, std::array<u8, 8> iv, const std::vector<u8> &input);
|
||||
wolv::util::Expected<std::vector<u8>, int> aesDecrypt(AESMode mode, KeyLength keyLength, const std::vector<u8> &key, std::array<u8, 8> nonce, std::array<u8, 8> iv, const std::vector<u8> &input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user