mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-10 15:03:22 +00:00
There is a lot of code duplicated in convenience methods in each hash implementation, and having a generic hash type makes implementing higher-level constructs such as HMAC significantly easier down the road.
24 lines
865 B
Markdown
24 lines
865 B
Markdown
# 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.
|
|
- 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. |