• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# MD Overview and Algorithm Specifications
2
3The message digest (MD) algorithm allows a fixed-length digest to be generated from data of arbitrary size by using the hash algorithm. The MD algorithm is also referred to as a hash algorithm or a one-way hash algorithm.
4
5
6When the same digest algorithm is used, the generated digest (hash value) has the following features:
7
8
9- The same message always results in the same hash value.
10
11- The digest generated is of the fixed length no matter the length of messages. (The digest length is determined by the algorithm used). For example, SHA-256 generates a digest of 256 bits (32 bytes).
12
13
14## Supported Algorithms and Specifications
15
16The **Supported Type** column in the following table lists the algorithm to be used when an **Md** instance is created.
17
18| MD Algorithm| Supported Type| Length (Bytes)|  API Version|
19| -------- | -------- | -------- | -------- |
20| HASH | SHA1 | 20 | 9+ |
21| HASH | SHA224 | 28 | 9+ |
22| HASH | SHA256 | 32 | 9+ |
23| HASH | SHA384 | 48 | 9+ |
24| HASH | SHA512 | 64 | 9+ |
25| HASH | MD5 | 16 | 9+ |
26| HASH | SM3 | 32 | 10+ |
27