/Zephyr-latest/drivers/crypto/ |
D | crypto_npcx_sha.c | 64 enum hash_algo algo; member 90 switch (npcx_session->algo) { in npcx_sha_compute() 101 LOG_ERR("Unexpected algo: %d", npcx_session->algo); in npcx_sha_compute() 136 enum hash_algo algo) in npcx_hash_session_setup() argument 146 if ((algo != CRYPTO_HASH_ALGO_SHA256) && (algo != CRYPTO_HASH_ALGO_SHA384) && in npcx_hash_session_setup() 147 (algo != CRYPTO_HASH_ALGO_SHA512)) { in npcx_hash_session_setup() 148 LOG_ERR("Unsupported algo: %d", algo); in npcx_hash_session_setup() 158 npcx_sessions[ctx_idx].algo = algo; in npcx_hash_session_setup()
|
D | crypto_mchp_xec_symcr.c | 109 enum hash_algo algo; member 147 enum hash_algo algo; member 158 static enum mchp_rom_hash_alg_id lookup_hash_alg(enum hash_algo algo) in lookup_hash_alg() argument 161 if (hash_alg_tbl[n].algo == algo) { in lookup_hash_alg() 172 static size_t hash_block_size(enum hash_algo algo) in hash_block_size() argument 174 switch (algo) { in hash_block_size() 396 enum hash_algo algo) in xec_symcr_hash_session_begin() argument 411 rom_algo = lookup_hash_alg(algo); in xec_symcr_hash_session_begin() 413 LOG_ERR("Unsupported algo %d", algo); in xec_symcr_hash_session_begin() 425 hs->algo = algo; in xec_symcr_hash_session_begin() [all …]
|
D | crypto_mtls_shim.c | 52 enum hash_algo algo; member 70 (((struct mtls_shim_session *)c->drv_sessn_state)->algo) 316 enum cipher_algo algo, enum cipher_mode mode, in mtls_session_setup() argument 332 if (algo != CRYPTO_CIPHER_ALGO_AES) { in mtls_session_setup() 538 enum hash_algo algo) in mtls_hash_session_setup() argument 547 if ((algo != CRYPTO_HASH_ALGO_SHA224) && in mtls_hash_session_setup() 548 (algo != CRYPTO_HASH_ALGO_SHA256) && in mtls_hash_session_setup() 549 (algo != CRYPTO_HASH_ALGO_SHA384) && in mtls_hash_session_setup() 550 (algo != CRYPTO_HASH_ALGO_SHA512)) { in mtls_hash_session_setup() 551 LOG_ERR("Unsupported algo: %d", algo); in mtls_hash_session_setup() [all …]
|
D | crypto_intel_sha.c | 208 self->dfsha->shactl.part.algo = session->algo; in intel_sha_compute() 254 switch (self->dfsha->shactl.part.algo) { in intel_sha_compute() 285 enum hash_algo algo) in intel_sha_device_set_hash_type() argument 304 sha_sessions[ctx_idx].algo = algo; in intel_sha_device_set_hash_type() 319 session->algo = 0; in intel_sha_device_free()
|
D | crypto_nrf_ecb.c | 86 enum cipher_algo algo, enum cipher_mode mode, in nrf_ecb_session_setup() argument 91 if ((algo != CRYPTO_CIPHER_ALGO_AES) || in nrf_ecb_session_setup()
|
D | crypto_mcux_dcp.c | 188 enum cipher_algo algo, enum cipher_mode mode, in crypto_dcp_cipher_begin_session() argument 195 if (algo != CRYPTO_CIPHER_ALGO_AES || in crypto_dcp_cipher_begin_session() 270 enum hash_algo algo) in crypto_dcp_hash_begin_session() argument 276 if (algo != CRYPTO_HASH_ALGO_SHA256) { in crypto_dcp_hash_begin_session()
|
D | crypto_it8xxx2_sha.c | 187 struct hash_ctx *ctx, enum hash_algo algo) in it8xxx2_hash_begin_session() argument 189 if (algo != CRYPTO_HASH_ALGO_SHA256) { in it8xxx2_hash_begin_session()
|
D | crypto_intel_sha_priv.h | 79 uint32_t algo; member
|
D | crypto_smartbond.c | 360 static int crypto_smartbond_hash_set_algo(enum hash_algo algo) in crypto_smartbond_hash_set_algo() argument 368 switch (algo) { in crypto_smartbond_hash_set_algo() 786 enum cipher_algo algo, enum cipher_mode mode, enum cipher_op op_type) in crypto_smartbond_cipher_begin_session() argument 795 if (algo != CRYPTO_CIPHER_ALGO_AES) { in crypto_smartbond_cipher_begin_session() 870 struct hash_ctx *ctx, enum hash_algo algo) in crypto_smartbond_hash_begin_session() argument 890 ret = crypto_smartbond_hash_set_algo(algo); in crypto_smartbond_hash_begin_session()
|
D | crypto_it8xxx2_sha_v2.c | 307 struct hash_ctx *ctx, enum hash_algo algo) in it8xxx2_hash_begin_session() argument 309 if (algo != CRYPTO_HASH_ALGO_SHA256) { in it8xxx2_hash_begin_session()
|
D | crypto_intel_sha_registers.h | 124 uint32_t algo : 3; member
|
D | crypto_tc_shim.c | 194 enum cipher_algo algo, enum cipher_mode mode, in tc_session_setup() argument 203 if (algo != CRYPTO_CIPHER_ALGO_AES) { in tc_session_setup()
|
D | crypto_stm32.c | 329 enum cipher_algo algo, in crypto_stm32_session_setup() argument 341 if (algo != CRYPTO_CIPHER_ALGO_AES) { in crypto_stm32_session_setup()
|
D | crypto_ataes132a.c | 798 enum cipher_algo algo, enum cipher_mode mode, in ataes132a_session_setup() argument 829 if (algo != CRYPTO_CIPHER_ALGO_AES) { in ataes132a_session_setup()
|
D | crypto_si32.c | 1050 const enum cipher_algo algo, const enum cipher_mode mode, in crypto_si32_begin_session() argument 1056 if (algo != CRYPTO_CIPHER_ALGO_AES) { in crypto_si32_begin_session()
|
/Zephyr-latest/samples/boards/microchip/mec172xevb_assy6906/rom_api/src/ |
D | main.c | 276 static int pr_hash_algo_name(enum hash_algo algo); 277 static size_t hash_digest_size(enum hash_algo algo); 278 static size_t hash_block_size(enum hash_algo algo); 333 static size_t hash_digest_size(enum hash_algo algo) in hash_digest_size() argument 337 switch (algo) { in hash_digest_size() 357 static size_t hash_block_size(enum hash_algo algo) in hash_block_size() argument 361 switch (algo) { in hash_block_size() 377 static int pr_hash_algo_name(enum hash_algo algo) in pr_hash_algo_name() argument 381 switch (algo) { in pr_hash_algo_name()
|
/Zephyr-latest/include/zephyr/crypto/ |
D | crypto.h | 73 enum cipher_algo algo, enum cipher_mode mode, 85 enum hash_algo algo); 164 enum cipher_algo algo, in cipher_begin_session() argument 190 return api->cipher_begin_session(dev, ctx, algo, mode, optype); in cipher_begin_session() 386 enum hash_algo algo) in hash_begin_session() argument 405 return api->hash_begin_session(dev, ctx, algo); in hash_begin_session()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc2520.c | 1355 enum cipher_algo algo, in cc2520_crypto_begin_session() argument 1359 if (algo != CRYPTO_CIPHER_ALGO_AES || mode != CRYPTO_CIPHER_MODE_CCM) { in cc2520_crypto_begin_session() 1360 LOG_ERR("Wrong algo (%u) or mode (%u)", algo, mode); in cc2520_crypto_begin_session()
|