krb5_c_verify_checksum -- Verify
a checksum

C Prototype

krb5_error_code krb5_c_verify_checksum (
krb5_context context,
const krb5_keyblock *key,
krb5_keyusage usage,
const krb5_data *data,
const krb5_checksum *cksum,
krb5_Boolean *valid );
Arguments

context (input/output) | | The context structure. |
| key (input) | | The key used to create the
data in cksum. |
| usage (input) | | The key usage. |
| data (input) | | Data. |
| cksum (input) | | The checksum to verify. |
| valid (output) | | Non-zero if the checksum
verified correctly; zero if it did not. |
Description

This routine verifies the checksum of data in cksum that
was created with a key using the key usage usage.
Return
Values

This routine returns the following KRB5 status codes:
0
|
Successful completion.
|
KRB5_BAD_ENCTYPE
|
Bad encryption type.
|
KRB5_BAD_MSIZE
|
Message size is incompatible with encryption
type.
|