diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-04-21 14:14:52 +0000 |
commit | cb4a46e7fbe62d788e66ed6121c717a2d22a4d7c (patch) | |
tree | 30df260fdc5a1b5a7049c2f8cac8b7ef17513d6d /cryptopp/PGPw/sdk6/include/pgpHMAC.h | |
parent | 19b6f534d2e784a1e120bf52c4aa07004798f473 (diff) |
svn.miranda.im is moving to a new home!
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@7 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/PGPw/sdk6/include/pgpHMAC.h')
-rw-r--r-- | cryptopp/PGPw/sdk6/include/pgpHMAC.h | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/cryptopp/PGPw/sdk6/include/pgpHMAC.h b/cryptopp/PGPw/sdk6/include/pgpHMAC.h new file mode 100644 index 0000000..a04dc95 --- /dev/null +++ b/cryptopp/PGPw/sdk6/include/pgpHMAC.h @@ -0,0 +1,75 @@ +/*____________________________________________________________________________
+ pgpHMAC.h
+
+ Copyright (C) 1997 Network Associates Inc. and affiliated companies.
+ All rights reserved.
+
+ $Id: pgpHMAC.h,v 1.3 1999/03/10 02:51:38 heller Exp $
+____________________________________________________________________________*/
+#ifndef Included_pgpHMAC_h /* [ */
+#define Included_pgpHMAC_h
+
+#include "pgpPubTypes.h"
+#include "pgpMemoryMgr.h"
+
+
+PGP_BEGIN_C_DECLARATIONS
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import on
+#endif
+
+/*____________________________________________________________________________
+ Create a new HMAC of the specified algorithm.
+
+ If the algorithm is not available then kPGPError_AlgorithmNotAvailable is
+ returned.
+____________________________________________________________________________*/
+PGPError PGPNewHMACContext( PGPMemoryMgrRef memoryMgr,
+ PGPHashAlgorithm algorithm,
+ PGPByte * secret,
+ PGPSize secretLen,
+ PGPHMACContextRef * outRef );
+
+/*____________________________________________________________________________
+ Any existing intermediate HMAC is lost.
+____________________________________________________________________________*/
+PGPError PGPFreeHMACContext( PGPHMACContextRef ref );
+
+/*____________________________________________________________________________
+ Reset an HMAC as if it had been created anew. Any existing intermediate
+ hash is lost.
+____________________________________________________________________________*/
+PGPError PGPResetHMAC( PGPHMACContextRef ref );
+
+/*____________________________________________________________________________
+ Continue the HMAC, accumulating an intermediate result
+____________________________________________________________________________*/
+PGPError PGPContinueHMAC( PGPHMACContextRef ref,
+ const void *in, PGPSize numBytes );
+
+
+/*____________________________________________________________________________
+ Finalize the HMAC, depositing the result into 'hmacOut'.
+
+ This size of the output will be the same size as the hash
+ algorithm output.
+____________________________________________________________________________*/
+PGPError PGPFinalizeHMAC( PGPHMACContextRef ref, void *hmacOut );
+
+
+#if PRAGMA_IMPORT_SUPPORTED
+#pragma import reset
+#endif
+PGP_END_C_DECLARATIONS
+
+#endif /* ] Included_pgpHMAC_h */
+
+
+/*__Editor_settings____
+
+ Local Variables:
+ tab-width: 4
+ End:
+ vi: ts=4 sw=4
+ vim: si
+_____________________*/
|