diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-20 16:21:49 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-07-20 16:21:49 +0000 |
commit | f424a18112032cf61d2871a6b91a5af607c171ae (patch) | |
tree | 88fedc4e28941ceecda7026f0b06eba6271f91d5 /plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h | |
parent | bfe1bd0fc087be44c70904aee0fe4276643d206d (diff) |
CryptoPP:
changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1083 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h')
-rw-r--r-- | plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h b/plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h new file mode 100644 index 0000000000..9e3ea0382a --- /dev/null +++ b/plugins/CryptoPP/src/PGPw/sdk6/include/pgpCBC.h @@ -0,0 +1,93 @@ +/*____________________________________________________________________________
+ pgpCBC.h
+
+ Copyright (C) 1997 Network Associates Inc. and affiliated companies.
+ All rights reserved.
+
+ $Id: pgpCBC.h,v 1.5 1999/03/10 02:47:09 heller Exp $
+____________________________________________________________________________*/
+#ifndef Included_pgpCBC_h /* [ */
+#define Included_pgpCBC_h
+
+#include "pgpSymmetricCipher.h"
+
+
+PGP_BEGIN_C_DECLARATIONS
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import on
+#endif
+
+/*____________________________________________________________________________
+ A CBC context requires use of a symmetric cipher which has been created
+ and whose key has been set. An error will be returned if this is not
+ the case.
+
+ After the call, the CBCContextRef "owns" the
+ symmetric ref and will dispose of it properly (even if an error
+ occurs). The caller should no longer reference it.
+____________________________________________________________________________*/
+PGPError PGPNewCBCContext( PGPSymmetricCipherContextRef ref,
+ PGPCBCContextRef *outRef );
+
+
+/*____________________________________________________________________________
+ Disposal clears all data in memory before releasing it.
+____________________________________________________________________________*/
+PGPError PGPFreeCBCContext( PGPCBCContextRef ref );
+
+
+/*____________________________________________________________________________
+ Make an exact copy, including current state. Original is not changed.
+____________________________________________________________________________*/
+PGPError PGPCopyCBCContext( PGPCBCContextRef ref, PGPCBCContextRef *outRef );
+
+
+
+/*____________________________________________________________________________
+ IV size is implicit (same size as the symmetric cipher block size).
+ IV is *copied*.
+ Caller may want to destroy the original after passing it in.
+____________________________________________________________________________*/
+PGPError PGPInitCBC( PGPCBCContextRef ref,
+ const void *key,
+ const void *initializationVector );
+
+
+/*____________________________________________________________________________
+ Call repeatedly to process arbitrary amounts of data. Each call must
+ have bytesIn be a multiple of the cipher block size.
+____________________________________________________________________________*/
+PGPError PGPCBCEncrypt( PGPCBCContextRef ref,
+ const void *in, PGPSize bytesIn, void *out );
+
+PGPError PGPCBCDecrypt( PGPCBCContextRef ref,
+ const void *in, PGPSize bytesIn, void *out );
+
+
+
+/*____________________________________________________________________________
+ Get the symmetric cipher being used for this CBC context.
+ You can use this to determine useful things about the underlying cipher
+ such as its block size.
+____________________________________________________________________________*/
+PGPError PGPCBCGetSymmetricCipher( PGPCBCContextRef ref,
+ PGPSymmetricCipherContextRef *outRef );
+
+
+
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import reset
+#endif
+PGP_END_C_DECLARATIONS
+
+#endif /* ] Included_pgpCBC_h */
+
+
+/*__Editor_settings____
+
+ Local Variables:
+ tab-width: 4
+ End:
+ vi: ts=4 sw=4
+ vim: si
+_____________________*/
|