Searched refs:kctx (Results 1 – 4 of 4) sorted by relevance
/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 158 gss_wrap_kerberos_v1(struct krb5_ctx *kctx, int offset, in gss_wrap_kerberos_v1() argument 171 u32 conflen = kctx->gk5e->conflen; in gss_wrap_kerberos_v1() 177 blocksize = crypto_sync_skcipher_blocksize(kctx->enc); in gss_wrap_kerberos_v1() 182 headlen = g_token_size(&kctx->mech_used, in gss_wrap_kerberos_v1() 183 GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength + plainlen) - in gss_wrap_kerberos_v1() 193 g_make_token_header(&kctx->mech_used, in gss_wrap_kerberos_v1() 195 kctx->gk5e->cksumlength + plainlen, &ptr); in gss_wrap_kerberos_v1() 202 msg_start = ptr + GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength; in gss_wrap_kerberos_v1() 209 *(__le16 *)(ptr + 2) = cpu_to_le16(kctx->gk5e->signalg); in gss_wrap_kerberos_v1() 210 *(__le16 *)(ptr + 4) = cpu_to_le16(kctx->gk5e->sealalg); in gss_wrap_kerberos_v1() [all …]
|
D | gss_krb5_crypto.c | 147 make_checksum(struct krb5_ctx *kctx, char *header, int hdrlen, in make_checksum() argument 158 if (cksumout->len < kctx->gk5e->cksumlength) { in make_checksum() 160 __func__, cksumout->len, kctx->gk5e->name); in make_checksum() 168 tfm = crypto_alloc_ahash(kctx->gk5e->cksum_name, 0, CRYPTO_ALG_ASYNC); in make_checksum() 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() 211 checksumdata + checksumlen - kctx->gk5e->cksumlength, in make_checksum() 212 kctx->gk5e->cksumlength); in make_checksum() 215 memcpy(cksumout->data, checksumdata, kctx->gk5e->cksumlength); in make_checksum() [all …]
|
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()
|
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()
|