Lines Matching refs:mode

118                                               const mbedtls_cipher_mode_t mode )  in mbedtls_cipher_info_from_values()  argument
125 def->info->mode == mode ) in mbedtls_cipher_info_from_values()
200 MBEDTLS_MODE_CFB == ctx->cipher_info->mode || in mbedtls_cipher_setkey()
201 MBEDTLS_MODE_CTR == ctx->cipher_info->mode ) in mbedtls_cipher_setkey()
260 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_update_ad()
284 if( ctx->cipher_info->mode == MBEDTLS_MODE_ECB ) in mbedtls_cipher_update()
301 if( ctx->cipher_info->mode == MBEDTLS_MODE_GCM ) in mbedtls_cipher_update()
321 if( ctx->cipher_info->mode == MBEDTLS_MODE_CBC ) in mbedtls_cipher_update()
405 if( ctx->cipher_info->mode == MBEDTLS_MODE_CFB ) in mbedtls_cipher_update()
421 if( ctx->cipher_info->mode == MBEDTLS_MODE_CTR ) in mbedtls_cipher_update()
437 if( ctx->cipher_info->mode == MBEDTLS_MODE_STREAM ) in mbedtls_cipher_update()
634 if( MBEDTLS_MODE_CFB == ctx->cipher_info->mode || in mbedtls_cipher_finish()
635 MBEDTLS_MODE_CTR == ctx->cipher_info->mode || in mbedtls_cipher_finish()
636 MBEDTLS_MODE_GCM == ctx->cipher_info->mode || in mbedtls_cipher_finish()
637 MBEDTLS_MODE_STREAM == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
642 if( MBEDTLS_MODE_ECB == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
651 if( MBEDTLS_MODE_CBC == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
706 int mbedtls_cipher_set_padding_mode( mbedtls_cipher_context_t *ctx, mbedtls_cipher_padding_t mode ) in mbedtls_cipher_set_padding_mode() argument
709 MBEDTLS_MODE_CBC != ctx->cipher_info->mode ) in mbedtls_cipher_set_padding_mode()
714 switch( mode ) in mbedtls_cipher_set_padding_mode()
763 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_write_tag()
780 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_check_tag()
849 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_auth_encrypt()
858 if( MBEDTLS_MODE_CCM == ctx->cipher_info->mode ) in mbedtls_cipher_auth_encrypt()
881 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_auth_decrypt()
897 if( MBEDTLS_MODE_CCM == ctx->cipher_info->mode ) in mbedtls_cipher_auth_decrypt()