diffieHellman abstract method

BuBytes diffieHellman({
  1. required List<int> privateKey,
  2. required List<int> peerPublic,
})

Computes the 32-byte shared secret from 32-byte privateKey and 32-byte peerPublic. Throws on invalid lengths or an all-zero (low-order) result.

Implementation

BuBytes diffieHellman({
  required List<int> privateKey,
  required List<int> peerPublic,
});