1/*- 2 * See the file LICENSE for redistribution information. 3 * 4 * Copyright (c) 1996,2008 Oracle. All rights reserved. 5 * 6 * $Id: hmac.h,v 12.7 2008/01/08 20:58:18 bostic Exp $ 7 */ 8 9#ifndef _DB_HMAC_H_ 10#define _DB_HMAC_H_ 11 12#if defined(__cplusplus) 13extern "C" { 14#endif 15 16/* 17 * Algorithm specific information. 18 */ 19/* 20 * SHA1 checksumming 21 */ 22typedef struct { 23 u_int32_t state[5]; 24 u_int32_t count[2]; 25 unsigned char buffer[64]; 26} SHA1_CTX; 27 28/* 29 * AES assumes the SHA1 checksumming (also called MAC) 30 */ 31#define DB_MAC_MAGIC "mac derivation key magic value" 32#define DB_ENC_MAGIC "encryption and decryption key value magic" 33 34#if defined(__cplusplus) 35} 36#endif 37 38#include "dbinc_auto/hmac_ext.h" 39#endif /* !_DB_HMAC_H_ */ 40