v/vlib/x/crypto/ascon
blackshirt 56f20d1ff8
Some checks failed
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Sanitized CI / sanitize-undefined-clang (push) Waiting to run
Sanitized CI / sanitize-undefined-gcc (push) Waiting to run
Sanitized CI / tests-sanitize-address-clang (push) Waiting to run
Sanitized CI / sanitize-address-msvc (push) Waiting to run
Sanitized CI / sanitize-address-gcc (push) Waiting to run
Sanitized CI / sanitize-memory-clang (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
native backend CI / native-backend-ubuntu (push) Has been cancelled
native backend CI / native-backend-windows (push) Has been cancelled
Shy and PV CI / v-compiles-puzzle-vibes (push) Has been cancelled
wasm backend CI / wasm-backend (ubuntu-22.04) (push) Has been cancelled
wasm backend CI / wasm-backend (windows-2022) (push) Has been cancelled
x.crypto.ascon: small cleanups and optimization (#25284)
2025-09-11 23:36:11 +03:00
..
bench x.crypto.ascon: improve single-shot functions of ascon hashing variant; add benchmark (#25282) 2025-09-11 11:04:21 +03:00
examples
aead128.v
aead128_test.v x.crypto.ascon: improve single-shot functions of ascon hashing variant; add benchmark (#25282) 2025-09-11 11:04:21 +03:00
ascon.v x.crypto.ascon: small cleanups and optimization (#25284) 2025-09-11 23:36:11 +03:00
ascon_test.v
cxof_test.v
digest.v x.crypto.ascon: small cleanups and optimization (#25284) 2025-09-11 23:36:11 +03:00
hash.v x.crypto.ascon: improve single-shot functions of ascon hashing variant; add benchmark (#25282) 2025-09-11 11:04:21 +03:00
hash_test.v
README.md x.crypto.ascon: improve single-shot functions of ascon hashing variant; add benchmark (#25282) 2025-09-11 11:04:21 +03:00
util.v x.crypto.ascon: small cleanups and optimization (#25284) 2025-09-11 23:36:11 +03:00
xof.v x.crypto.ascon: improve single-shot functions of ascon hashing variant; add benchmark (#25282) 2025-09-11 11:04:21 +03:00
xof_test.v

ascon

ascon is an implementation of Ascon-Based Cryptography module implemented in pure V language. This module was mostly based on NIST Special Publication of 800 NIST SP 800-232 document. Its describes an Ascon-Based Lightweight Cryptography Standards for Constrained Devices thats provides Authenticated Encryption, Hash, and Extendable Output Functions. See the NIST.SP.800-232 Standard for more detail.

This module mostly implements all the features availables on the document. It currently implements:

  • Ascon-Hash256, Ascon-based hashing implementation that produces 256-bits output.
  • Ascon-XOF128, Ascon-based eXtendable Output Function (XOF) where the output size of the hash of the message can be selected by the user.
  • Ascon-CXOF128, a customized XOF that allows users to specify a customization string and choose the output size of the message hash.
  • Ascon-AEAD128, an Authenticated Encryption with Additional Data (AEAD) Scheme based on Ascon-family crypto.