2fe8fb192f
There is important information about booting non-ack images in docs/UPDATING. ack/aout-format images can't be built any more, and booting clang/ELF-format ones is a little different. Updating to the new boot monitor is recommended. Changes in this commit: . drop boot monitor -> allowing dropping ack support . facility to copy ELF boot files to /boot so that old boot monitor can still boot fairly easily, see UPDATING . no more ack-format libraries -> single-case libraries . some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases . drop several ack toolchain commands, but not all support commands (e.g. aal is gone but acksize is not yet). . a few libc files moved to netbsd libc dir . new /bin/date as minix date used code in libc/ . test compile fix . harmonize includes . /usr/lib is no longer special: without ack, /usr/lib plays no kind of special bootstrapping role any more and bootstrapping is done exclusively through packages, so releases depend even less on the state of the machine making them now. . rename nbsd_lib* to lib* . reduce mtree
37 lines
857 B
C
37 lines
857 B
C
/* $NetBSD: sha1.h,v 1.14 2009/11/06 20:31:19 joerg Exp $ */
|
|
|
|
/*
|
|
* SHA-1 in C
|
|
* By Steve Reid <steve@edmweb.com>
|
|
* 100% Public Domain
|
|
*/
|
|
|
|
#ifndef _SYS_SHA1_H_
|
|
#define _SYS_SHA1_H_
|
|
|
|
#include <sys/cdefs.h>
|
|
#include <sys/types.h>
|
|
|
|
#define SHA1_DIGEST_LENGTH 20
|
|
#define SHA1_DIGEST_STRING_LENGTH 41
|
|
|
|
typedef struct {
|
|
uint32_t state[5];
|
|
uint32_t count[2];
|
|
uint8_t buffer[64];
|
|
} SHA1_CTX;
|
|
|
|
__BEGIN_DECLS
|
|
void SHA1Transform(uint32_t[5], const uint8_t[64]);
|
|
void SHA1Init(SHA1_CTX *);
|
|
void SHA1Update(SHA1_CTX *, const uint8_t *, unsigned int);
|
|
void SHA1Final(uint8_t[SHA1_DIGEST_LENGTH], SHA1_CTX *);
|
|
#ifndef _KERNEL
|
|
char *SHA1End(SHA1_CTX *, char *);
|
|
char *SHA1FileChunk(const char *, char *, off_t, off_t);
|
|
char *SHA1File(const char *, char *);
|
|
char *SHA1Data(const uint8_t *, size_t, char *);
|
|
#endif /* _KERNEL */
|
|
__END_DECLS
|
|
|
|
#endif /* _SYS_SHA1_H_ */
|