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/crypto/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 /*      $OpenBSD: sha1.h,v 1.6 2014/11/16 17:39:09 tedu Exp $   */
    2 
    3 /*
    4  * SHA-1 in C
    5  * By Steve Reid <steve@edmweb.com>
    6  * 100% Public Domain
    7  */
    8 
    9 #ifndef _SHA1_H_
   10 #define _SHA1_H_
   11 
   12 #define SHA1_BLOCK_LENGTH               64
   13 #define SHA1_DIGEST_LENGTH              20
   14 
   15 typedef struct {
   16         u_int32_t       state[5];
   17         u_int64_t       count;
   18         unsigned char   buffer[SHA1_BLOCK_LENGTH];
   19 } SHA1_CTX;
   20   
   21 void SHA1Init(SHA1_CTX * context);
   22 void SHA1Transform(u_int32_t state[5], const unsigned char buffer[SHA1_BLOCK_LENGTH]);
   23 void SHA1Update(SHA1_CTX *context, const void *data, unsigned int len);
   24 void SHA1Final(unsigned char digest[SHA1_DIGEST_LENGTH], SHA1_CTX *context);
   25 
   26 #endif /* _SHA1_H_ */

Cache object: fd476150fc60a6679f0051e65f03a2f4


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