x448SharedSecretB64 function

Future<String> x448SharedSecretB64(
  1. String myPrivB64,
  2. String peerPubB64
)

Implementation

Future<String> x448SharedSecretB64(String myPrivB64, String peerPubB64) async {
  final priv = Uint8List.fromList(base64Decode(myPrivB64));
  final pub = Uint8List.fromList(base64Decode(peerPubB64));
  final ss = X448.sharedSecret(privateKey: priv, peerPublicKey: pub);
  return base64Encode(ss);
}