/mbedtls-latest/library/ |
D | cipher.c | 214 if (ctx->cipher_ctx != NULL) { in mbedtls_cipher_free() 216 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_free() 238 if (ctx->cipher_ctx) { in mbedtls_cipher_free() 239 mbedtls_cipher_get_base(ctx->cipher_info)->ctx_free_func(ctx->cipher_ctx); in mbedtls_cipher_free() 255 ctx->cipher_ctx = mbedtls_cipher_get_base(cipher_info)->ctx_alloc_func(); in mbedtls_cipher_setup() 256 if (ctx->cipher_ctx == NULL) { in mbedtls_cipher_setup() 295 ctx->cipher_ctx = cipher_psa; in mbedtls_cipher_setup_psa() 323 (mbedtls_cipher_context_psa *) ctx->cipher_ctx; in mbedtls_cipher_setkey() 394 return mbedtls_cipher_get_base(ctx->cipher_info)->setkey_enc_func(ctx->cipher_ctx, key, in mbedtls_cipher_setkey() 399 return mbedtls_cipher_get_base(ctx->cipher_info)->setkey_dec_func(ctx->cipher_ctx, key, in mbedtls_cipher_setkey() [all …]
|
D | pkcs12.c | 161 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs12_pbe_ext() local 197 mbedtls_cipher_init(&cipher_ctx); in mbedtls_pkcs12_pbe_ext() 199 if ((ret = mbedtls_cipher_setup(&cipher_ctx, cipher_info)) != 0) { in mbedtls_pkcs12_pbe_ext() 203 if ((ret = mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs12_pbe_ext() 222 if ((ret = mbedtls_cipher_set_padding_mode(&cipher_ctx, padding)) != 0) { in mbedtls_pkcs12_pbe_ext() 228 ret = mbedtls_cipher_crypt(&cipher_ctx, iv, iv_len, data, len, output, &finish_olen); in mbedtls_pkcs12_pbe_ext() 238 mbedtls_cipher_free(&cipher_ctx); in mbedtls_pkcs12_pbe_ext()
|
D | pkcs5.c | 143 mbedtls_cipher_context_t cipher_ctx; in mbedtls_pkcs5_pbes2_ext() local 215 mbedtls_cipher_init(&cipher_ctx); in mbedtls_pkcs5_pbes2_ext() 225 if ((ret = mbedtls_cipher_setup(&cipher_ctx, cipher_info)) != 0) { in mbedtls_pkcs5_pbes2_ext() 229 if ((ret = mbedtls_cipher_setkey(&cipher_ctx, key, 8 * keylen, in mbedtls_pkcs5_pbes2_ext() 251 if ((ret = mbedtls_cipher_set_padding_mode(&cipher_ctx, padding)) != 0) { in mbedtls_pkcs5_pbes2_ext() 256 if ((ret = mbedtls_cipher_crypt(&cipher_ctx, iv, enc_scheme_params.len, in mbedtls_pkcs5_pbes2_ext() 262 mbedtls_cipher_free(&cipher_ctx); in mbedtls_pkcs5_pbes2_ext()
|
D | nist_kw.c | 84 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_nist_kw_setkey() 86 if ((ret = mbedtls_cipher_setup(&ctx->cipher_ctx, cipher_info)) != 0) { in mbedtls_nist_kw_setkey() 90 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_nist_kw_setkey() 109 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_nist_kw_free() 200 ret = mbedtls_cipher_update(&ctx->cipher_ctx, in mbedtls_nist_kw_wrap() 222 ret = mbedtls_cipher_update(&ctx->cipher_ctx, in mbedtls_nist_kw_wrap() 289 ret = mbedtls_cipher_update(&ctx->cipher_ctx, in unwrap() 382 ret = mbedtls_cipher_update(&ctx->cipher_ctx, in mbedtls_nist_kw_unwrap()
|
D | ccm.c | 82 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_ccm_setkey() 84 if ((ret = mbedtls_cipher_setup(&ctx->cipher_ctx, cipher_info)) != 0) { in mbedtls_ccm_setkey() 88 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_ccm_setkey() 108 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_ccm_free() 135 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->ctr, 16, tmp_buf, &olen); in mbedtls_ccm_crypt() 212 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen); in ccm_calculate_first_block_if_ready() 340 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen); in mbedtls_ccm_update_ad() 409 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen); in mbedtls_ccm_update() 444 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ctx->y, &olen); in mbedtls_ccm_update()
|
D | gcm.c | 109 ret = mbedtls_cipher_update(&ctx->cipher_ctx, h, 16, h, &olen); in gcm_gen_table() 196 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_gcm_setkey() 198 if ((ret = mbedtls_cipher_setup(&ctx->cipher_ctx, cipher_info)) != 0) { in mbedtls_gcm_setkey() 202 if ((ret = mbedtls_cipher_setkey(&ctx->cipher_ctx, key, keybits, in mbedtls_gcm_setkey() 441 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ctx->base_ectr, &olen); in mbedtls_gcm_starts() 546 ret = mbedtls_cipher_update(&ctx->cipher_ctx, ctx->y, 16, ectr, &olen); in gcm_mask() 778 mbedtls_cipher_free(&ctx->cipher_ctx); in mbedtls_gcm_free()
|
/mbedtls-latest/programs/aes/ |
D | crypt_and_hash.c | 77 mbedtls_cipher_context_t cipher_ctx; in main() local 91 mbedtls_cipher_init(&cipher_ctx); in main() 159 if ((ret = mbedtls_cipher_setup(&cipher_ctx, cipher_info)) != 0) { in main() 234 cipher_block_size = mbedtls_cipher_get_block_size(&cipher_ctx); in main() 306 if (mbedtls_cipher_setkey(&cipher_ctx, in main() 313 if (mbedtls_cipher_set_iv(&cipher_ctx, IV, 16) != 0) { in main() 317 if (mbedtls_cipher_reset(&cipher_ctx) != 0) { in main() 339 if (mbedtls_cipher_update(&cipher_ctx, buffer, ilen, output, &olen) != 0) { in main() 355 if (mbedtls_cipher_finish(&cipher_ctx, output, &olen) != 0) { in main() 458 if (mbedtls_cipher_setkey(&cipher_ctx, in main() [all …]
|
/mbedtls-latest/include/mbedtls/ |
D | nist_kw.h | 52 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
|
D | gcm.h | 62 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
|
D | ccm.h | 90 mbedtls_cipher_context_t MBEDTLS_PRIVATE(cipher_ctx); /*!< The cipher context used. */
|
D | cipher.h | 350 void *MBEDTLS_PRIVATE(cipher_ctx);
|