[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_decrypt — Decrypt encrypted data

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_error_code krb5_c_decrypt (
krb5_context context,
const krb5_keyblock *key,
krb5_keyusage usage,
const krb5_data *ivec,
const krb5_enc_data *input,
krb5_data *output );

Arguments

context (input/output) 

The context structure.

key (input)  

The key value from a keytab, ticket, etc.

usage (input) 

A salt value.

ivec (input) 

Input vector.

input (input) 

The encrypted data.

output (output) 

The decrypted data.

Description

This routine decrypts encrypted data, given the proper key.

Return Values

This routine returns the following KRB5 status code:

KRB5_BAD_ENCTYPE

Bad encryption type.