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.
|