Skip to content

Commit f073169

Browse files
authored
x.crypto: add a new ascon cryptographic module, based on https://doi.org/10.6028/NIST.SP.800-232 (Lightweight Cryptography Standards for Constrained Devices) (#25260)
1 parent e650d6b commit f073169

15 files changed

Lines changed: 2147 additions & 0 deletions

File tree

‎vlib/x/crypto/ascon/README.md‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ascon
2+
3+
`ascon` is a implementation of Ascon-Based Cryptography module implemented in pure V language.
4+
This module was mostly based on NIST Special Publication of 800 NIST SP 800-232 document.
5+
Its describes an Ascon-Based Lightweight Cryptography Standards for Constrained Devices
6+
thats provides Authenticated Encryption, Hash, and Extendable Output Functions.
7+
See the [NIST.SP.800-232 Standard](https://doi.org/10.6028/NIST.SP.800-232) for more detail.
8+
9+
This module does not fully implements all the features availables on the document.
10+
Its currently implements:
11+
- `Ascon-Hash256`, Ascon-based hashing implementation that produces 256-bits output.
12+
- `Ascon-XOF128`, Ascon-based eXtendible Output Function (XOF) where the output size of
13+
the hash of the message can be selected by the user.
14+
- `Ascon-CXOF128`, a customized XOF that allows users to specify a customization
15+
string and choose the output size of the message hash.

0 commit comments

Comments
 (0)