Lines Matching defs:mech
65 the sequence tag and length octets, the mech OID DER encoding, and the
140 /* returns the length of a token, given the mech oid and the body size */
143 g_token_size(struct xdr_netobj *mech, unsigned int body_size)
146 body_size += 2 + (int) mech->len; /* NEED overflow check */
156 g_make_token_header(struct xdr_netobj *mech, int body_size, unsigned char **buf)
159 der_write_length(buf, 2 + mech->len + body_size);
161 *(*buf)++ = (unsigned char) mech->len;
162 TWRITE_STR(*buf, mech->data, ((int) mech->len));
172 * mechanism in the token does not match the mech argument. buf and
176 g_verify_token_header(struct xdr_netobj *mech, int *body_size,
209 if (! g_OID_equal(&toid, mech))