Searched refs:kctx (Results 1 – 7 of 7) sorted by relevance
/linux/net/sunrpc/auth_gss/ |
A D | gss_krb5_wrap.c | 216 if (kctx->gk5e->keyed_cksum) in gss_wrap_kerberos_v1() 217 cksumkey = kctx->cksum; in gss_wrap_kerberos_v1() 235 if ((krb5_make_seq_num(kctx, kctx->seq, kctx->initiate ? 0 : 0xff, in gss_wrap_kerberos_v1() 306 if (kctx->gk5e->keyed_cksum) in gss_unwrap_kerberos_v1() 307 cksumkey = kctx->cksum; in gss_unwrap_kerberos_v1() 323 if (now > kctx->endtime) in gss_unwrap_kerberos_v1() 451 err = (*kctx->gk5e->encrypt_v2)(kctx, offset, buf, pages); in gss_wrap_kerberos_v2() 508 err = (*kctx->gk5e->decrypt_v2)(kctx, offset, len, buf, in gss_unwrap_kerberos_v2() 534 if (now > kctx->endtime) in gss_unwrap_kerberos_v2() 566 switch (kctx->enctype) { in gss_wrap_kerberos() [all …]
|
A D | gss_krb5_crypto.c | 182 kctx->gk5e->keylength); in make_checksum() 204 switch (kctx->gk5e->ctype) { in make_checksum() 206 err = kctx->gk5e->encrypt(kctx->seq, NULL, checksumdata, in make_checksum() 251 __func__, kctx->gk5e->name); in make_checksum_v2() 256 __func__, kctx->gk5e->name); in make_checksum_v2() 299 switch (kctx->gk5e->ctype) { in make_checksum_v2() 614 if (kctx->initiate) { in gss_krb5_aes_encrypt() 615 cipher = kctx->initiator_enc; in gss_krb5_aes_encrypt() 620 cipher = kctx->acceptor_enc; in gss_krb5_aes_encrypt() 734 if (kctx->initiate) { in gss_krb5_aes_decrypt() [all …]
|
A D | gss_krb5_seqnum.c | 43 krb5_make_seq_num(struct krb5_ctx *kctx, in krb5_make_seq_num() argument 72 krb5_get_seq_num(struct krb5_ctx *kctx, in krb5_get_seq_num() argument 79 struct crypto_sync_skcipher *key = kctx->seq; in krb5_get_seq_num()
|
A D | gss_krb5_mech.c | 575 struct krb5_ctx *kctx = internal_ctx; in gss_delete_sec_context_kerberos() local 577 crypto_free_sync_skcipher(kctx->seq); in gss_delete_sec_context_kerberos() 578 crypto_free_sync_skcipher(kctx->enc); in gss_delete_sec_context_kerberos() 579 crypto_free_sync_skcipher(kctx->acceptor_enc); in gss_delete_sec_context_kerberos() 580 crypto_free_sync_skcipher(kctx->initiator_enc); in gss_delete_sec_context_kerberos() 581 crypto_free_sync_skcipher(kctx->acceptor_enc_aux); in gss_delete_sec_context_kerberos() 582 crypto_free_sync_skcipher(kctx->initiator_enc_aux); in gss_delete_sec_context_kerberos() 583 kfree(kctx->mech_used.data); in gss_delete_sec_context_kerberos() 584 kfree(kctx); in gss_delete_sec_context_kerberos()
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/ |
A D | chtls_hw.c | 238 static void chtls_rxkey_ivauth(struct _key_ctx *kctx) in chtls_rxkey_ivauth() argument 240 kctx->iv_to_auth = cpu_to_be64(KEYCTX_TX_WR_IV_V(6ULL) | in chtls_rxkey_ivauth() 251 struct _key_ctx *kctx, in chtls_key_info() argument 317 kctx->ctx_hdr = FILL_KEY_CRX_HDR(ck_size, in chtls_key_info() 320 chtls_rxkey_ivauth(kctx); in chtls_key_info() 322 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chtls_key_info() 327 memcpy(kctx->salt, salt, salt_size); in chtls_key_info() 328 memcpy(kctx->key, key_p, keylen); in chtls_key_info() 329 memcpy(kctx->key + keylen, ghash_h, AEAD_H_SIZE); in chtls_key_info() 362 struct _key_ctx *kctx; in chtls_setkey() local [all …]
|
/linux/include/linux/sunrpc/ |
A D | gss_krb5.h | 83 u32 (*encrypt_v2) (struct krb5_ctx *kctx, u32 offset, 86 u32 (*decrypt_v2) (struct krb5_ctx *kctx, u32 offset, u32 len, 236 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, 277 krb5_make_seq_num(struct krb5_ctx *kctx, 283 krb5_get_seq_num(struct krb5_ctx *kctx, 308 gss_krb5_aes_encrypt(struct krb5_ctx *kctx, u32 offset, 313 gss_krb5_aes_decrypt(struct krb5_ctx *kctx, u32 offset, u32 len,
|
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/ |
A D | chcr_ktls.c | 77 struct ktls_key_ctx *kctx = &tx_info->key_ctx; in chcr_ktls_save_keys() local 150 kctx->ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ktls_save_keys() 158 memcpy(kctx->salt, salt, tx_info->salt_size); in chcr_ktls_save_keys() 159 memcpy(kctx->key, key, keylen); in chcr_ktls_save_keys() 160 memcpy(kctx->key + keylen, ghash_h, ghash_size); in chcr_ktls_save_keys()
|
Completed in 17 milliseconds