/*1* Hash definitions2*3* Copyright 2005 Huw Davies4*5* This library is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* This library is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with this library; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA18*19*/2021#ifndef __WIDL_HASH_H22#define __WIDL_HASH_H2324extern unsigned int lhash_val_of_name_sys( syskind_t skind, int lcid, const char *lpStr);2526struct sha1_context27{28unsigned int state[5];29unsigned int count[2];30char buffer[64];31};3233void sha1_init(struct sha1_context *ctx);34void sha1_update(struct sha1_context *ctx, const char *data, size_t data_size);35void sha1_finalize(struct sha1_context *ctx, unsigned int hash[5]);3637#endif383940