Lines Matching refs:ilen

350                    size_t ilen, unsigned char *output, size_t *olen )  in mbedtls_cipher_update()  argument
356 CIPHER_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_cipher_update()
367 if( ilen != block_size ) in mbedtls_cipher_update()
370 *olen = ilen; in mbedtls_cipher_update()
384 *olen = ilen; in mbedtls_cipher_update()
385 return( mbedtls_gcm_update( (mbedtls_gcm_context *) ctx->cipher_ctx, ilen, input, in mbedtls_cipher_update()
393 *olen = ilen; in mbedtls_cipher_update()
395 ilen, input, output ) ); in mbedtls_cipher_update()
405 ( ctx->unprocessed_len != 0 || ilen % block_size ) ) in mbedtls_cipher_update()
419 ilen <= block_size - ctx->unprocessed_len ) || in mbedtls_cipher_update()
421 ilen < block_size - ctx->unprocessed_len ) || in mbedtls_cipher_update()
423 ilen < block_size - ctx->unprocessed_len ) ) in mbedtls_cipher_update()
426 ilen ); in mbedtls_cipher_update()
428 ctx->unprocessed_len += ilen; in mbedtls_cipher_update()
454 ilen -= copy_len; in mbedtls_cipher_update()
460 if( 0 != ilen ) in mbedtls_cipher_update()
471 copy_len = ilen % block_size; in mbedtls_cipher_update()
479 memcpy( ctx->unprocessed_data, &( input[ilen - copy_len] ), in mbedtls_cipher_update()
483 ilen -= copy_len; in mbedtls_cipher_update()
489 if( ilen ) in mbedtls_cipher_update()
492 ctx->operation, ilen, ctx->iv, input, output ) ) ) in mbedtls_cipher_update()
497 *olen += ilen; in mbedtls_cipher_update()
508 ctx->operation, ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update()
514 *olen = ilen; in mbedtls_cipher_update()
524 ilen, &ctx->unprocessed_len, ctx->iv, input, output ) ) ) in mbedtls_cipher_update()
529 *olen = ilen; in mbedtls_cipher_update()
539 ilen, &ctx->unprocessed_len, ctx->iv, in mbedtls_cipher_update()
545 *olen = ilen; in mbedtls_cipher_update()
560 ctx->operation, ilen, ctx->iv, input, output ); in mbedtls_cipher_update()
566 *olen = ilen; in mbedtls_cipher_update()
576 ilen, input, output ) ) ) in mbedtls_cipher_update()
581 *olen = ilen; in mbedtls_cipher_update()
1002 const unsigned char *input, size_t ilen, in mbedtls_cipher_crypt() argument
1010 CIPHER_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_cipher_crypt()
1020 if( ( ret = mbedtls_cipher_update( ctx, input, ilen, output, olen ) ) != 0 ) in mbedtls_cipher_crypt()
1038 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_encrypt() argument
1045 CIPHER_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_cipher_auth_encrypt()
1053 *olen = ilen; in mbedtls_cipher_auth_encrypt()
1054 return( mbedtls_gcm_crypt_and_tag( ctx->cipher_ctx, MBEDTLS_GCM_ENCRYPT, ilen, in mbedtls_cipher_auth_encrypt()
1062 *olen = ilen; in mbedtls_cipher_auth_encrypt()
1063 return( mbedtls_ccm_encrypt_and_tag( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_encrypt()
1078 *olen = ilen; in mbedtls_cipher_auth_encrypt()
1080 ilen, iv, ad, ad_len, input, output, tag ) ); in mbedtls_cipher_auth_encrypt()
1093 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_decrypt() argument
1100 CIPHER_VALIDATE_RET( ilen == 0 || input != NULL ); in mbedtls_cipher_auth_decrypt()
1110 *olen = ilen; in mbedtls_cipher_auth_decrypt()
1111 ret = mbedtls_gcm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
1126 *olen = ilen; in mbedtls_cipher_auth_decrypt()
1127 ret = mbedtls_ccm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
1149 *olen = ilen; in mbedtls_cipher_auth_decrypt()
1150 ret = mbedtls_chachapoly_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()