TweetNaCl class

Available extensions

Constructors

TweetNaCl()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

crypto_box(Uint8List c, Uint8List m, int d, Uint8List n, Uint8List y, Uint8List x) → Uint8List
crypto_box_afternm(Uint8List c, Uint8List m, int d, Uint8List n, Uint8List k) → Uint8List
crypto_box_beforenm(Uint8List k, Uint8List y, Uint8List x) → Uint8List
crypto_box_keypair(Uint8List y, Uint8List x) → Uint8List
crypto_box_open(Uint8List m, Uint8List c, int d, Uint8List n, Uint8List y, Uint8List x) → Uint8List
crypto_box_open_afternm(Uint8List m, Uint8List c, int d, Uint8List n, Uint8List k) → Uint8List
crypto_core_hsalsa20(Uint8List out, Uint8List input, Uint8List k, Uint8List c) → Uint8List
crypto_core_salsa20(Uint8List out, Uint8List input, Uint8List k, Uint8List c) → int
crypto_hash(Uint8List out, Uint8List m) → int
crypto_hashblocks_hl(Uint32List iv, Uint8List m, int moff, int n) → void
Though the maximum SHA-512 message length is 2^128, we set it to the maximum 2^53-1 for javascript compatibility.
crypto_onetimeauth(Uint8List out, Uint8List m, int n, Uint8List k) → int
crypto_onetimeauth_verify(Uint8List h, Uint8List m, Uint8List k) → int
crypto_scalarmult(Uint8List q, Uint8List n, Uint8List p) → Uint8List
crypto_scalarmult_base(Uint8List q, Uint8List n) → Uint8List
crypto_secretbox(Uint8List c, Uint8List m, int d, Uint8List n, Uint8List k) → Uint8List
crypto_secretbox_open(Uint8List m, Uint8List c, int d, Uint8List n, Uint8List k) → Uint8List
crypto_sign(Uint8List sm, int dummy, Uint8List m, int moff, int n, Uint8List sk, {bool extended = false}) → int
The crypto_sign interface expecting either
crypto_sign_keypair(Uint8List pk, Uint8List sk, Uint8List seed) → int
The crypto_sign_keypair function randomly generates a secret key and a corresponding public key. It puts the secret key into sk and public key into pk. It returns 0 on success.
crypto_sign_open(Uint8List m, int dummy, Uint8List sm, int smoff, int n, Uint8List pk) → int
crypto_stream(Uint8List c, int cpos, int d, Uint8List n, Uint8List k) → int
crypto_stream_salsa20(Uint8List c, int cpos, int b, Uint8List n, Uint8List k) → int
crypto_stream_salsa20_xor(Uint8List c, int cpos, Uint8List m, int mpos, int b, Uint8List n, Uint8List k, [int ic = 0]) → int
crypto_stream_xor(Uint8List c, int cpos, Uint8List m, int mpos, int d, Uint8List n, Uint8List k) → int
crypto_verify_16(Uint8List x, Uint8List y) → int
crypto_verify_32(Uint8List x, Uint8List y) → int
randombytes(int len) → Uint8List

Constants

boxzerobytesLength → const int
keyLength → const int
macBytes → const int
nonceLength → const int
overheadLength → const int
publicKeyLength → const int
secretKeyLength → const int
seedSize → const int
sharedKeyLength → const int
signatureLength → const int
signingKeyLength → const int
zerobytesLength → const int