Lines Matching refs:in_len
80 if (pkt->in_len > 16) { in mtls_ecb_encrypt()
105 if (pkt->in_len > 16) { in mtls_ecb_decrypt()
141 ret = mbedtls_aes_crypt_cbc(cbc_ctx, MBEDTLS_AES_ENCRYPT, pkt->in_len, in mtls_cbc_encrypt()
148 pkt->out_len = pkt->in_len + iv_bytes; in mtls_cbc_encrypt()
168 ret = mbedtls_aes_crypt_cbc(cbc_ctx, MBEDTLS_AES_DECRYPT, pkt->in_len, in mtls_cbc_decrypt()
175 pkt->out_len = pkt->in_len - iv_bytes; in mtls_cbc_decrypt()
187 ret = mbedtls_ccm_encrypt_and_tag(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_encrypt_auth()
203 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_encrypt_auth()
216 ret = mbedtls_ccm_auth_decrypt(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_ccm_decrypt_auth()
234 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_ccm_decrypt_auth()
249 apkt->pkt->in_len, nonce, in mtls_gcm_encrypt_auth()
263 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_gcm_encrypt_auth()
276 ret = mbedtls_gcm_auth_decrypt(mtls_ctx, apkt->pkt->in_len, nonce, in mtls_gcm_decrypt_auth()
293 apkt->pkt->out_len = apkt->pkt->in_len; in mtls_gcm_decrypt_auth()
482 ret = mbedtls_sha256_update(sha256_ctx, pkt->in_buf, pkt->in_len); in mtls_sha256_compute()
517 ret = mbedtls_sha512_update(sha512_ctx, pkt->in_buf, pkt->in_len); in mtls_sha512_compute()