Lines Matching +full:p +full:- +full:states
4 * Adapted from MIT Kerberos 5-1.2.1 lib/gssapi/krb5/k5seal.c
6 * Copyright (c) 2000-2008 The Regents of the University of Michigan.
40 * Export of this software from the United States of America may require
41 * a specific license from the United States Government. It is the
79 u8 *p, flags = 0x00; in setup_token_v2() local
81 if ((ctx->flags & KRB5_CTX_FLAG_INITIATOR) == 0) in setup_token_v2()
83 if (ctx->flags & KRB5_CTX_FLAG_ACCEPTOR_SUBKEY) in setup_token_v2()
89 krb5_hdr = (u16 *)token->data; in setup_token_v2()
93 p = (u8 *)ptr; in setup_token_v2()
94 *p++ = flags; in setup_token_v2()
95 *p++ = 0xff; in setup_token_v2()
96 ptr = (u16 *)p; in setup_token_v2()
100 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; in setup_token_v2()
108 struct crypto_ahash *tfm = ctx->initiate ? in gss_krb5_get_mic_v2()
109 ctx->initiator_sign : ctx->acceptor_sign; in gss_krb5_get_mic_v2()
111 .len = ctx->gk5e->cksumlength, in gss_krb5_get_mic_v2()
121 /* Set up the sequence number. Now 64-bits in clear in gss_krb5_get_mic_v2()
123 seq_send_be64 = cpu_to_be64(atomic64_fetch_inc(&ctx->seq_send64)); in gss_krb5_get_mic_v2()
132 return (ctx->endtime < now) ? GSS_S_CONTEXT_EXPIRED : GSS_S_COMPLETE; in gss_krb5_get_mic_v2()