[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here
HP Open Source Security for OpenVMS Volume 3: Kerberos > Chapter 6 KRB5 (Kerberos V5) Application Programming Interface

krb5_c_string_to_key — Convert a string to a key

 » Table of Contents

 » Glossary

 » Index

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_ENCTYPEBad encryption type.

KRB5_CRYPTO_INTERNAL

Cryptosystem internal error.

ENOMEM

Insufficient memory.