skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 3:... HP Open Source Security for OpenVMS Volume 3:...
go to beginning of chapter: KRB5 (Kerberos V5) Application Programming Interface KRB5 (Kerberos V5) Application Programming Interface
go to previous page: krb5_c_encrypt  Encrypt data krb5_c_encrypt Encrypt data
go to next page: krb5_c_enctype_compare  Compare two encryption typeskrb5_c_enctype_compare Compare two encryption types
end of book navigation links

krb5_c_encrypt_length -- Get the length of encrypted data 



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.


go to previous page: krb5_c_encrypt  Encrypt data krb5_c_encrypt Encrypt data
go to next page: krb5_c_enctype_compare  Compare two encryption typeskrb5_c_enctype_compare Compare two encryption types