X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d9a64523371fa019c4575bb400cbbc3a50ac9903..eb6b6ca394357805f2bdba989abae309f718b4d8:/EXTERNAL_HEADERS/corecrypto/ccmode_siv.h diff --git a/EXTERNAL_HEADERS/corecrypto/ccmode_siv.h b/EXTERNAL_HEADERS/corecrypto/ccmode_siv.h index 99322ad2d..1b05c638e 100644 --- a/EXTERNAL_HEADERS/corecrypto/ccmode_siv.h +++ b/EXTERNAL_HEADERS/corecrypto/ccmode_siv.h @@ -56,7 +56,7 @@ CC_INLINE size_t ccsiv_block_size(const struct ccmode_siv *mode) CC_INLINE size_t ccsiv_ciphertext_size(const struct ccmode_siv *mode, size_t plaintext_size) { - return plaintext_size+mode->cbc->block_size; + return plaintext_size + mode->cbc->block_size; } CC_INLINE size_t ccsiv_plaintext_size(const struct ccmode_siv *mode, @@ -65,7 +65,7 @@ CC_INLINE size_t ccsiv_plaintext_size(const struct ccmode_siv *mode, if (ciphertext_sizecbc->block_size) { return 0; // error } - return ciphertext_size-mode->cbc->block_size; + return ciphertext_size - mode->cbc->block_size; } // Supported key sizes are 32, 48, 64 bytes @@ -99,7 +99,6 @@ CC_INLINE int ccsiv_crypt(const struct ccmode_siv *mode, ccsiv_ctx *ctx, } // Clear all context for reuse. -// Key is clear to avoid leaking it CC_INLINE int ccsiv_reset(const struct ccmode_siv *mode, ccsiv_ctx *ctx) { return mode->reset(ctx);