Searched refs:keylen (Results 1 – 13 of 13) sorted by relevance
/Zephyr-latest/drivers/crypto/ |
D | crypto_mtls_shim.c | 347 if (ctx->keylen != 16U) { in mtls_session_setup() 348 LOG_ERR("%u key size is not supported", ctx->keylen); in mtls_session_setup() 365 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup() 369 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup() 384 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup() 388 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup() 402 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup() 420 ctx->key.bit_stream, ctx->keylen * 8U); in mtls_session_setup()
|
D | crypto_si32.c | 194 ret = crypto_si32_aes_set_key(ctx->key.bit_stream, ctx->keylen); in crypto_si32_aes_calc_decryption_key() 225 switch (ctx->keylen) { in crypto_si32_aes_calc_decryption_key() 241 LOG_ERR("Invalid key len: %" PRIu16, ctx->keylen); in crypto_si32_aes_calc_decryption_key() 250 switch (ctx->keylen) { in crypto_si32_aes_set_key_size() 261 LOG_ERR("Invalid key len: %" PRIu16, ctx->keylen); in crypto_si32_aes_set_key_size() 625 ret = crypto_si32_aes_set_key(ctx->key.bit_stream, ctx->keylen); in crypto_si32_aes_ecb_op() 634 ret = crypto_si32_aes_set_key(session->decryption_key, ctx->keylen); in crypto_si32_aes_ecb_op() 783 ret = crypto_si32_aes_set_key(ctx->key.bit_stream, ctx->keylen); in crypto_si32_aes_cbc_op() 792 ret = crypto_si32_aes_set_key(session->decryption_key, ctx->keylen); in crypto_si32_aes_cbc_op() 939 ret = crypto_si32_aes_set_key(ctx->key.bit_stream, ctx->keylen); in crypto_si32_aes_ctr_op() [all …]
|
D | crypto_stm32.c | 365 if ((ctx->keylen != 16U) && in crypto_stm32_session_setup() 367 (ctx->keylen != 24U) && in crypto_stm32_session_setup() 369 (ctx->keylen != 32U)) { in crypto_stm32_session_setup() 370 LOG_ERR("%u key size is not supported", ctx->keylen); in crypto_stm32_session_setup() 394 switch (ctx->keylen) { in crypto_stm32_session_setup() 457 ctx->key.bit_stream, ctx->keylen); in crypto_stm32_session_setup()
|
D | crypto_tc_shim.c | 81 int ivlen = ctx->keylen - (ctx->mode_params.ctr_info.ctr_len >> 3); in do_ctr_op() 216 if (ctx->keylen != TC_AES_KEY_SIZE) { in tc_session_setup()
|
D | crypto_nrf_ecb.c | 93 (ctx->keylen != ECB_AES_KEY_SIZE) || in nrf_ecb_session_setup()
|
D | crypto_smartbond.c | 651 uint32_t iv_len = ctx->keylen - (ctx->mode_params.ctr_info.ctr_len >> 3); in crypto_smartbond_cipher_ctr_handler() 813 ret = crypto_smartbond_cipher_key_load((uint8_t *)ctx->key.bit_stream, ctx->keylen); in crypto_smartbond_cipher_begin_session()
|
D | crypto_mcux_dcp.c | 225 status = DCP_AES_SetKey(cfg->base, &session->handle, ctx->key.bit_stream, ctx->keylen); in crypto_dcp_cipher_begin_session()
|
D | crypto_ataes132a.c | 840 if (ctx->keylen != ATAES132A_AES_KEY_SIZE) { in ataes132a_session_setup()
|
/Zephyr-latest/subsys/mgmt/osdp/src/ |
D | osdp_common.c | 55 .keylen = 16, in osdp_encrypt() 102 .keylen = 16, in osdp_decrypt()
|
/Zephyr-latest/samples/drivers/crypto/src/ |
D | main.c | 132 .keylen = sizeof(ecb_key), in ecb_mode() 214 .keylen = sizeof(key), in cbc_mode() 303 .keylen = sizeof(key), in ctr_mode() 401 .keylen = sizeof(ccm_key), in ccm_mode() 513 .keylen = sizeof(gcm_key), in gcm_mode()
|
/Zephyr-latest/include/zephyr/crypto/ |
D | cipher.h | 161 uint16_t keylen; member
|
/Zephyr-latest/subsys/net/l2/ieee802154/ |
D | ieee802154_security.c | 66 sec_ctx->enc.keylen = sec_ctx->key_len; in ieee802154_security_setup_session() 69 sec_ctx->dec.keylen = sec_ctx->key_len; in ieee802154_security_setup_session()
|
/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_cc2520.c | 1185 if (!ctx->key.bit_stream || !ctx->keylen) { in insert_crypto_parameters() 1242 sys_memcpy_swap(data, ctx->key.bit_stream, ctx->keylen); in insert_crypto_parameters()
|