salsaBoxBeforenm abstract method

BuBytes salsaBoxBeforenm({
  1. required List<int> peerPublicKey,
  2. required List<int> secretKey,
})

NaCl crypto_box_beforenm: derives the 32-byte transport key from 32-byte peerPublicKey and 32-byte secretKey. Throws on invalid lengths; throws CryptoException on a zero shared secret.

Implementation

BuBytes salsaBoxBeforenm({
  required List<int> peerPublicKey,
  required List<int> secretKey,
});