[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_encrypt_length — Get the length of encrypted data

 » Table of Contents

 » Glossary

 » Index

C Prototype

krb5_error_code krb5_c_encrypt_length (
krb5_context context,
krb5_enctype enctype,
size_t inputlen,
size_t *length );

Arguments

context (input/output) 

The context structure.

enctype (input) 

The encryption type.

inputlen (input) 

The length of the encrypted data to check.

length (output)  

The length of the unencrypted data.

Description

This routine finds the actual (unencrypted) length of data that has been encrypted. Encryption can potentially change the size of the data, so unencrypted and encrypted lengths may be different.

Return Values

This routine returns the following KRB5 status code:

KRB5_BAD_ENCTYPE

Bad encryption type.