Skip to content

Commit 01b0280

Browse files
kaabiajhedberg
authored andcommitted
crypto: mbedtls_shim: Fix typos
Corrected "encrypt" log messages to "decrypt." Signed-off-by: Badr Bacem KAABIA <[email protected]>
1 parent b933bf5 commit 01b0280

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/crypto/crypto_mtls_shim.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ int mtls_ecb_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt)
110110
ret = mbedtls_aes_crypt_ecb(ecb_ctx, MBEDTLS_AES_DECRYPT,
111111
pkt->in_buf, pkt->out_buf);
112112
if (ret) {
113-
LOG_ERR("Could not encrypt (%d)", ret);
113+
LOG_ERR("Could not decrypt (%d)", ret);
114114
return -EINVAL;
115115
}
116116

@@ -168,7 +168,7 @@ int mtls_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv
168168
ret = mbedtls_aes_crypt_cbc(cbc_ctx, MBEDTLS_AES_DECRYPT, pkt->in_len,
169169
p_iv, pkt->in_buf + iv_bytes, pkt->out_buf);
170170
if (ret) {
171-
LOG_ERR("Could not encrypt (%d)", ret);
171+
LOG_ERR("Could not decrypt (%d)", ret);
172172
return -EINVAL;
173173
}
174174

0 commit comments

Comments
 (0)