/**/ /***************************************************************************/ /** **/ /** © Copyright 2013, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 12-Mar-2013 10:27:09 by OpenVMS SDL EV3-3 */ /* Source: 13-JAN-2012 16:21:42 $1$DGA106:[ENCRYPT.SRC]ENCRYPT_DEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE encrypt_def IDENT V01.10 ***/ #ifndef __ENCRYPT_DEF_LOADED #define __ENCRYPT_DEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /* */ /* Initialize context for encrypt/decrypt operations */ /* Accepts following arguments */ /* context : type - longword integer signed; access - write only; mechanism - by reference */ /* algorithm : type - char_string; access - read/write; mechanism - by descriptor */ /* key-type : type - longword logical unsigned; access - read only; mechanism - by reference */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* [ p1 ] : type - quadword[1] (DES), quadword[2] (AES); access - read only; mechanism - by reference */ /* */ #define encrypt$init ENCRYPT$INIT int encrypt$init(__unknown_params); /* */ /* Perform encryption of next record of plaintext */ /* Accepts following arguments */ /* context : type - longword integer signed; access - write only; mechanism - by reference */ /* input : type - char_string; access - read only; mechanism - by descriptor */ /* output : type - char_string; access - write only; mechanism - by descriptor */ /* [output-length] : type - word integer; access - write only; mechanism - by reference */ /* [p1] : type - quadword[1] (DES), quadword[2] (AES); access - read only; mechanism - by reference */ /* */ #define encrypt$encrypt ENCRYPT$ENCRYPT int encrypt$encrypt(__unknown_params); /* */ /* Perform decryption of next record of plaintext */ /* Accepts following arguments */ /* context : type - longword integer signed; access - write only; mechanism - by reference */ /* input : type - char_string; access - read only; mechanism - by descriptor */ /* output : type - char_string; access - write only; mechanism - by descriptor */ /* [output-length] : type - word integer; access - write only; mechanism - by reference */ /* [p1] : type - quadword[1] (DES), quadword[2] (AES); access - read only; mechanism - by reference */ /* */ #define encrypt$decrypt ENCRYPT$DECRYPT int encrypt$decrypt(__unknown_params); /* */ /* Disassociates the encryption context and releases it */ /* Accepts following arguments */ /* context : type - longword integer signed; access - read/write; mechanism - by reference */ /* */ #define encrypt$fini ENCRYPT$FINI int encrypt$fini(__unknown_params); /* */ /* Gains access to the statistics maintained by the Encryption software */ /* Accepts following arguments */ /* context : type - longword; access - read only; mechanism - by reference */ /* code : type - longword; access - read only; mechanism - by reference */ /* destination : type - char_string; access - write only; mechanism - by descriptor */ /* return-length : type - longword; access - write only; mechanism - by reference */ /* */ #define encrypt$statistics ENCRYPT$STATISTICS int encrypt$statistics(__unknown_params); /* */ /* Places a key definition into the process, group, job, or system key storage table */ /* Accepts following arguments */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* key-value : type - char_string; access - read only; mechanism - by descriptor */ /* key-flags : type - longword; access - read only; mechanism - by reference */ /* */ #define encrypt$define_key ENCRYPT$DEFINE_KEY int encrypt$define_key(__unknown_params); /* */ /* Deletes a key definition from a key storage table */ /* Accepts following arguments */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* key-flags : type - longword; access - read only; mechanism - by reference */ /* */ #define encrypt$delete_key ENCRYPT$DELETE_KEY int encrypt$delete_key(__unknown_params); /* */ /* Encrypts or decrypts data files */ /* Accepts following arguments */ /* input-file : type - char_string; access - read only; mechanism - by descriptor */ /* output-file : type - char_string; access - read only; mechanism - by descriptor */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* algorithm : type - char_string; access - read only; mechanism - by descriptor */ /* file-flags : type - longword; access - read only; mechanism - by reference */ /* [item-list] : type - item_list_3; access - read only; mechanism - by descriptor */ /* */ #define encrypt$encrypt_file ENCRYPT$ENCRYPT_FILE int encrypt$encrypt_file(__unknown_params); /* */ /* Encrypts a small amount of data in an encrypt stream */ /* Accepts following arguments */ /* input : type - char_string; access - read only; mechanism - by descriptor */ /* output : type - char_string; access - write only; mechanism - by descriptor */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* algorithm : type - char_string; access - read only; mechanism - by descriptor */ /* */ #define encrypt$encrypt_one_record ENCRYPT$ENCRYPT_ONE_RECORD int encrypt$encrypt_one_record(__unknown_params); /* */ /* Decrypts a small amount of data on a decrypt stream */ /* Accepts following arguments */ /* input : type - char_string; access - read only; mechanism - by descriptor */ /* output : type - char_string; access - write only; mechanism - by descriptor */ /* key-name : type - char_string; access - read only; mechanism - by descriptor */ /* algorithm : type - char_string; access - read only; mechanism - by descriptor */ /* */ #define encrypt$decrypt_one_record ENCRYPT$DECRYPT_ONE_RECORD int encrypt$decrypt_one_record(__unknown_params); /* */ /* Generates a random key value */ /* Accepts following arguments */ /* algorithm-name : type - char_string; access - read only; mechanism - by descriptor */ /* key-length : type - word unsigned; access - read only; mechanism - by reference */ /* [factor-a] : type - char_string; access - read only; mechanism - by descriptor */ /* [factor-b] : type - char_string; access - read only; mechanism - by descriptor */ /* [factor-c] : type - char_string; access - read only; mechanism - by descriptor */ /* [key-buffer] : type - char_string; access - write; mechanism - by descriptor */ /* */ #define encrypt$generate_key ENCRYPT$GENERATE_KEY int encrypt$generate_key(__unknown_params); /* */ /* Unsupported calls */ /* */ #define encrypt$init_asyn ENCRYPT$INIT_ASYN int encrypt$init_asyn(__unknown_params); #define encrypt$encrypt_asyn ENCRYPT$ENCRYPT_ASYN int encrypt$encrypt_asyn(__unknown_params); #define encrypt$decrypt_asyn ENCRYPT$DECRYPT_ASYN int encrypt$decrypt_asyn(__unknown_params); #define encrypt$fini_asyn ENCRYPT$FINI_ASYN int encrypt$fini_asyn(__unknown_params); #define encrypt$sync_asyn ENCRYPT$SYNC_ASYN int encrypt$sync_asyn(__unknown_params); #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __ENCRYPT_DEF_LOADED */