Lines Matching refs:mode

131     const mbedtls_cipher_mode_t mode )  in mbedtls_cipher_info_from_values()  argument
138 def->info->mode == mode ) in mbedtls_cipher_info_from_values()
264 alg = mbedtls_psa_translate_cipher_mode( cipher_info->mode, taglen ); in mbedtls_cipher_setup_psa()
375 MBEDTLS_MODE_CFB == ctx->cipher_info->mode || in mbedtls_cipher_setkey()
376 MBEDTLS_MODE_OFB == ctx->cipher_info->mode || in mbedtls_cipher_setkey()
377 MBEDTLS_MODE_CTR == ctx->cipher_info->mode ) in mbedtls_cipher_setkey()
497 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_update_ad()
508 mbedtls_chachapoly_mode_t mode; in mbedtls_cipher_update_ad() local
510 mode = ( ctx->operation == MBEDTLS_ENCRYPT ) in mbedtls_cipher_update_ad()
516 mode ); in mbedtls_cipher_update_ad()
559 if( ctx->cipher_info->mode == MBEDTLS_MODE_ECB ) in mbedtls_cipher_update()
576 if( ctx->cipher_info->mode == MBEDTLS_MODE_GCM ) in mbedtls_cipher_update()
600 if( ctx->cipher_info->mode == MBEDTLS_MODE_CBC ) in mbedtls_cipher_update()
689 if( ctx->cipher_info->mode == MBEDTLS_MODE_CFB ) in mbedtls_cipher_update()
705 if( ctx->cipher_info->mode == MBEDTLS_MODE_OFB ) in mbedtls_cipher_update()
720 if( ctx->cipher_info->mode == MBEDTLS_MODE_CTR ) in mbedtls_cipher_update()
736 if( ctx->cipher_info->mode == MBEDTLS_MODE_XTS ) in mbedtls_cipher_update()
757 if( ctx->cipher_info->mode == MBEDTLS_MODE_STREAM ) in mbedtls_cipher_update()
967 if( MBEDTLS_MODE_CFB == ctx->cipher_info->mode || in mbedtls_cipher_finish()
968 MBEDTLS_MODE_OFB == ctx->cipher_info->mode || in mbedtls_cipher_finish()
969 MBEDTLS_MODE_CTR == ctx->cipher_info->mode || in mbedtls_cipher_finish()
970 MBEDTLS_MODE_GCM == ctx->cipher_info->mode || in mbedtls_cipher_finish()
971 MBEDTLS_MODE_XTS == ctx->cipher_info->mode || in mbedtls_cipher_finish()
972 MBEDTLS_MODE_STREAM == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
983 if( MBEDTLS_MODE_ECB == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
992 if( MBEDTLS_MODE_CBC == ctx->cipher_info->mode ) in mbedtls_cipher_finish()
1048 mbedtls_cipher_padding_t mode ) in mbedtls_cipher_set_padding_mode() argument
1052 if( NULL == ctx->cipher_info || MBEDTLS_MODE_CBC != ctx->cipher_info->mode ) in mbedtls_cipher_set_padding_mode()
1063 if( mode != MBEDTLS_PADDING_NONE ) in mbedtls_cipher_set_padding_mode()
1070 switch( mode ) in mbedtls_cipher_set_padding_mode()
1132 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_write_tag()
1185 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_check_tag()
1289 if( ctx->cipher_info->mode != MBEDTLS_MODE_ECB ) in mbedtls_cipher_crypt()
1377 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_aead_encrypt()
1386 if( MBEDTLS_MODE_CCM == ctx->cipher_info->mode ) in mbedtls_cipher_aead_encrypt()
1458 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_aead_decrypt()
1474 if( MBEDTLS_MODE_CCM == ctx->cipher_info->mode ) in mbedtls_cipher_aead_decrypt()
1587 ( MBEDTLS_MODE_KW == ctx->cipher_info->mode || in mbedtls_cipher_auth_encrypt_ext()
1588 MBEDTLS_MODE_KWP == ctx->cipher_info->mode ) ) in mbedtls_cipher_auth_encrypt_ext()
1590 mbedtls_nist_kw_mode_t mode = ( MBEDTLS_MODE_KW == ctx->cipher_info->mode ) ? in mbedtls_cipher_auth_encrypt_ext() local
1601 return( mbedtls_nist_kw_wrap( ctx->cipher_ctx, mode, input, ilen, in mbedtls_cipher_auth_encrypt_ext()
1643 ( MBEDTLS_MODE_KW == ctx->cipher_info->mode || in mbedtls_cipher_auth_decrypt_ext()
1644 MBEDTLS_MODE_KWP == ctx->cipher_info->mode ) ) in mbedtls_cipher_auth_decrypt_ext()
1646 mbedtls_nist_kw_mode_t mode = ( MBEDTLS_MODE_KW == ctx->cipher_info->mode ) ? in mbedtls_cipher_auth_decrypt_ext() local
1657 return( mbedtls_nist_kw_unwrap( ctx->cipher_ctx, mode, input, ilen, in mbedtls_cipher_auth_decrypt_ext()