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_make_checksum  Compute a checksum krb5_c_make_checksum Compute a checksum
go to next page: krb5_c_random_make_octets  Create random datakrb5_c_random_make_octets Create random data
end of book navigation links

krb5_c_make_random_key -- Generate a random key 



C Prototype 

krb5_error_code krb5_c_make_random_key (
        krb5_context            context,
        krb5_enctype            enctype,
        krb5_keyblock           *random_key );

Arguments 

context
(input/output)
 The context structure.
enctype (input) The encryption type to use in generating the key.
random_key (output) The random key.

Description 

This routine generates a random key for a given encryption type.

Return Values 

This routine returns the following KRB5 status codes:

KRB5_BAD_ENCTYPE
Bad encryption type.
ENOMEM
Insufficient memory.


go to previous page: krb5_c_make_checksum  Compute a checksum krb5_c_make_checksum Compute a checksum
go to next page: krb5_c_random_make_octets  Create random datakrb5_c_random_make_octets Create random data