Searched refs:GSS_KRB5_TOK_HDR_LEN (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 183 GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength + plainlen) - in gss_wrap_kerberos_v1() 194 GSS_KRB5_TOK_HDR_LEN + in gss_wrap_kerberos_v1() 202 msg_start = ptr + GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength; in gss_wrap_kerberos_v1() 229 memcpy(ptr + GSS_KRB5_TOK_HDR_LEN, md5cksum.data, md5cksum.len); in gss_wrap_kerberos_v1() 236 seq_send, ptr + GSS_KRB5_TOK_HDR_LEN, ptr + 8))) in gss_wrap_kerberos_v1() 299 crypt_offset = ptr + (GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength) - in gss_unwrap_kerberos_v1() 315 if (memcmp(md5cksum.data, ptr + GSS_KRB5_TOK_HDR_LEN, in gss_unwrap_kerberos_v1() 328 if (krb5_get_seq_num(kctx, ptr + GSS_KRB5_TOK_HDR_LEN, in gss_unwrap_kerberos_v1() 340 data_start = ptr + (GSS_KRB5_TOK_HDR_LEN + kctx->gk5e->cksumlength) + in gss_unwrap_kerberos_v1() 425 if (xdr_extend_head(buf, offset, GSS_KRB5_TOK_HDR_LEN)) in gss_wrap_kerberos_v2() [all …]
|
D | gss_krb5_seal.c | 77 int body_size = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; in setup_token() 122 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; in setup_token_v2() 154 memcpy(ptr + GSS_KRB5_TOK_HDR_LEN, md5cksum.data, md5cksum.len); in gss_get_mic_v1() 159 seq_send, ptr + GSS_KRB5_TOK_HDR_LEN, ptr + 8)) in gss_get_mic_v1() 195 if (make_checksum_v2(ctx, krb5_hdr, GSS_KRB5_TOK_HDR_LEN, in gss_get_mic_v2() 199 memcpy(krb5_hdr + GSS_KRB5_TOK_HDR_LEN, cksumobj.data, cksumobj.len); in gss_get_mic_v2()
|
D | gss_krb5_unseal.c | 121 if (memcmp(md5cksum.data, ptr + GSS_KRB5_TOK_HDR_LEN, in gss_verify_mic_v1() 134 if (krb5_get_seq_num(ctx, ptr + GSS_KRB5_TOK_HDR_LEN, ptr + 8, in gss_verify_mic_v1() 188 if (make_checksum_v2(ctx, ptr, GSS_KRB5_TOK_HDR_LEN, message_buffer, 0, in gss_verify_mic_v2() 192 if (memcmp(cksumobj.data, ptr + GSS_KRB5_TOK_HDR_LEN, in gss_verify_mic_v2()
|
D | gss_krb5_crypto.c | 628 offset += GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 632 offset -= GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 644 memcpy(ecptr, buf->head[0].iov_base + offset, GSS_KRB5_TOK_HDR_LEN); in gss_krb5_aes_encrypt() 645 buf->tail[0].iov_len += GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 646 buf->len += GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 663 offset + GSS_KRB5_TOK_HDR_LEN, in gss_krb5_aes_encrypt() 669 nbytes = buf->len - offset - GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 680 desc.pos = offset + GSS_KRB5_TOK_HDR_LEN; in gss_krb5_aes_encrypt() 693 err = xdr_process_buf(buf, offset + GSS_KRB5_TOK_HDR_LEN, in gss_krb5_aes_encrypt() 702 offset + GSS_KRB5_TOK_HDR_LEN + cbcbytes, in gss_krb5_aes_encrypt() [all …]
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
D | gss_krb5.h | 122 #define GSS_KRB5_TOK_HDR_LEN (16) macro 225 (GSS_KRB5_TOK_HDR_LEN /* gss token header */ \ 229 + GSS_KRB5_TOK_HDR_LEN /* encrypted hdr in v2 token */\ 232 + GSS_KRB5_TOK_HDR_LEN \
|