Update contrib.
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __PADDINGSHIM_H__
20 #define __PADDINGSHIM_H__
31 Shim class for CPaddingNone. This should only be created by CPaddingNone.
33 NONSHARABLE_CLASS(CPaddingNoneShim) : public CPaddingNone
36 static CPaddingNoneShim* NewL(TInt aBlockBytes);
37 static CPaddingNoneShim* NewLC(TInt aBlockBytes);
42 Used by the CBufferedTransformShim class to determine the type of
43 the padding mode selected. The SPI plug-in is then configured to use
44 the selected padding mdoe.
46 @param aExtensionId The requested interface
47 @param a0 Not used. This function does NOT return a real interface.
49 @return KErrNone if aExtensionId is CryptoSpi::KPaddingModeNoneUid;
50 otherwise, KErrNotFound is returned.
52 TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
54 CPaddingNoneShim(TInt aBlockBytes);
58 Shim class for CPaddingPKCS1Signature. This should only be created by
59 CPaddingPKCS1Signature.
61 NONSHARABLE_CLASS(CPaddingPKCS1SignatureShim) : public CPaddingPKCS1Signature
64 static CPaddingPKCS1SignatureShim* NewL(TInt aBlockBytes);
65 static CPaddingPKCS1SignatureShim* NewLC(TInt aBlockBytes);
70 Used by the CBufferedTransformShim class to determine the type of
71 the padding mode selected. The SPI plug-in is then configured to use
72 the selected padding mdoe.
74 @param aExtensionId The requested interface
75 @param a0 Not used. This function does NOT return a real interface.
77 @return KErrNone if aExtensionId is CryptoSpi::KPaddingModeNoneUid;
78 otherwise, KErrNotFound is returned.
80 TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
82 CPaddingPKCS1SignatureShim(TInt aBlockBytes);
86 Shim class for CPaddingPKCS1Encryption. This should only be created by
87 CPaddingPKCS1Encryption.
89 NONSHARABLE_CLASS(CPaddingPKCS1EncryptionShim) : public CPaddingPKCS1Encryption
92 static CPaddingPKCS1EncryptionShim* NewL(TInt aBlockBytes);
93 static CPaddingPKCS1EncryptionShim* NewLC(TInt aBlockBytes);
98 Used by the CBufferedTransformShim class to determine the type of
99 the padding mode selected. The SPI plug-in is then configured to use
100 the selected padding mdoe.
102 @param aExtensionId The requested interface
103 @param a0 Not used. This function does NOT return a real interface.
105 @return KErrNone if aExtensionId is CryptoSpi::KPaddingModeNoneUid;
106 otherwise, KErrNotFound is returned.
108 TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
110 CPaddingPKCS1EncryptionShim(TInt aBlockBytes);
114 Shim class for CPaddingSSLv3. This should only be created by
117 NONSHARABLE_CLASS(CPaddingSSLv3Shim) : public CPaddingSSLv3
120 static CPaddingSSLv3Shim* NewL(TInt aBlockBytes);
121 static CPaddingSSLv3Shim* NewLC(TInt aBlockBytes);
126 Used by the CBufferedTransformShim class to determine the type of
127 the padding mode selected. The SPI plug-in is then configured to use
128 the selected padding mdoe.
130 @param aExtensionId The requested interface
131 @param a0 Not used. This function does NOT return a real interface.
133 @return KErrNone if aExtensionId is CryptoSpi::KPaddingModeNoneUid;
134 otherwise, KErrNotFound is returned.
136 TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
138 CPaddingSSLv3Shim(TInt aBlockBytes);
142 Shim class for CPaddingPKCS7. This should only be created by
145 NONSHARABLE_CLASS(CPaddingPKCS7Shim) : public CPaddingPKCS7
148 static CPaddingPKCS7Shim* NewL(TInt aBlockBytes);
149 static CPaddingPKCS7Shim* NewLC(TInt aBlockBytes);
154 Used by the CBufferedTransformShim class to determine the type of
155 the padding mode selected. The SPI plug-in is then configured to use
156 the selected padding mdoe.
158 @param aExtensionId The requested interface
159 @param a0 Not used. This function does NOT return a real interface.
161 @return KErrNone if aExtensionId is CryptoSpi::KPaddingModeNoneUid;
162 otherwise, KErrNotFound is returned.
164 TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1);
166 CPaddingPKCS7Shim(TInt aBlockBytes);
169 #endif // __PADDINGSHIM_H__