sha1.h
author Kristian H?gsberg <krh@redhat.com>
Sun Nov 04 01:11:53 2007 -0400 (2007-11-04)
changeset 70 e94d16f789e5
permissions -rw-r--r--
Parse filelists.xml.gz too, so we import the yum files too.
krh@0
     1
/*
krh@0
     2
 * The contents of this file are subject to the Mozilla Public
krh@0
     3
 * License Version 1.1 (the "License"); you may not use this file
krh@0
     4
 * except in compliance with the License. You may obtain a copy of
krh@0
     5
 * the License at http://www.mozilla.org/MPL/
krh@0
     6
 *
krh@0
     7
 * Software distributed under the License is distributed on an "AS
krh@0
     8
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
krh@0
     9
 * implied. See the License for the specific language governing
krh@0
    10
 * rights and limitations under the License.
krh@0
    11
 *
krh@0
    12
 * The Original Code is SHA 180-1 Header File
krh@0
    13
 *
krh@0
    14
 * The Initial Developer of the Original Code is Paul Kocher of
krh@0
    15
 * Cryptography Research.  Portions created by Paul Kocher are
krh@0
    16
 * Copyright (C) 1995-9 by Cryptography Research, Inc.  All
krh@0
    17
 * Rights Reserved.
krh@0
    18
 *
krh@0
    19
 * Contributor(s):
krh@0
    20
 *
krh@0
    21
 *     Paul Kocher
krh@0
    22
 *
krh@0
    23
 * Alternatively, the contents of this file may be used under the
krh@0
    24
 * terms of the GNU General Public License Version 2 or later (the
krh@0
    25
 * "GPL"), in which case the provisions of the GPL are applicable
krh@0
    26
 * instead of those above.  If you wish to allow use of your
krh@0
    27
 * version of this file only under the terms of the GPL and not to
krh@0
    28
 * allow others to use your version of this file under the MPL,
krh@0
    29
 * indicate your decision by deleting the provisions above and
krh@0
    30
 * replace them with the notice and other provisions required by
krh@0
    31
 * the GPL.  If you do not delete the provisions above, a recipient
krh@0
    32
 * may use your version of this file under either the MPL or the
krh@0
    33
 * GPL.
krh@0
    34
 */
krh@0
    35
krh@0
    36
typedef struct {
krh@0
    37
  unsigned int H[5];
krh@0
    38
  unsigned int W[80];
krh@0
    39
  int lenW;
krh@0
    40
  unsigned int sizeHi,sizeLo;
krh@0
    41
} SHA_CTX;
krh@0
    42
krh@0
    43
void SHA1_Init(SHA_CTX *ctx);
krh@0
    44
void SHA1_Update(SHA_CTX *ctx, const void *dataIn, int len);
krh@0
    45
void SHA1_Final(unsigned char hashout[20], SHA_CTX *ctx);