/***********************************************************************/ /* */ /* The Cryptokit library */ /* */ /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */ /* */ /* Copyright 2002 Institut National de Recherche en Informatique et */ /* en Automatique. All rights reserved. This file is distributed */ /* under the terms of the GNU Library General Public License, with */ /* the special exception on linking described in file LICENSE. */ /* */ /***********************************************************************/ /* $Id: sha256.h,v 1.1 2004/08/20 12:05:55 xleroy Exp $ */ /* SHA-256 hashing */ typedef unsigned int u32; struct SHA256Context { u32 state[8]; u32 length[2]; int numbytes; unsigned char buffer[64]; }; extern void SHA256_init(struct SHA256Context * ctx); extern void SHA256_add_data(struct SHA256Context * ctx, unsigned char * data, unsigned long len); extern void SHA256_finish(struct SHA256Context * ctx, unsigned char output[32]);