krh@0: /* krh@0: * The contents of this file are subject to the Mozilla Public krh@0: * License Version 1.1 (the "License"); you may not use this file krh@0: * except in compliance with the License. You may obtain a copy of krh@0: * the License at http://www.mozilla.org/MPL/ krh@0: * krh@0: * Software distributed under the License is distributed on an "AS krh@0: * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or krh@0: * implied. See the License for the specific language governing krh@0: * rights and limitations under the License. krh@0: * krh@0: * The Original Code is SHA 180-1 Header File krh@0: * krh@0: * The Initial Developer of the Original Code is Paul Kocher of krh@0: * Cryptography Research. Portions created by Paul Kocher are krh@0: * Copyright (C) 1995-9 by Cryptography Research, Inc. All krh@0: * Rights Reserved. krh@0: * krh@0: * Contributor(s): krh@0: * krh@0: * Paul Kocher krh@0: * krh@0: * Alternatively, the contents of this file may be used under the krh@0: * terms of the GNU General Public License Version 2 or later (the krh@0: * "GPL"), in which case the provisions of the GPL are applicable krh@0: * instead of those above. If you wish to allow use of your krh@0: * version of this file only under the terms of the GPL and not to krh@0: * allow others to use your version of this file under the MPL, krh@0: * indicate your decision by deleting the provisions above and krh@0: * replace them with the notice and other provisions required by krh@0: * the GPL. If you do not delete the provisions above, a recipient krh@0: * may use your version of this file under either the MPL or the krh@0: * GPL. krh@0: */ krh@0: krh@0: typedef struct { krh@0: unsigned int H[5]; krh@0: unsigned int W[80]; krh@0: int lenW; krh@0: unsigned int sizeHi,sizeLo; krh@0: } SHA_CTX; krh@0: krh@0: void SHA1_Init(SHA_CTX *ctx); krh@0: void SHA1_Update(SHA_CTX *ctx, const void *dataIn, int len); krh@0: void SHA1_Final(unsigned char hashout[20], SHA_CTX *ctx);