Lines Matching refs:checksum
79 * HMAC-MD5 checksum over any key (needed for the PAC routines)
99 ret = krb5_data_alloc (&result->checksum, 16);
108 krb5_data_free(&result->checksum);
459 cksum.checksum.length =
461 cksum.checksum.data = malloc(cksum.checksum.length);
462 if (cksum.checksum.data == NULL) {
466 ret = krb5_storage_read(sp, cksum.checksum.data, cksum.checksum.length);
467 if (ret != (int)cksum.checksum.length) {
469 krb5_set_error_message(context, ret, "PAC checksum missing checksum");
480 /* If the checksum is HMAC-MD5, the checksum type is not tied to
481 * the key type, instead the HMAC-MD5 checksum is applied blindly
497 if (ret != 0 || krb5_data_ct_cmp(&local_checksum.checksum, &cksum.checksum) != 0) {
501 "hmac-md5 checksum", ""));
503 krb5_data_free(&local_checksum.checksum);
516 free(cksum.checksum.data);
522 if (cksum.checksum.data)
523 free(cksum.checksum.data);
540 /* If the checksum is HMAC-MD5, the checksum type is not tied to
541 * the key type, instead the HMAC-MD5 checksum is applied blindly
563 if (cksum.checksum.length != siglen) {
564 krb5_set_error_message(context, EINVAL, "pac checksum wrong length");
569 memcpy(sig, cksum.checksum.data, siglen);
825 krb5_set_error_message(context, EINVAL, "PAC missing server checksum");
829 krb5_set_error_message(context, EINVAL, "PAC missing kdc checksum");
847 * server checksum before checking the checksum.
880 /* The priv checksum covers the server checksum */
1010 /* Set lengths for checksum */