Lines Matching refs:plain
49 unsigned char *plain; in krb5_make_seq_num() local
52 plain = kmalloc(8, GFP_KERNEL); in krb5_make_seq_num()
53 if (!plain) in krb5_make_seq_num()
56 plain[0] = (unsigned char) (seqnum & 0xff); in krb5_make_seq_num()
57 plain[1] = (unsigned char) ((seqnum >> 8) & 0xff); in krb5_make_seq_num()
58 plain[2] = (unsigned char) ((seqnum >> 16) & 0xff); in krb5_make_seq_num()
59 plain[3] = (unsigned char) ((seqnum >> 24) & 0xff); in krb5_make_seq_num()
61 plain[4] = direction; in krb5_make_seq_num()
62 plain[5] = direction; in krb5_make_seq_num()
63 plain[6] = direction; in krb5_make_seq_num()
64 plain[7] = direction; in krb5_make_seq_num()
66 code = krb5_encrypt(key, cksum, plain, buf, 8); in krb5_make_seq_num()
67 kfree(plain); in krb5_make_seq_num()
78 unsigned char *plain; in krb5_get_seq_num() local
83 plain = kmalloc(8, GFP_KERNEL); in krb5_get_seq_num()
84 if (!plain) in krb5_get_seq_num()
87 if ((code = krb5_decrypt(key, cksum, buf, plain, 8))) in krb5_get_seq_num()
90 if ((plain[4] != plain[5]) || (plain[4] != plain[6]) || in krb5_get_seq_num()
91 (plain[4] != plain[7])) { in krb5_get_seq_num()
96 *direction = plain[4]; in krb5_get_seq_num()
98 *seqnum = ((plain[0]) | in krb5_get_seq_num()
99 (plain[1] << 8) | (plain[2] << 16) | (plain[3] << 24)); in krb5_get_seq_num()
102 kfree(plain); in krb5_get_seq_num()