The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/sha1.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: sha1.h,v 1.13 2005/12/26 18:41:36 perry Exp $  */
    2 
    3 /*
    4  * SHA-1 in C
    5  * By Steve Reid <steve@edmweb.com>
    6  * 100% Public Domain
    7  */
    8 
    9 #ifndef _SYS_SHA1_H_
   10 #define _SYS_SHA1_H_
   11 
   12 #include <sys/cdefs.h>
   13 #include <sys/types.h>
   14 
   15 #define SHA1_DIGEST_LENGTH              20
   16 #define SHA1_DIGEST_STRING_LENGTH       41
   17 
   18 typedef struct {
   19         uint32_t state[5];
   20         uint32_t count[2];
   21         u_char buffer[64];
   22 } SHA1_CTX;
   23 
   24 __BEGIN_DECLS
   25 void    SHA1Transform(uint32_t[5], const u_char[64]);
   26 void    SHA1Init(SHA1_CTX *);
   27 void    SHA1Update(SHA1_CTX *, const u_char *, u_int);
   28 void    SHA1Final(u_char[SHA1_DIGEST_LENGTH], SHA1_CTX *);
   29 #ifndef _KERNEL
   30 char    *SHA1End(SHA1_CTX *, char *);
   31 char    *SHA1FileChunk(const char *, char *, off_t, off_t);
   32 char    *SHA1File(const char *, char *);
   33 char    *SHA1Data(const u_char *, size_t, char *);
   34 #endif /* _KERNEL */
   35 __END_DECLS
   36 
   37 #endif /* _SYS_SHA1_H_ */

Cache object: ee2cf9e611677a1ee4e32fb547e5fcf3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.