precalculate abstract method

PrecalculatedBox precalculate({
  1. required Uint8List publicKey,
  2. required SecureKey secretKey,
})

Provides crypto_box_beforenm.

To work with the precalculated shared key, use the methods defined on the returned PrecalculatedBox.

See https://libsodium.gitbook.io/doc/public-key_cryptography/authenticated_encryption#precalculation-interface

Implementation

PrecalculatedBox precalculate({
  required Uint8List publicKey,
  required SecureKey secretKey,
});