Main Page | Class Hierarchy | Data Structures | Directories | File List | Data Fields | Related Pages

hmac.h

00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1996-2005
00005  *      Sleepycat Software.  All rights reserved.
00006  *
00007  * $Id: hmac.h,v 12.1 2005/06/16 20:21:48 bostic Exp $
00008  */
00009 
00010 #ifndef _DB_HMAC_H_
00011 #define _DB_HMAC_H_
00012 
00013 /*
00014  * Algorithm specific information.
00015  */
00016 /*
00017  * SHA1 checksumming
00018  */
00019 typedef struct {
00020         u_int32_t       state[5];
00021         u_int32_t       count[2];
00022         unsigned char   buffer[64];
00023 } SHA1_CTX;
00024 
00025 /*
00026  * AES assumes the SHA1 checksumming (also called MAC)
00027  */
00028 #define DB_MAC_MAGIC    "mac derivation key magic value"
00029 #define DB_ENC_MAGIC    "encryption and decryption key value magic"
00030 
00031 #include "dbinc_auto/hmac_ext.h"
00032 #endif /* !_DB_HMAC_H_ */

Generated on Sun Dec 25 12:14:22 2005 for Berkeley DB 4.4.16 by  doxygen 1.4.2