TZH-nh/moonwire/crypto does not have a README file
pub struct Blake2s {
// private fields
}fn blake2s_256(data : BytesView) -> Bytesfn blake2s_256_pair(a : BytesView, b : BytesView) -> Bytesfn chacha20_poly1305_open(key : BytesView, nonce12 : BytesView, ciphertext_and_tag : BytesView, aad : BytesView) -> Bytes raise CryptoErrorfn chacha20_poly1305_seal(key : BytesView, nonce12 : BytesView, plaintext : BytesView, aad : BytesView) -> Bytes raise CryptoErrorfn chacha20_xor(key : BytesView, counter : UInt, nonce12 : BytesView, input : BytesView) -> Bytes raise CryptoErrorfn concat2(a : BytesView, b : BytesView) -> Bytesfn ct_eq(a : BytesView, b : BytesView) -> Boolfn ct_is_zero(data : BytesView) -> Boolfn hmac_blake2s(key : BytesView, data : BytesView) -> Bytesfn kdf1(key : BytesView, input : BytesView) -> Bytesfn kdf2(key : BytesView, input : BytesView) -> (Bytes, Bytes)fn kdf3(key : BytesView, input : BytesView) -> (Bytes, Bytes, Bytes)fn read_u32_le(data : BytesView, offset : Int) -> UIntfn read_u64_le(data : BytesView, offset : Int) -> UInt64fn to_base64(data : BytesView) -> Stringfn wg_aead_open(key : BytesView, counter : UInt64, ciphertext_and_tag : BytesView, aad : BytesView) -> Bytes raise CryptoErrorfn wg_aead_seal(key : BytesView, counter : UInt64, plaintext : BytesView, aad : BytesView) -> Bytes raise CryptoErrorfn write_u32_le(out : FixedArray[Byte], offset : Int, v : UInt) -> Unitfn write_u64_le(out : FixedArray[Byte], offset : Int, v : UInt64) -> Unitfn xchacha20_poly1305_open(key : BytesView, nonce24 : BytesView, ciphertext_and_tag : BytesView, aad : BytesView) -> Bytes raise CryptoErrorfn xchacha20_poly1305_seal(key : BytesView, nonce24 : BytesView, plaintext : BytesView, aad : BytesView) -> Bytes raise CryptoErrorInstall
Download zipUserspace Sans-IO WireGuard protocol engine, configuration auditor, and PCAP packet decryptor in pure MoonBit.