1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/* 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, 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
|