- AeadKey and AeadNonce are opaque types. A key given where a nonce is wanted is a type error: for AEGIS-256 both are 32 bytes, and as arrays a swap would store the key in clear. Both print as #<AeadKey> and #<AeadNonce>. - A nonce knows its cipher, so aead-encrypt and aead-decrypt take none. They and the nonce functions move to (bjosodium raw). (bjosodium core) keeps aead-seal and aead-unseal, which make the nonce. - Every Argon2id function takes an Argon2idCost. There are no defaults: a key made with a default that a later version changed would not be made again. argon2id-interactive, -moderate and -sensitive are libsodium's three costs. - argon2id-derive-key returns an AeadKey of 32 bytes. #:length is gone. - Passwords are normalized to Unicode NFC before Argon2id. - random-bytes. make-aead-key takes no cipher: both keys are 32 bytes. - (bjosodium impl) holds the code; core and raw are facades of it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
791 B
Text
20 lines
791 B
Text
(package
|
|
(name (bjosodium))
|
|
(version "0.2.0")
|
|
(description "libsodium for Bjolang: AEGIS-256 and XChaCha20-Poly1305 encryption, and Argon2id password hashing.")
|
|
(license "MPL-2.0")
|
|
|
|
;; LibSodium.Net is the .NET binding. The libsodium package has the native
|
|
;; library, built for each platform, Android and iOS too, so nothing has to
|
|
;; be installed.
|
|
;;
|
|
;; Both versions are fixed. LibSodium.Net raises when it starts if the
|
|
;; native library is not the libsodium 1.0.x it was built for (1.0.20 for
|
|
;; 0.16.0-alpha). 1.0.20.2 is the first build of 1.0.20 with Android
|
|
;; libraries in it.
|
|
(packages
|
|
(nuget (id "LibSodium.Net") (version "[0.16.0-alpha]"))
|
|
(nuget (id "libsodium") (version "[1.0.20.2, 1.0.21)")))
|
|
|
|
;; A library: there is no src/main.bjo.
|
|
)
|