diff options
author | Anshul7sp1 <Anshul7sp1@users.noreply.github.com> | 2021-03-12 19:05:16 +0530 |
---|---|---|
committer | Anshul7sp1 <Anshul7sp1@users.noreply.github.com> | 2021-03-12 19:05:16 +0530 |
commit | 91181c20865d419decd78e022006074c9fd0faba (patch) | |
tree | 29f7cfdc5c544cfd6f3128588dd42f9ce3767c8e /core/crypto | |
parent | adf233ed0436a0564db7682b4ce0931656d4c392 (diff) |
Fixes small typos and grammar correction
Diffstat (limited to 'core/crypto')
-rw-r--r-- | core/crypto/crypto.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/crypto/crypto.cpp b/core/crypto/crypto.cpp index f43f3e3290..6b3953f588 100644 --- a/core/crypto/crypto.cpp +++ b/core/crypto/crypto.cpp @@ -100,7 +100,7 @@ void Crypto::load_default_certificates(String p_path) { PackedByteArray Crypto::hmac_digest(HashingContext::HashType p_hash_type, PackedByteArray p_key, PackedByteArray p_msg) { Ref<HMACContext> ctx = Ref<HMACContext>(HMACContext::create()); - ERR_FAIL_COND_V_MSG(ctx.is_null(), PackedByteArray(), "HMAC is not available witout mbedtls module."); + ERR_FAIL_COND_V_MSG(ctx.is_null(), PackedByteArray(), "HMAC is not available without mbedtls module."); Error err = ctx->start(p_hash_type, p_key); ERR_FAIL_COND_V(err != OK, PackedByteArray()); err = ctx->update(p_msg); @@ -108,7 +108,7 @@ PackedByteArray Crypto::hmac_digest(HashingContext::HashType p_hash_type, Packed return ctx->finish(); } -// Compares two HMACS for equality without leaking timing information in order to prevent timing attakcs. +// Compares two HMACS for equality without leaking timing information in order to prevent timing attacks. // @see: https://paragonie.com/blog/2015/11/preventing-timing-attacks-on-string-comparison-with-double-hmac-strategy bool Crypto::constant_time_compare(PackedByteArray p_trusted, PackedByteArray p_received) { const uint8_t *t = p_trusted.ptr(); |