ahcbcpad.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* Copyright (C) RSA Data Security, Inc. created 1993, 1996. This is an
unpublished work protected as such under copyright law. This work
contains proprietary, confidential, and trade secret information of
RSA Data Security, Inc. Use, disclosure or reproduction without the
express written authorization of RSA Data Security, Inc. is
prohibited.
*/
#ifndef _AHCBCPAD_H_
#define _AHCBCPAD_H_
#include "ahchencr.h"
typedef struct AHSecretCBCPad {
AHChooseEncryptDecrypt chooseEncryptDecrypt; /* base class */
unsigned int _inputRemainder; /* Used for encrypt to compute pad length */
} AHSecretCBCPad;
AHSecretCBCPad *AHSecretCBCPadConstructor2 PROTO_LIST
((AHSecretCBCPad *, struct B_AlgorithmInfoType *, POINTER));
int AHSecretCBCPadEncryptInit PROTO_LIST
((THIS_ENCRYPT_DECRYPT *, B_Key *, B_ALGORITHM_CHOOSER,
A_SURRENDER_CTX *));
int AHSecretCBCPadEncryptUpdate PROTO_LIST
((THIS_ENCRYPT_DECRYPT *, unsigned char *, unsigned int *,
unsigned int, const unsigned char *, unsigned int, B_Algorithm *,
A_SURRENDER_CTX *));
int AHSecretCBCPadEncryptFinal PROTO_LIST
((THIS_ENCRYPT_DECRYPT *, unsigned char *, unsigned int *,
unsigned int, B_Algorithm *, A_SURRENDER_CTX *));
int AHSecretCBCPadDecryptFinal PROTO_LIST
((THIS_ENCRYPT_DECRYPT *, unsigned char *, unsigned int *,
unsigned int, B_Algorithm *, A_SURRENDER_CTX *));
#endif