Lines Matching refs:ilen
580 size_t ilen, unsigned char *output, size_t *olen) in mbedtls_cipher_update() argument
605 if (ilen != block_size) { in mbedtls_cipher_update()
609 *olen = ilen; in mbedtls_cipher_update()
623 input, ilen, in mbedtls_cipher_update()
624 output, ilen, olen); in mbedtls_cipher_update()
631 input, ilen, in mbedtls_cipher_update()
632 output, ilen, olen); in mbedtls_cipher_update()
638 *olen = ilen; in mbedtls_cipher_update()
640 ilen, input, output); in mbedtls_cipher_update()
645 (ctx->unprocessed_len != 0 || ilen % block_size)) { in mbedtls_cipher_update()
657 ilen <= block_size - ctx->unprocessed_len) || in mbedtls_cipher_update()
659 ilen < block_size - ctx->unprocessed_len) || in mbedtls_cipher_update()
661 ilen < block_size - ctx->unprocessed_len)) { in mbedtls_cipher_update()
663 ilen); in mbedtls_cipher_update()
665 ctx->unprocessed_len += ilen; in mbedtls_cipher_update()
692 ilen -= copy_len; in mbedtls_cipher_update()
698 if (0 != ilen) { in mbedtls_cipher_update()
703 copy_len = ilen % block_size; in mbedtls_cipher_update()
710 memcpy(ctx->unprocessed_data, &(input[ilen - copy_len]), in mbedtls_cipher_update()
714 ilen -= copy_len; in mbedtls_cipher_update()
720 if (ilen) { in mbedtls_cipher_update()
723 ilen, ctx->iv, in mbedtls_cipher_update()
729 *olen += ilen; in mbedtls_cipher_update()
739 ctx->operation, ilen, in mbedtls_cipher_update()
746 *olen = ilen; in mbedtls_cipher_update()
755 ilen, in mbedtls_cipher_update()
762 *olen = ilen; in mbedtls_cipher_update()
771 ilen, in mbedtls_cipher_update()
779 *olen = ilen; in mbedtls_cipher_update()
794 ilen, in mbedtls_cipher_update()
802 *olen = ilen; in mbedtls_cipher_update()
811 ilen, input, in mbedtls_cipher_update()
816 *olen = ilen; in mbedtls_cipher_update()
1311 const unsigned char *input, size_t ilen, in mbedtls_cipher_crypt() argument
1359 input, ilen, in mbedtls_cipher_crypt()
1360 output, ilen, olen); in mbedtls_cipher_crypt()
1366 output + *olen, ilen - *olen, in mbedtls_cipher_crypt()
1385 if ((ret = mbedtls_cipher_update(ctx, input, ilen, in mbedtls_cipher_crypt()
1408 const unsigned char *input, size_t ilen, in mbedtls_cipher_aead_encrypt() argument
1426 if (output == NULL || tag != output + ilen) { in mbedtls_cipher_aead_encrypt()
1434 input, ilen, in mbedtls_cipher_aead_encrypt()
1435 output, ilen + tag_len, olen); in mbedtls_cipher_aead_encrypt()
1447 *olen = ilen; in mbedtls_cipher_aead_encrypt()
1449 ilen, iv, iv_len, ad, ad_len, in mbedtls_cipher_aead_encrypt()
1455 *olen = ilen; in mbedtls_cipher_aead_encrypt()
1456 return mbedtls_ccm_encrypt_and_tag(ctx->cipher_ctx, ilen, in mbedtls_cipher_aead_encrypt()
1469 *olen = ilen; in mbedtls_cipher_aead_encrypt()
1471 ilen, iv, ad, ad_len, input, output, tag); in mbedtls_cipher_aead_encrypt()
1485 const unsigned char *input, size_t ilen, in mbedtls_cipher_aead_decrypt() argument
1503 if (input == NULL || tag != input + ilen) { in mbedtls_cipher_aead_decrypt()
1511 input, ilen + tag_len, in mbedtls_cipher_aead_decrypt()
1512 output, ilen, olen); in mbedtls_cipher_aead_decrypt()
1527 *olen = ilen; in mbedtls_cipher_aead_decrypt()
1528 ret = mbedtls_gcm_auth_decrypt(ctx->cipher_ctx, ilen, in mbedtls_cipher_aead_decrypt()
1543 *olen = ilen; in mbedtls_cipher_aead_decrypt()
1544 ret = mbedtls_ccm_auth_decrypt(ctx->cipher_ctx, ilen, in mbedtls_cipher_aead_decrypt()
1565 *olen = ilen; in mbedtls_cipher_aead_decrypt()
1566 ret = mbedtls_chachapoly_auth_decrypt(ctx->cipher_ctx, ilen, in mbedtls_cipher_aead_decrypt()
1588 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_encrypt_ext() argument
1612 return mbedtls_nist_kw_wrap(ctx->cipher_ctx, mode, input, ilen, in mbedtls_cipher_auth_encrypt_ext()
1619 if (output_len < ilen + tag_len) { in mbedtls_cipher_auth_encrypt_ext()
1624 input, ilen, output, olen, in mbedtls_cipher_auth_encrypt_ext()
1625 output + ilen, tag_len); in mbedtls_cipher_auth_encrypt_ext()
1639 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_decrypt_ext() argument
1663 return mbedtls_nist_kw_unwrap(ctx->cipher_ctx, mode, input, ilen, in mbedtls_cipher_auth_decrypt_ext()
1670 if (ilen < tag_len || output_len < ilen - tag_len) { in mbedtls_cipher_auth_decrypt_ext()
1675 input, ilen - tag_len, output, olen, in mbedtls_cipher_auth_decrypt_ext()
1676 input + ilen - tag_len, tag_len); in mbedtls_cipher_auth_decrypt_ext()