skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_c_valid_enctype  Validate an encryption type krb5_c_valid_enctype Validate an encryption type
go to next page: krb5_cc_close  Close the credentials cachekrb5_cc_close Close the credentials cache
end of book navigation links

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.


go to previous page: krb5_c_valid_enctype  Validate an encryption type krb5_c_valid_enctype Validate an encryption type
go to next page: krb5_cc_close  Close the credentials cachekrb5_cc_close Close the credentials cache