[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_with_params — Convert string key to keyblock

 » Table of Contents

 » Glossary

 » Index

C Prototype

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

Arguments

context (input/output) 

The context structure.

enctype (input) 

The encryption type.

string (input)  

The string form of the key.

salt (input) 

The salt used in the encryption.

params (input) 

Special parameters used on the conversion.

key (output) 

The keyblock information.

Description

This routine converts a string key into a keyblock.

Return Values

This routine returns the following KRB5 status codes:

0

Successful completion.
KRB5_BAD_ENCTYPEBad encryption type.

KRB5_CRYPTO_INTERNAL

Cryptosystem internal error.

ENOMEM

Insufficient memory.