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_random_seed  Get a random seed krb5_c_random_seed Get a random seed
go to next page: krb5_c_valid_cksumtype  Validate a checksum typekrb5_c_valid_cksumtype Validate a checksum type
end of book navigation links

krb5_c_string_to_key -- Convert a string to a key 



C Prototype 

krb5_error_code krb5_c_string_to_key (
        krb5_context            context,
        krb5_enctype            enctype,
        const krb5_data         *string,
        const krb5_data         *salt,
        krb5_keyblock           *key );

Arguments 

context
(input/output)
 The context structure.
enctype (input) The encryption type.
string (input)  The string to be converted.
salt (input) The salt value.
key (output) The generated key.

Description 

This routine converts a string into a key, using the supplied encryption type and salt values.

Return Values 

This routine returns the following KRB5 status codes:

KRB5_BAD_ENCTYPE
Bad encryption type.
KRB5_CRYPTO_INTERNAL
Cryptosystem internal error.
ENOMEM
Insufficient memory.


go to previous page: krb5_c_random_seed  Get a random seed krb5_c_random_seed Get a random seed
go to next page: krb5_c_valid_cksumtype  Validate a checksum typekrb5_c_valid_cksumtype Validate a checksum type