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 );
The context structure.
The encryption type.
The string to be converted.
The salt value.
The generated key.
This routine converts a string into a key, using the supplied encryption type and salt values.
This routine returns the following KRB5 status codes:
KRB5_CRYPTO_INTERNAL
Cryptosystem internal error.
ENOMEM
Insufficient memory.