Lines Matching refs:enc
58 sec_ctx->enc.mode_params.ccm_info.tag_len = authtag_len; in ieee802154_security_setup_session()
65 sec_ctx->enc.key.bit_stream = sec_ctx->key; in ieee802154_security_setup_session()
66 sec_ctx->enc.keylen = sec_ctx->key_len; in ieee802154_security_setup_session()
71 ret = cipher_begin_session(sec_ctx->enc.device, &sec_ctx->enc, CRYPTO_CIPHER_ALGO_AES, in ieee802154_security_setup_session()
83 cipher_free_session(sec_ctx->enc.device, &sec_ctx->enc); in ieee802154_security_setup_session()
97 cipher_free_session(sec_ctx->enc.device, &sec_ctx->enc); in ieee802154_security_teardown_session()
197 ret = cipher_ccm_op(&sec_ctx->enc, &apkt, nonce); in ieee802154_encrypt_auth()
213 (void)memset(&sec_ctx->enc, 0, sizeof(struct cipher_ctx)); in ieee802154_security_init()
221 sec_ctx->enc.flags = crypto_query_hwcaps(dev); in ieee802154_security_init()
224 sec_ctx->enc.mode_params.ccm_info.nonce_len = 13U; in ieee802154_security_init()
227 sec_ctx->enc.device = dev; in ieee802154_security_init()