summaryrefslogtreecommitdiff
path: root/core/crypto/crypto_core.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-05-11 11:56:55 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-06-18 15:26:24 +0200
commit9a462e07a4fa9f9ff44b2b5521a26eeeb68d34fe (patch)
tree3cab4d1e047bbdc3d2ba7fd094b89ed8acf82a5d /core/crypto/crypto_core.h
parentf03b7f3d7addca3d814fef7c9e693d0485b619ec (diff)
Add AESContext.
GDScript interface to CryptoCore::AESContext. Also add CBC mode in CryptoCore::AESContext and expose it.
Diffstat (limited to 'core/crypto/crypto_core.h')
-rw-r--r--core/crypto/crypto_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/crypto/crypto_core.h b/core/crypto/crypto_core.h
index 36d8ace723..82df9c23a8 100644
--- a/core/crypto/crypto_core.h
+++ b/core/crypto/crypto_core.h
@@ -86,6 +86,8 @@ public:
Error set_decode_key(const uint8_t *p_key, size_t p_bits);
Error encrypt_ecb(const uint8_t p_src[16], uint8_t r_dst[16]);
Error decrypt_ecb(const uint8_t p_src[16], uint8_t r_dst[16]);
+ Error encrypt_cbc(size_t p_length, uint8_t r_iv[16], const uint8_t *p_src, uint8_t *r_dst);
+ Error decrypt_cbc(size_t p_length, uint8_t r_iv[16], const uint8_t *p_src, uint8_t *r_dst);
};
static String b64_encode_str(const uint8_t *p_src, int p_src_len);