Tinrelay::Crypto
Constants
BOX_PUBLIC_BYTES = 32
BOX_SECRET_BYTES = 32
KDF_PROFILE = "argon2id13-opslimit3-mem64m"
KEY_BYTES = 32
KEYRING_AD = "tinrelay-keyring-v1".to_slice
OWNER_KEY_AD = "tinrelay-owner-key-v1".to_slice
PWHASH_SALT_BYTES = 16
SEAL_OVERHEAD_BYTES = 48
SIGN_PUBLIC_BYTES = 32
SIGN_SECRET_BYTES = 64
SIGN_SEED_BYTES = 32
SIGNATURE_BYTES = 64
XCHACHA_NONCE_BYTES = 24
XCHACHA_TAG_BYTES = 16
Class methods
box_keypair
Sourcedecrypt_blob(ciphertext : Bytes, salt : Bytes, nonce : Bytes, passphrase : String, additional : Bytes) : Bytes
Sourceencrypt_blob(plaintext : Bytes, passphrase : String, additional : Bytes) : Tuple(Bytes, Bytes, Bytes)
Sourceinit
Sourcesigning_keypair
Source