Box class

Constructors

Box(Uint8List _theirPublicKey, Uint8List _mySecretKey)
Box.nonce(Uint8List _theirPublicKey, Uint8List _mySecretKey, int _nonce)

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

after(Uint8List message, int moff, int mlen) Uint8List
after_len(Uint8List message, int moff, int mlen, Uint8List theNonce) Uint8List
before() Uint8List
box(Uint8List message) Uint8List
box_len(Uint8List message, int moff, int mlen) Uint8List
box_nonce(Uint8List message, Uint8List theNonce) Uint8List
box_nonce_len(Uint8List message, int moff, int mlen, Uint8List theNonce) Uint8List
box_nonce_off(Uint8List message, int moff, Uint8List theNonce) Uint8List
box_off(Uint8List message, int moff) Uint8List
getNonce() int
incrNonce() int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(Uint8List box) Uint8List
open_after(Uint8List box, int boxoff, int boxlen) Uint8List
open_after_len(Uint8List box, int boxoff, int boxlen, Uint8List theNonce) Uint8List
open_len(Uint8List box, int boxoff, int boxlen) Uint8List
open_nonce(Uint8List box, Uint8List theNonce) Uint8List
open_nonce_len(Uint8List box, int boxoff, int boxlen, Uint8List theNonce) Uint8List
open_nonce_off(Uint8List box, int boxoff, Uint8List theNonce) Uint8List
open_off(Uint8List box, int boxoff) Uint8List
setNonce(int nonce) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

boxzerobytesLength int
final
nonceLength int
final
overheadLength int
final
publicKeyLength int
final
secretKeyLength int
final
sharedKeyLength int
final
zerobytesLength int
final

Static Methods

keyPair() KeyPair
keyPair_fromSecretKey(Uint8List secretKey) KeyPair