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.3 2003/07/08 06:18:00 itojun 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/types.h>
   13 
   14 typedef struct {
   15         u_int32_t state[5];
   16         u_int32_t count[2];  
   17         u_char buffer[64];
   18 } SHA1_CTX;
   19   
   20 void    SHA1Transform __P((u_int32_t[5], const u_char[64]));
   21 void    SHA1Init __P((SHA1_CTX *));
   22 void    SHA1Update __P((SHA1_CTX *, const u_char *, u_int));
   23 void    SHA1Final __P((u_char[20], SHA1_CTX *));
   24 #ifndef _KERNEL
   25 char    *SHA1End __P((SHA1_CTX *, char *));
   26 char    *SHA1File __P((char *, char *));
   27 char    *SHA1Data __P((const u_char *, size_t, char *));
   28 #endif /* _KERNEL */
   29 
   30 #endif /* _SYS_SHA1_H_ */

Cache object: c9b4b6196223ed4e2c5b8a616285e94d


[ 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.