/mbedtls-development/library/ |
A D | cipher.c | 151 const mbedtls_cipher_mode_t mode ) in mbedtls_cipher_info_from_values() argument 158 def->info->mode == mode ) in mbedtls_cipher_info_from_values() 358 MBEDTLS_MODE_CTR == ctx->cipher_info->mode ) in mbedtls_cipher_setkey() 419 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_set_iv() 501 if( MBEDTLS_MODE_GCM == ctx->cipher_info->mode ) in mbedtls_cipher_update_ad() 512 mbedtls_chachapoly_mode_t mode; in mbedtls_cipher_update_ad() local 514 mode = ( ctx->operation == MBEDTLS_ENCRYPT ) in mbedtls_cipher_update_ad() 1077 if( mode != MBEDTLS_PADDING_NONE ) in mbedtls_cipher_set_padding_mode() 1084 switch( mode ) in mbedtls_cipher_set_padding_mode() 1557 mbedtls_nist_kw_mode_t mode = ( MBEDTLS_MODE_KW == ctx->cipher_info->mode ) ? in mbedtls_cipher_auth_encrypt_ext() local [all …]
|
A D | cipher_wrap.h | 48 int (*ecb_func)( void *ctx, mbedtls_operation_t mode, 53 int (*cbc_func)( void *ctx, mbedtls_operation_t mode, size_t length, 60 int (*cfb_func)( void *ctx, mbedtls_operation_t mode, size_t length, size_t *iv_off, 82 int (*xts_func)( void *ctx, mbedtls_operation_t mode, size_t length,
|
A D | padlock.c | 75 int mode, in mbedtls_padlock_xcryptecb() argument 90 *ctrl = 0x80 | ctx->nr | ( ( ctx->nr + ( mode^1 ) - 10 ) << 9 ); in mbedtls_padlock_xcryptecb() 115 int mode, in mbedtls_padlock_xcryptcbc() argument 137 *ctrl = 0x80 | ctx->nr | ( ( ctx->nr + ( mode ^ 1 ) - 10 ) << 9 ); in mbedtls_padlock_xcryptcbc()
|
A D | aes.c | 969 int mode, in mbedtls_aes_crypt_ecb() argument 1007 int mode, in mbedtls_aes_crypt_cbc() argument 1113 int mode, in mbedtls_aes_crypt_xts() argument 1224 int mode, in mbedtls_aes_crypt_cfb128() argument 1750 int ret = 0, i, j, u, mode; in mbedtls_aes_self_test() local 1784 mode = i & 1; in mbedtls_aes_self_test() 1846 mode = i & 1; in mbedtls_aes_self_test() 1921 mode = i & 1; in mbedtls_aes_self_test() 1984 mode = i & 1; in mbedtls_aes_self_test() 2046 mode = i & 1; in mbedtls_aes_self_test() [all …]
|
A D | psa_crypto_cipher.c | 64 mbedtls_cipher_mode_t mode; in mbedtls_cipher_info_from_psa() local 75 mode = MBEDTLS_MODE_STREAM; in mbedtls_cipher_info_from_psa() 78 mode = MBEDTLS_MODE_CTR; in mbedtls_cipher_info_from_psa() 81 mode = MBEDTLS_MODE_CFB; in mbedtls_cipher_info_from_psa() 84 mode = MBEDTLS_MODE_OFB; in mbedtls_cipher_info_from_psa() 87 mode = MBEDTLS_MODE_ECB; in mbedtls_cipher_info_from_psa() 90 mode = MBEDTLS_MODE_CBC; in mbedtls_cipher_info_from_psa() 93 mode = MBEDTLS_MODE_CBC; in mbedtls_cipher_info_from_psa() 99 mode = MBEDTLS_MODE_CCM; in mbedtls_cipher_info_from_psa() 102 mode = MBEDTLS_MODE_GCM; in mbedtls_cipher_info_from_psa() [all …]
|
A D | ccm.c | 158 if( ctx->mode == MBEDTLS_CCM_STAR_ENCRYPT || ctx->mode == MBEDTLS_CCM_STAR_DECRYPT ) in ccm_calculate_first_block_if_ready() 204 int mode, in mbedtls_ccm_starts() argument 212 ctx->mode = mode; in mbedtls_ccm_starts() 381 if( ctx->mode == MBEDTLS_CCM_ENCRYPT || \ in mbedtls_ccm_update() 382 ctx->mode == MBEDTLS_CCM_STAR_ENCRYPT ) in mbedtls_ccm_update() 401 if( ctx->mode == MBEDTLS_CCM_DECRYPT || \ in mbedtls_ccm_update() 402 ctx->mode == MBEDTLS_CCM_STAR_DECRYPT ) in mbedtls_ccm_update() 488 static int ccm_auth_crypt( mbedtls_ccm_context *ctx, int mode, size_t length, in ccm_auth_crypt() argument 497 if( ( ret = mbedtls_ccm_starts( ctx, mode, iv, iv_len ) ) != 0 ) in ccm_auth_crypt() 559 static int ccm_auth_decrypt( mbedtls_ccm_context *ctx, int mode, size_t length, in ccm_auth_decrypt() argument [all …]
|
A D | camellia.c | 477 int mode, in mbedtls_camellia_crypt_ecb() argument 484 CAMELLIA_VALIDATE_RET( mode == MBEDTLS_CAMELLIA_ENCRYPT || in mbedtls_camellia_crypt_ecb() 485 mode == MBEDTLS_CAMELLIA_DECRYPT ); in mbedtls_camellia_crypt_ecb() 489 ( (void) mode ); in mbedtls_camellia_crypt_ecb() 545 int mode, in mbedtls_camellia_crypt_cbc() argument 554 CAMELLIA_VALIDATE_RET( mode == MBEDTLS_CAMELLIA_ENCRYPT || in mbedtls_camellia_crypt_cbc() 555 mode == MBEDTLS_CAMELLIA_DECRYPT ); in mbedtls_camellia_crypt_cbc() 563 if( mode == MBEDTLS_CAMELLIA_DECRYPT ) in mbedtls_camellia_crypt_cbc() 605 int mode, in mbedtls_camellia_crypt_cfb128() argument 615 CAMELLIA_VALIDATE_RET( mode == MBEDTLS_CAMELLIA_ENCRYPT || in mbedtls_camellia_crypt_cfb128() [all …]
|
A D | chachapoly.c | 101 ctx->mode = MBEDTLS_CHACHAPOLY_ENCRYPT; in mbedtls_chachapoly_init() 114 ctx->mode = MBEDTLS_CHACHAPOLY_ENCRYPT; in mbedtls_chachapoly_free() 131 mbedtls_chachapoly_mode_t mode ) in mbedtls_chachapoly_starts() argument 161 ctx->mode = mode; in mbedtls_chachapoly_starts() 211 if( ctx->mode == MBEDTLS_CHACHAPOLY_ENCRYPT ) in mbedtls_chachapoly_update() 279 mbedtls_chachapoly_mode_t mode, in chachapoly_crypt_and_tag() argument 290 ret = mbedtls_chachapoly_starts( ctx, nonce, mode ); in chachapoly_crypt_and_tag()
|
A D | padlock.h | 88 int mode, 108 int mode,
|
A D | nist_kw.c | 161 mbedtls_nist_kw_mode_t mode, in mbedtls_nist_kw_wrap() argument 177 if( mode == MBEDTLS_KW_MODE_KW ) in mbedtls_nist_kw_wrap() 236 if( mode == MBEDTLS_KW_MODE_KWP in mbedtls_nist_kw_wrap() 365 mbedtls_nist_kw_mode_t mode, in mbedtls_nist_kw_unwrap() argument 380 if( mode == MBEDTLS_KW_MODE_KW ) in mbedtls_nist_kw_unwrap() 410 else if( mode == MBEDTLS_KW_MODE_KWP ) in mbedtls_nist_kw_unwrap()
|
/mbedtls-development/include/mbedtls/ |
A D | aes.h | 259 int mode, 307 int mode, 352 int mode, 401 int mode, 446 int mode,
|
A D | camellia.h | 129 int mode, 163 int mode, 209 int mode,
|
A D | gcm.h | 70 int MBEDTLS_PRIVATE(mode); /*!< The operation to perform: 166 int mode, 235 int mode,
|
A D | nist_kw.h | 133 int mbedtls_nist_kw_wrap( mbedtls_nist_kw_context *ctx, mbedtls_nist_kw_mode_t mode, 160 int mbedtls_nist_kw_unwrap( mbedtls_nist_kw_context *ctx, mbedtls_nist_kw_mode_t mode,
|
A D | aria.h | 200 int mode, 250 int mode,
|
A D | chachapoly.h | 68 … mbedtls_chachapoly_mode_t MBEDTLS_PRIVATE(mode); /**< Cipher mode (encrypt or decrypt). */ 170 mbedtls_chachapoly_mode_t mode );
|
A D | cipher.h | 287 mbedtls_cipher_mode_t MBEDTLS_PRIVATE(mode); 432 const mbedtls_cipher_mode_t mode ); 467 return( info->MBEDTLS_PRIVATE(mode) ); in mbedtls_cipher_info_get_mode() 619 return ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(mode); in mbedtls_cipher_get_cipher_mode() 761 mbedtls_cipher_padding_t mode );
|
/mbedtls-development/programs/psa/ |
A D | key_ladder_demo.c | 528 static psa_status_t run( enum program_mode mode, in run() argument 542 if( mode == MODE_GENERATE ) in run() 555 switch( mode ) in run() 619 enum program_mode mode; in main() local 666 mode = MODE_GENERATE; in main() 668 mode = MODE_SAVE; in main() 670 mode = MODE_UNWRAP; in main() 672 mode = MODE_WRAP; in main() 680 ( mode == MODE_WRAP || mode == MODE_UNWRAP ) ) in main() 686 ( mode == MODE_SAVE || mode == MODE_WRAP || mode == MODE_UNWRAP ) ) in main() [all …]
|
/mbedtls-development/tests/suites/ |
A D | test_suite_nist_kw.function | 149 void nist_kw_plaintext_lengths( int in_len, int out_len, int mode, int res ) 176 TEST_ASSERT( mbedtls_nist_kw_wrap( &ctx, mode, plaintext, in_len, 181 if( mode == MBEDTLS_KW_MODE_KWP ) 200 void nist_kw_ciphertext_lengths( int in_len, int out_len, int mode, int res ) 226 unwrap_ret = mbedtls_nist_kw_unwrap( &ctx, mode, ciphertext, in_len, 245 void mbedtls_nist_kw_wrap( int cipher_id, int mode, data_t *key, data_t *msg, 260 TEST_ASSERT( mbedtls_nist_kw_wrap( &ctx, mode, msg->x, msg->len, 280 void mbedtls_nist_kw_unwrap( int cipher_id, int mode, data_t *key, data_t *msg, 295 TEST_ASSERT( mbedtls_nist_kw_unwrap( &ctx, mode, msg->x, msg->len,
|
A D | test_suite_ccm.function | 8 int mode, 27 TEST_EQUAL( 0, mbedtls_ccm_starts( ctx, mode, iv->x, iv->len ) ); 485 void mbedtls_ccm_skip_ad( int cipher_id, int mode, 523 void mbedtls_ccm_skip_update( int cipher_id, int mode, 551 void mbedtls_ccm_overflow_ad( int cipher_id, int mode, 572 void mbedtls_ccm_unexpected_ad( int cipher_id, int mode, 592 void mbedtls_ccm_unexpected_text( int cipher_id, int mode, 619 void mbedtls_ccm_incomplete_ad( int cipher_id, int mode, 696 void mbedtls_ccm_overflow_update( int cipher_id, int mode, 724 void mbedtls_ccm_incomplete_update( int cipher_id, int mode, [all …]
|
A D | test_suite_gcm.function | 8 int mode, 28 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode, 66 int mode, 80 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode, 109 int mode, 119 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode, iv->x, iv->len ) ); 140 int mode, 147 TEST_EQUAL( 0, mbedtls_gcm_starts( ctx, mode, 435 void gcm_update_output_buffer_too_small( int cipher_id, int mode, 446 TEST_EQUAL( 0, mbedtls_gcm_starts( &ctx, mode, iv->x, iv->len ) );
|
/mbedtls-development/programs/pkey/ |
A D | key_app_writer.c | 110 int mode; /* the mode to run the application in */ member 240 opt.mode = DFL_MODE; in main() 256 opt.mode = MODE_PRIVATE; in main() 258 opt.mode = MODE_PUBLIC; in main() 291 if( opt.mode == MODE_NONE && opt.output_mode != OUTPUT_MODE_NONE ) in main() 297 if( opt.mode == MODE_PUBLIC && opt.output_mode == OUTPUT_MODE_PRIVATE ) in main() 303 if( opt.mode == MODE_PRIVATE ) in main() 371 else if( opt.mode == MODE_PUBLIC ) in main()
|
A D | key_app.c | 82 int mode; /* the mode to run the application in */ member 123 opt.mode = DFL_MODE; in main() 138 opt.mode = MODE_PRIVATE; in main() 140 opt.mode = MODE_PUBLIC; in main() 154 if( opt.mode == MODE_PRIVATE ) in main() 254 else if( opt.mode == MODE_PUBLIC ) in main()
|
/mbedtls-development/programs/x509/ |
A D | cert_app.c | 103 int mode; /* the mode to run the application in */ member 185 opt.mode = DFL_MODE; in main() 211 opt.mode = MODE_FILE; in main() 213 opt.mode = MODE_SSL; in main() 287 if( opt.mode == MODE_FILE ) in main() 361 else if( opt.mode == MODE_SSL ) in main()
|
/mbedtls-development/programs/aes/ |
A D | crypt_and_hash.c | 85 int mode; in main() local 148 mode = atoi( argv[1] ); in main() 150 if( mode != MODE_ENCRYPT && mode != MODE_DECRYPT ) in main() 269 if( mode == MODE_ENCRYPT ) in main() 387 if( mode == MODE_DECRYPT ) in main()
|