Home
last modified time | relevance | path

Searched refs:cipher_ctx (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/include/zephyr/crypto/
Dcipher.h54 struct cipher_ctx;
57 typedef int (*block_op_t)(struct cipher_ctx *ctx, struct cipher_pkt *pkt);
62 typedef int (*cbc_op_t)(struct cipher_ctx *ctx, struct cipher_pkt *pkt,
65 typedef int (*ctr_op_t)(struct cipher_ctx *ctx, struct cipher_pkt *pkt,
68 typedef int (*ccm_op_t)(struct cipher_ctx *ctx, struct cipher_aead_pkt *pkt,
71 typedef int (*gcm_op_t)(struct cipher_ctx *ctx, struct cipher_aead_pkt *pkt,
110 struct cipher_ctx { struct
208 struct cipher_ctx *ctx;
Dcrypto.h72 int (*cipher_begin_session)(const struct device *dev, struct cipher_ctx *ctx,
77 int (*cipher_free_session)(const struct device *dev, struct cipher_ctx *ctx);
163 struct cipher_ctx *ctx, in cipher_begin_session()
205 struct cipher_ctx *ctx) in cipher_free_session()
252 static inline int cipher_block_op(struct cipher_ctx *ctx, in cipher_block_op()
273 static inline int cipher_cbc_op(struct cipher_ctx *ctx, in cipher_cbc_op()
300 static inline int cipher_ctr_op(struct cipher_ctx *ctx, in cipher_ctr_op()
322 static inline int cipher_ccm_op(struct cipher_ctx *ctx, in cipher_ccm_op()
344 static inline int cipher_gcm_op(struct cipher_ctx *ctx, in cipher_gcm_op()
/Zephyr-latest/drivers/crypto/
Dcrypto_tc_shim.c28 static int do_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *op, in do_cbc_encrypt()
48 static int do_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *op, in do_cbc_decrypt()
76 static int do_ctr_op(struct cipher_ctx *ctx, struct cipher_pkt *op, in do_ctr_op()
101 static int do_ccm_encrypt_mac(struct cipher_ctx *ctx, in do_ccm_encrypt_mac()
141 static int do_ccm_decrypt_auth(struct cipher_ctx *ctx, in do_ccm_decrypt_auth()
193 static int tc_session_setup(const struct device *dev, struct cipher_ctx *ctx, in tc_session_setup()
294 static int tc_session_free(const struct device *dev, struct cipher_ctx *sessn) in tc_session_free()
Dcrypto_nrf_ecb.c32 static int do_ecb_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in do_ecb_encrypt()
85 struct cipher_ctx *ctx, in nrf_ecb_session_setup()
125 struct cipher_ctx *sessn) in nrf_ecb_session_free()
Dcrypto_stm32.c114 static int do_aes(struct cipher_ctx *ctx, hal_cryp_aes_op_func_t fn, uint8_t *in_buf, int in_len, in do_aes()
166 static int crypto_stm32_ecb_encrypt(struct cipher_ctx *ctx, in crypto_stm32_ecb_encrypt()
187 static int crypto_stm32_ecb_decrypt(struct cipher_ctx *ctx, in crypto_stm32_ecb_decrypt()
208 static int crypto_stm32_cbc_encrypt(struct cipher_ctx *ctx, in crypto_stm32_cbc_encrypt()
235 static int crypto_stm32_cbc_decrypt(struct cipher_ctx *ctx, in crypto_stm32_cbc_decrypt()
260 static int crypto_stm32_ctr_encrypt(struct cipher_ctx *ctx, in crypto_stm32_ctr_encrypt()
283 static int crypto_stm32_ctr_decrypt(struct cipher_ctx *ctx, in crypto_stm32_ctr_decrypt()
328 struct cipher_ctx *ctx, in crypto_stm32_session_setup()
476 struct cipher_ctx *ctx) in crypto_stm32_session_free()
Dcrypto_mtls_shim.c72 int mtls_ecb_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in mtls_ecb_encrypt()
97 int mtls_ecb_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in mtls_ecb_decrypt()
122 int mtls_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in mtls_cbc_encrypt()
153 int mtls_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in mtls_cbc_decrypt()
180 static int mtls_ccm_encrypt_auth(struct cipher_ctx *ctx, in mtls_ccm_encrypt_auth()
209 static int mtls_ccm_decrypt_auth(struct cipher_ctx *ctx, in mtls_ccm_decrypt_auth()
241 static int mtls_gcm_encrypt_auth(struct cipher_ctx *ctx, in mtls_gcm_encrypt_auth()
269 static int mtls_gcm_decrypt_auth(struct cipher_ctx *ctx, in mtls_gcm_decrypt_auth()
315 struct cipher_ctx *ctx, in mtls_session_setup()
446 static int mtls_session_free(const struct device *dev, struct cipher_ctx *ctx) in mtls_session_free()
Dcrypto_mcux_dcp.c81 static int crypto_dcp_aes_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_dcp_aes_cbc_encrypt()
116 static int crypto_dcp_aes_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_dcp_aes_cbc_decrypt()
147 static int crypto_dcp_aes_ecb_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in crypto_dcp_aes_ecb_encrypt()
167 static int crypto_dcp_aes_ecb_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in crypto_dcp_aes_ecb_decrypt()
187 static int crypto_dcp_cipher_begin_session(const struct device *dev, struct cipher_ctx *ctx, in crypto_dcp_cipher_begin_session()
234 static int crypto_dcp_cipher_free_session(const struct device *dev, struct cipher_ctx *ctx) in crypto_dcp_cipher_free_session()
Dcrypto_si32.c188 static int crypto_si32_aes_calc_decryption_key(const struct cipher_ctx *ctx, in crypto_si32_aes_calc_decryption_key()
248 static int crypto_si32_aes_set_key_size(const struct cipher_ctx *ctx) in crypto_si32_aes_set_key_size()
563 static int crypto_si32_aes_ecb_op(struct cipher_ctx *ctx, struct cipher_pkt *pkt, in crypto_si32_aes_ecb_op()
697 static int crypto_si32_aes_cbc_op(struct cipher_ctx *ctx, struct cipher_pkt *pkt, in crypto_si32_aes_cbc_op()
873 static int crypto_si32_aes_ctr_op(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t iv[12]) in crypto_si32_aes_ctr_op()
1005 static int crypto_si32_aes_ecb_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in crypto_si32_aes_ecb_encrypt()
1016 static int crypto_si32_aes_ecb_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in crypto_si32_aes_ecb_decrypt()
1027 static int crypto_si32_aes_cbc_encrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_si32_aes_cbc_encrypt()
1038 static int crypto_si32_aes_cbc_decrypt(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_si32_aes_cbc_decrypt()
1049 static int crypto_si32_begin_session(const struct device *dev, struct cipher_ctx *ctx, in crypto_si32_begin_session()
[all …]
Dcrypto_ataes132a.c669 static int do_ccm_encrypt_mac(struct cipher_ctx *ctx, in do_ccm_encrypt_mac()
718 static int do_ccm_decrypt_auth(struct cipher_ctx *ctx, in do_ccm_decrypt_auth()
764 static int do_block(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in do_block()
785 struct cipher_ctx *session) in ataes132a_session_free()
797 struct cipher_ctx *ctx, in ataes132a_session_setup()
Dcrypto_smartbond.c498 static int crypto_smartbond_cipher_ecb_handler(struct cipher_ctx *ctx, struct cipher_pkt *pkt) in crypto_smartbond_cipher_ecb_handler()
560 crypto_smartbond_cipher_cbc_handler(struct cipher_ctx *ctx, struct cipher_pkt *pkt, uint8_t *iv) in crypto_smartbond_cipher_cbc_handler()
646 static int crypto_smartbond_cipher_ctr_handler(struct cipher_ctx *ctx, in crypto_smartbond_cipher_ctr_handler()
785 crypto_smartbond_cipher_begin_session(const struct device *dev, struct cipher_ctx *ctx, in crypto_smartbond_cipher_begin_session()
848 static int crypto_smartbond_cipher_free_session(const struct device *dev, struct cipher_ctx *ctx) in crypto_smartbond_cipher_free_session()
/Zephyr-latest/include/zephyr/net/
Dieee802154.h195 struct cipher_ctx enc;
196 struct cipher_ctx dec;
/Zephyr-latest/subsys/mgmt/osdp/src/
Dosdp_common.c54 struct cipher_ctx ctx = { in osdp_encrypt()
101 struct cipher_ctx ctx = { in osdp_decrypt()
/Zephyr-latest/samples/drivers/crypto/src/
Dmain.c131 struct cipher_ctx ini = { in ecb_mode()
213 struct cipher_ctx ini = { in cbc_mode()
302 struct cipher_ctx ini = { in ctr_mode()
400 struct cipher_ctx ini = { in ccm_mode()
512 struct cipher_ctx ini = { in gcm_mode()
/Zephyr-latest/subsys/net/l2/ieee802154/
Dieee802154_security.c213 (void)memset(&sec_ctx->enc, 0, sizeof(struct cipher_ctx)); in ieee802154_security_init()
214 (void)memset(&sec_ctx->dec, 0, sizeof(struct cipher_ctx)); in ieee802154_security_init()
/Zephyr-latest/drivers/ieee802154/
Dieee802154_cc2520.c1170 static int insert_crypto_parameters(struct cipher_ctx *ctx, in insert_crypto_parameters()
1261 static int cc2520_crypto_ccm(struct cipher_ctx *ctx, in cc2520_crypto_ccm()
1306 static int cc2520_crypto_uccm(struct cipher_ctx *ctx, in cc2520_crypto_uccm()
1354 struct cipher_ctx *ctx, in cc2520_crypto_begin_session()
1383 struct cipher_ctx *ctx) in cc2520_crypto_free_session()
/Zephyr-latest/doc/releases/
Drelease-notes-2.2.rst1082 * :github:`20561` - Crypto API: Separate IV from ciphertext based on struct cipher_ctx::flags