Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/drivers/crypto/
Dcrypto_mtls_shim.c347 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()
Dcrypto_si32.c194 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 …]
Dcrypto_stm32.c365 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()
Dcrypto_tc_shim.c81 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()
Dcrypto_nrf_ecb.c93 (ctx->keylen != ECB_AES_KEY_SIZE) || in nrf_ecb_session_setup()
Dcrypto_smartbond.c651 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()
Dcrypto_mcux_dcp.c225 status = DCP_AES_SetKey(cfg->base, &session->handle, ctx->key.bit_stream, ctx->keylen); in crypto_dcp_cipher_begin_session()
Dcrypto_ataes132a.c840 if (ctx->keylen != ATAES132A_AES_KEY_SIZE) { in ataes132a_session_setup()
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.c55 .keylen = 16, in osdp_encrypt()
102 .keylen = 16, in osdp_decrypt()
/Zephyr-latest/samples/drivers/crypto/src/
Dmain.c132 .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/
Dcipher.h161 uint16_t keylen; member
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_security.c66 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/
Dieee802154_cc2520.c1185 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()