Yawning Angel cf7d705c1f core/crypto/_sha3: Fix edge case in cSHAKE bytepad 10 months ago
..
_aes 19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 11 months ago
_blake2 00ab3beed9 core:crypto/hash: Add a generic higher level hash interface 1 year ago
_chacha20 5a6f761535 Add missing package qualifier to Context 11 months ago
_edwards25519 4b71c47fd5 Check for unneeded `transmute` with `-vet-cast` 1 year ago
_fiat 4b71c47fd5 Check for unneeded `transmute` with `-vet-cast` 1 year ago
_sha3 cf7d705c1f core/crypto/_sha3: Fix edge case in cSHAKE bytepad 10 months ago
aead 288312a812 core: improve package doc comments for the documentation generator 11 months ago
aes 19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 11 months ago
blake2b 288312a812 core: improve package doc comments for the documentation generator 11 months ago
blake2s 288312a812 core: improve package doc comments for the documentation generator 11 months ago
chacha20 288312a812 core: improve package doc comments for the documentation generator 11 months ago
chacha20poly1305 288312a812 core: improve package doc comments for the documentation generator 11 months ago
ed25519 288312a812 core: improve package doc comments for the documentation generator 11 months ago
hash 68960e7d0a Use `#+` tags 11 months ago
hkdf 288312a812 core: improve package doc comments for the documentation generator 11 months ago
hmac 288312a812 core: improve package doc comments for the documentation generator 11 months ago
kmac 288312a812 core: improve package doc comments for the documentation generator 11 months ago
legacy 288312a812 core: improve package doc comments for the documentation generator 11 months ago
pbkdf2 288312a812 core: improve package doc comments for the documentation generator 11 months ago
poly1305 288312a812 core: improve package doc comments for the documentation generator 11 months ago
ristretto255 288312a812 core: improve package doc comments for the documentation generator 11 months ago
sha2 288312a812 core: improve package doc comments for the documentation generator 11 months ago
sha3 288312a812 core: improve package doc comments for the documentation generator 11 months ago
shake 288312a812 core: improve package doc comments for the documentation generator 11 months ago
siphash 288312a812 core: improve package doc comments for the documentation generator 11 months ago
sm3 288312a812 core: improve package doc comments for the documentation generator 11 months ago
tuplehash 288312a812 core: improve package doc comments for the documentation generator 11 months ago
x25519 288312a812 core: improve package doc comments for the documentation generator 11 months ago
README.md a43a5b053c core/crypto: Add more documentation about assumptions (NFC) 1 year ago
crypto.odin c9c0b9ea7b core/crypto: Fix/add some documentation (NFC) 1 year ago
rand_bsd.odin 19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 11 months ago
rand_darwin.odin e296d6fb90 Fix loads of indentation issues with mixing spaces and tabs 1 year ago
rand_generic.odin 19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 11 months ago
rand_js.odin a6eb64df6c core/crypto: Add a `HAS_RAND_BYTES` constant 1 year ago
rand_linux.odin 3ff8952813 Replace `panic(fmt.tprintf(` antipattern with `fmt.panicf` 1 year ago
rand_windows.odin 9f9abb8fb3 Use `union #shared_nil` for `os.Error` 1 year ago

README.md

crypto

A cryptography library for the Odin language.

Supported

This package offers various algorithms implemented in Odin, along with useful helpers such as access to the system entropy source, and a constant-time byte comparison.

Implementation considerations

  • The crypto packages are not thread-safe.
  • Best-effort is make to mitigate timing side-channels on reasonable architectures. Architectures that are known to be unreasonable include but are not limited to i386, i486, and WebAssembly.
  • Implementations assume a 64-bit architecture (64-bit integer arithmetic is fast, and includes add-with-carry, sub-with-borrow, and full-result multiply).
  • Hardware sidechannels are explicitly out of scope for this package. Notable examples include but are not limited to:
    • Power/RF side-channels etc.
    • Fault injection attacks etc.
    • Hardware vulnerabilities ("apply mitigations or buy a new CPU").
  • The packages attempt to santize sensitive data, however this is, and will remain a "best-effort" implementation decision. As Thomas Pornin puts it "In general, such memory cleansing is a fool's quest."
  • All of these packages have not received independent third party review.

License

This library is made available under the BSD-3 license.