moonbitstack/mooncrypt/spec does not have a README file
pub(open) trait Aead {
fn seal(Self, nonce~ : BytesView, plain~ : BytesView, aad~ : BytesView) -> Bytes
fn open(Self, nonce~ : BytesView, cipher~ : BytesView, aad~ : BytesView) -> Bytes raise Broken
}pub(open) trait Block {
fn block(Self) -> Int
fn encrypt(Self, BytesView) -> Bytes
fn decrypt(Self, BytesView) -> Bytes
}pub(open) trait Hash {
fn write(Self, BytesView) -> Unit
fn finish(Self) -> Bytes
fn reset(Self) -> Unit
fn size(Self) -> Int
fn block(Self) -> Int
}pub(open) trait Mac {
fn write(Self, BytesView) -> Unit
fn finish(Self) -> Bytes
fn size(Self) -> Int
}pub(open) trait Signer {
fn sign(Self, BytesView) -> Bytes
}pub(open) trait Verifier {
fn verify(Self, BytesView, BytesView) -> Bool
}fn eq(a : BytesView, b : BytesView) -> Boolfn wipe(buf : FixedArray[Byte]) -> UnitInstall
Download zipmooncrypt — cryptographic algorithms for MoonBit, one algorithm per package: SHA-1, SHA-2, MD5, HMAC, HKDF, PBKDF2, Ed25519, ECDSA P-256 and RSA PKCS#1 v1.5, on a small set of traits so a third algorithm drops in without touching the library.
Dependencies