summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-07-20 16:21:49 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-07-20 16:21:49 +0000
commitf424a18112032cf61d2871a6b91a5af607c171ae (patch)
tree88fedc4e28941ceecda7026f0b06eba6271f91d5 /plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h
parentbfe1bd0fc087be44c70904aee0fe4276643d206d (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/sdk8/include/pgpHMAC.h')
-rw-r--r--plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h b/plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h
new file mode 100644
index 0000000000..3dc58a6ff9
--- /dev/null
+++ b/plugins/CryptoPP/src/PGPw/sdk8/include/pgpHMAC.h
@@ -0,0 +1,67 @@
+/*____________________________________________________________________________
+ Copyright (C) 2002 PGP Corporation
+ All rights reserved.
+
+ $Id: pgpHMAC.h,v 1.6 2002/08/06 20:11:16 dallen Exp $
+____________________________________________________________________________*/
+
+#ifndef Included_pgpHMAC_h /* [ */
+#define Included_pgpHMAC_h
+
+#include "pgpPubTypes.h"
+
+PGP_BEGIN_C_DECLARATIONS
+
+/*____________________________________________________________________________
+ Create a new HMAC of the specified algorithm.
+
+ If the algorithm is not available then kPGPError_AlgorithmNotAvailable is
+ returned.
+____________________________________________________________________________*/
+
+PGPError PGPNewHMACContext( PGPContextRef context,
+ 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 );
+
+PGP_END_C_DECLARATIONS
+
+#endif /* ] Included_pgpHMAC_h */
+
+
+/*__Editor_settings____
+
+ Local Variables:
+ tab-width: 4
+ End:
+ vi: ts=4 sw=4
+ vim: si
+_____________________*/