You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just including the lib raises the following error:
There was a problem expanding macro 'macro_140065154995856'
Code in lib/sodium/src/sodium/cipher/aead/chalsa.cr:88:3
88 | {% for key, val in {"XChaCha20Poly1305Ietf" => "_xchacha20poly1305_ietf"} %}
^
Called macro defined in lib/sodium/src/sodium/cipher/aead/chalsa.cr:88:3
88 | {% for key, val in {"XChaCha20Poly1305Ietf" => "_xchacha20poly1305_ietf"} %}
Which expanded to:
> 7 | #
> 8 | # WARNING: Not validated against test vectors. You should probably write some before using this class.
> 9 | class XChaCha20Poly1305Ietf < Chalsa
^
Error: abstract `def Sodium::Cipher::Aead::Chalsa#encrypt_detached(src : Bytes, dst : Bytes | ::Nil = nil, *, nonce : Sodium::Nonce | ::Nil = nil, mac : Bytes | ::Nil = nil, additional : String | Bytes | Nil = nil)` must be implemented by Sodium::Cipher::Aead::XChaCha20Poly1305Ietf
The text was updated successfully, but these errors were encountered:
Latest release version of sodium.cr
is broken in Crystal >= v1.2.2.
didactic-drunk/sodium.cr#16
The fixed version is not released, yet,
so for the time being we pin to a known
good commit on master.
Just including the lib raises the following error:
The text was updated successfully, but these errors were encountered: