• Home
  • Raw
  • Download

Lines Matching refs:cipher_ctx

201     if( ctx->cipher_ctx )  in mbedtls_cipher_free()
202 ctx->cipher_info->base->ctx_free_func( ctx->cipher_ctx ); in mbedtls_cipher_free()
215 if( NULL == ( ctx->cipher_ctx = cipher_info->base->ctx_alloc_func() ) ) in mbedtls_cipher_setup()
263 return( ctx->cipher_info->base->setkey_enc_func( ctx->cipher_ctx, key, in mbedtls_cipher_setkey()
268 return( ctx->cipher_info->base->setkey_dec_func( ctx->cipher_ctx, key, in mbedtls_cipher_setkey()
303 if ( 0 != mbedtls_chacha20_starts( (mbedtls_chacha20_context*)ctx->cipher_ctx, in mbedtls_cipher_set_iv()
344 return( mbedtls_gcm_starts( (mbedtls_gcm_context *) ctx->cipher_ctx, ctx->operation, in mbedtls_cipher_update_ad()
359 result = mbedtls_chachapoly_starts( (mbedtls_chachapoly_context*) ctx->cipher_ctx, in mbedtls_cipher_update_ad()
365 return( mbedtls_chachapoly_update_aad( (mbedtls_chachapoly_context*) ctx->cipher_ctx, in mbedtls_cipher_update_ad()
401 if( 0 != ( ret = ctx->cipher_info->base->ecb_func( ctx->cipher_ctx, in mbedtls_cipher_update()
414 return( mbedtls_gcm_update( (mbedtls_gcm_context *) ctx->cipher_ctx, ilen, input, in mbedtls_cipher_update()
423 return( mbedtls_chachapoly_update( (mbedtls_chachapoly_context*) ctx->cipher_ctx, in mbedtls_cipher_update()
466 if( 0 != ( ret = ctx->cipher_info->base->cbc_func( ctx->cipher_ctx, in mbedtls_cipher_update()
510 if( 0 != ( ret = ctx->cipher_info->base->cbc_func( ctx->cipher_ctx, in mbedtls_cipher_update()
526 if( 0 != ( ret = ctx->cipher_info->base->cfb_func( ctx->cipher_ctx, in mbedtls_cipher_update()
542 if( 0 != ( ret = ctx->cipher_info->base->ofb_func( ctx->cipher_ctx, in mbedtls_cipher_update()
557 if( 0 != ( ret = ctx->cipher_info->base->ctr_func( ctx->cipher_ctx, in mbedtls_cipher_update()
578 ret = ctx->cipher_info->base->xts_func( ctx->cipher_ctx, in mbedtls_cipher_update()
594 if( 0 != ( ret = ctx->cipher_info->base->stream_func( ctx->cipher_ctx, in mbedtls_cipher_update()
848 if( 0 != ( ret = ctx->cipher_info->base->cbc_func( ctx->cipher_ctx, in mbedtls_cipher_finish()
935 return( mbedtls_gcm_finish( (mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_write_tag()
946 return( mbedtls_chachapoly_finish( (mbedtls_chachapoly_context*) ctx->cipher_ctx, in mbedtls_cipher_write_tag()
976 if( 0 != ( ret = mbedtls_gcm_finish( (mbedtls_gcm_context *) ctx->cipher_ctx, in mbedtls_cipher_check_tag()
997 ret = mbedtls_chachapoly_finish( (mbedtls_chachapoly_context*) ctx->cipher_ctx, in mbedtls_cipher_check_tag()
1073 return( mbedtls_gcm_crypt_and_tag( ctx->cipher_ctx, MBEDTLS_GCM_ENCRYPT, ilen, in mbedtls_cipher_auth_encrypt()
1082 return( mbedtls_ccm_encrypt_and_tag( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_encrypt()
1098 return( mbedtls_chachapoly_encrypt_and_tag( ctx->cipher_ctx, in mbedtls_cipher_auth_encrypt()
1130 ret = mbedtls_gcm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
1146 ret = mbedtls_ccm_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()
1169 ret = mbedtls_chachapoly_auth_decrypt( ctx->cipher_ctx, ilen, in mbedtls_cipher_auth_decrypt()