git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 6/6] Add sha/README.md with table of SHA algorithm details

From
Michael Clark <michaeljclark@mac.com>
Date
Dec 22, 2019, 06:48 UTC
Message-ID
<20191222064809.35667-7-michaeljclark@mac.com>
In-Reply-To
<20191222064809.35667-1-michaeljclark@mac.com>
- Add table showing algorith name, mnemonic, type-code, wdith,
  and library implementation (builtin, gcrypt, OpenSSL, EVP).
---
 sha/README.md | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 sha/README.md
diff --git a/sha/README.md b/sha/README.md
new file mode 100644
index 000000000000..0e24049e4cc7
--- /dev/null
+++ b/sha/README.md
@@ -0,0 +1,23 @@
+# SHA algorithms
+
+### Algorithms
+
+Table showing details of the SHA algorithms:
+
+| algorithm      | mnemonic | type-code    | width | extension | builtin      | gcrypt | OpenSSL| EVP    |
+|:---------------|:---------|:-------------|------:|----------:|:-------------|:-------|:-------|:-------|
+| `sha1`         | `sha1`   | `0x73686131` | 160   | yes       | `sha/sha1`   | yes    | yes    | -      |
+| `sha256`       | `s256`   | `0x73323536` | 256   | yes       | `sha/sha256` | yes    | yes    | -      |
+| `sha224`       | `s224`   | `0x73323234` | 224   | no        | `sha/sha256` | yes    | yes    | -      |
+| `sha512`       | `s512`   | `0x73353132` | 512   | yes       | `sha/sha512` | yes    | yes    | yes    |
+| `sha512/224`   | `s226`   | `0x73323236` | 224   | no        | `sha/sha512` | yes    | yes    | yes    |
+| `sha512/256`   | `s228`   | `0x73323238` | 256   | no        | `sha/sha512` | yes    | yes    | yes    |
+| `sha3-224`     | `s388`   | `0x73333838` | 224   | no        | `sha/sha3`   | yes    | -      | yes    |
+| `sha3-256`     | `s398`   | `0x73333938` | 256   | no        | `sha/sha3`   | yes    | -      | yes    |
+| `sha3-384`     | `s3a8`   | `0x73336138` | 384   | no        | `sha/sha3`   | yes    | -      | yes    |
+| `sha3-512`     | `s3b8`   | `0x73336238` | 512   | no        | `sha/sha3`   | yes    | -      | yes    |
+
+#### Notes
+
+- The _'extension'_ column refers to whether the algorithm is vulnerable to the
+ [length extension attack](https://en.wikipedia.org/wiki/Length_extension_attack).
\ No newline at end of file
-- 
2.20.1
Previous: Michael Clark
Message 7 of 7 in “Additional SHA implementations”
  1. 0/6 Additional SHA implementationsMichael Clark, Dec 22, 2019
  2. 1/6 Move all SHA algorithm variants into sha/ directoryMichael Clark, Dec 22, 2019
  3. 2/6 Add an implementation of the SHA-512 hash algorithmMichael Clark, Dec 22, 2019
  4. 4/6 Add an implementation of the SHA224 truncated hash algorithmMichael Clark, Dec 22, 2019
  5. 5/6 Add OpenSSL EVP interface for SHA-3 and SHA-512 algorithmsMichael Clark, Dec 22, 2019
  6. 3/6 Add an implementation of the SHA-3 hash algorithmMichael Clark, Dec 22, 2019
  7. 6/6 Add sha/README.md with table of SHA algorithm detailsMichael Clark, Dec 22, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.