Document DSA and SHA.
[openssl.git] / doc / crypto / sha.pod
1 =pod
2
3 =head1 NAME
4
5 sha - Secure Hash Algorithm
6
7 =head1 SYNOPSIS
8
9  #include <openssl/sha.h>
10
11  unsigned char *SHA1(const unsigned char *d, unsigned long n,
12                      unsigned char *md);
13
14  void SHA1_Init(SHA_CTX *c);
15  void SHA1_Update(SHA_CTX *c, const unsigned char *data,
16                   unsigned long len);
17  void SHA1_Final(unsigned char *md, SHA_CTX *c);
18
19 =head1 DESCRIPTION
20
21 SHA-1 (Secure Hash Algorithm) is a cryptographic hash function with a
22 160 bit output.
23
24 The predecessor of SHA-1, SHA, is also implemented, but it should be
25 used only when backward compatibility is required.
26
27 =head1 CONFORMING TO
28
29 US Federal Information Processing Standard FIPS 180 (Secure Hash
30 Standard), ANSI X9.30
31
32 =head1 SEE ALSO
33
34 ripemd(3), SHA1(3), SHA1_Init(3)
35
36 =cut