Laytan 164bb52212 crypto/hash: hash_bytes_to_buffer slice result to digest size před 6 měsíci
..
_aes 655fab7227 Add core/hyperthread count for Windows and Linux (#5216) před 7 měsíci
_blake2 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
_chacha20 45219f240e Rename `SIMD_IS_EMULATED` to capability-affirmative `HAS_HARDWARE_SIMD` před 7 měsíci
_edwards25519 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
_fiat 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
_sha3 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
aead 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
aegis c2786a6dd5 core/crypto/aegis: Initial import před 10 měsíci
aes 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
blake2b 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
blake2s 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
chacha20 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
chacha20poly1305 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
deoxysii 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
ed25519 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
hash 164bb52212 crypto/hash: hash_bytes_to_buffer slice result to digest size před 6 měsíci
hkdf 288312a812 core: improve package doc comments for the documentation generator před 1 rokem
hmac 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
kmac 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
legacy 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
pbkdf2 288312a812 core: improve package doc comments for the documentation generator před 1 rokem
poly1305 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
ristretto255 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
sha2 655fab7227 Add core/hyperthread count for Windows and Linux (#5216) před 7 měsíci
sha3 288312a812 core: improve package doc comments for the documentation generator před 1 rokem
shake 288312a812 core: improve package doc comments for the documentation generator před 1 rokem
siphash 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
sm3 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
tuplehash 288312a812 core: improve package doc comments for the documentation generator před 1 rokem
x25519 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
x448 2f301e46dc core/crypto: Switch to using `ensure` před 10 měsíci
README.md a43a5b053c core/crypto: Add more documentation about assumptions (NFC) před 1 rokem
crypto.odin c9c0b9ea7b core/crypto: Fix/add some documentation (NFC) před 1 rokem
rand_bsd.odin 19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. před 1 rokem
rand_darwin.odin e296d6fb90 Fix loads of indentation issues with mixing spaces and tabs před 1 rokem
rand_generic.odin e4892f1bb2 os/os2: wasi target support před 1 rokem
rand_js.odin a6eb64df6c core/crypto: Add a `HAS_RAND_BYTES` constant před 1 rokem
rand_linux.odin 3ff8952813 Replace `panic(fmt.tprintf(` antipattern with `fmt.panicf` před 1 rokem
rand_wasi.odin e4892f1bb2 os/os2: wasi target support před 1 rokem
rand_windows.odin 9f9abb8fb3 Use `union #shared_nil` for `os.Error` před 1 rokem

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.