xref: /linux/Documentation/crypto/libcrypto-hash.rst (revision e9af4f47d4a036b4be67e4be361f62e05081f7bf)
1.. SPDX-License-Identifier: GPL-2.0-or-later
2
3Hash functions, MACs, and XOFs
4==============================
5
6AES-CMAC and AES-XCBC-MAC
7-------------------------
8
9Support for the AES-CMAC and AES-XCBC-MAC message authentication codes.
10
11.. kernel-doc:: include/crypto/aes-cbc-macs.h
12
13BLAKE2b
14-------
15
16Support for the BLAKE2b cryptographic hash function.
17
18.. kernel-doc:: include/crypto/blake2b.h
19
20BLAKE2s
21-------
22
23Support for the BLAKE2s cryptographic hash function.
24
25.. kernel-doc:: include/crypto/blake2s.h
26
27GHASH and POLYVAL
28-----------------
29
30Support for the GHASH and POLYVAL universal hash functions.  These algorithms
31are used only as internal components of other algorithms.
32
33.. kernel-doc:: include/crypto/gf128hash.h
34
35MD5
36---
37
38Support for the MD5 cryptographic hash function and HMAC-MD5.  This algorithm is
39obsolete and is supported only for backwards compatibility.
40
41.. kernel-doc:: include/crypto/md5.h
42
43NH
44--
45
46Support for the NH universal hash function.  This algorithm is used only as an
47internal component of other algorithms.
48
49.. kernel-doc:: include/crypto/nh.h
50
51Poly1305
52--------
53
54Support for the Poly1305 universal hash function.  This algorithm is used only
55as an internal component of other algorithms.
56
57.. kernel-doc:: include/crypto/poly1305.h
58
59SHA-1
60-----
61
62Support for the SHA-1 cryptographic hash function and HMAC-SHA1.  This algorithm
63is obsolete and is supported only for backwards compatibility.
64
65.. kernel-doc:: include/crypto/sha1.h
66
67SHA-2
68-----
69
70Support for the SHA-2 family of cryptographic hash functions, including SHA-224,
71SHA-256, SHA-384, and SHA-512.  This also includes their corresponding HMACs:
72HMAC-SHA224, HMAC-SHA256, HMAC-SHA384, and HMAC-SHA512.
73
74.. kernel-doc:: include/crypto/sha2.h
75
76SHA-3
77-----
78
79The SHA-3 functions are documented in :ref:`sha3`.
80
81SM3
82---
83
84Support for the SM3 cryptographic hash function.
85
86.. kernel-doc:: include/crypto/sm3.h
87