Home
last modified time | relevance | path

Searched refs:kctx (Results 1 – 4 of 4) sorted by relevance

/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c158 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 …]
Dgss_krb5_crypto.c147 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 …]
Dgss_krb5_seqnum.c43 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()
Dgss_krb5_mech.c575 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()