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_keyed_checksum_types  Get a list of derived key checksums krb5_c_keyed_checksum_types Get a list of derived key checksums
go to next page: krb5_c_make_random_key  Generate a random keykrb5_c_make_random_key Generate a random key
end of book navigation links

krb5_c_make_checksum -- Compute a checksum 



C Prototype 

krb5_error_code krb5_c_make_checksum (
        krb5_context            context,
        krb5_cksumtype          cksumtype,
        const krb5_keyblock     *key,
        krb5_keyusage           usage,
        const krb5_data         *input,
        krb5_checksum           *cksum );

Arguments 

context
(input/output)
 The context structure.
cksumtype (input) The checksum type.
key (input) A pointer to the encryption key.
usage (input) A salt value.
input (input) The data for which a checksum is to be produced.
cksum (output) The checksum.

Description 

This routine computes a checksum, which is returned in cksum. Input parameters include the checksum type cksumtype, the encryption key key, a salt value usage, and the data for which a checksum is to be produced in input.

Return Values 

This routine returns the following KRB5 status codes:

0
Successful completion.
KRB5_BAD_ENCTYPE
Bad encryption type.
ENOMEM
Insufficient memory.


go to previous page: krb5_c_keyed_checksum_types  Get a list of derived key checksums krb5_c_keyed_checksum_types Get a list of derived key checksums
go to next page: krb5_c_make_random_key  Generate a random keykrb5_c_make_random_key Generate a random key