shared/nips/nip44/utils
library
Functions
-
calcPaddedLen(int unpaddedLen)
→ int
-
-
calculateMac(Uint8List key, Uint8List nonce, Uint8List ciphertext)
→ Uint8List
-
-
checkPublicKey(String publicKey)
→ String
-
-
constructPayload(Uint8List nonce, Uint8List ciphertext, Uint8List mac)
→ String
-
-
decryptChaCha20(Uint8List key, Uint8List nonce, Uint8List ciphertext)
→ Future<Uint8List>
-
-
deriveMessageKeys(Uint8List conversationKey, Uint8List nonce)
→ Map<String, Uint8List>
-
-
encryptChaCha20(Uint8List key, Uint8List nonce, Uint8List data)
→ Future<Uint8List>
-
-
hkdfExpand({required Uint8List prk, required Uint8List info, required int length})
→ Uint8List
-
-
-
pad(Uint8List plaintext)
→ Uint8List
-
-
parsePayload(String payload)
→ Map<String, dynamic>
-
-
secureRandomBytes(int length)
→ Uint8List
-
-
unpad(Uint8List padded)
→ Uint8List
-
-
verifyMac(Uint8List hmacKey, Uint8List nonce, Uint8List ciphertext, Uint8List mac)
→ void
-