x25519 0.0.1 copy "x25519: ^0.0.1" to clipboard
x25519: ^0.0.1 copied to clipboard

outdated

Dart port of curve25519

example/main.dart

import 'package:hex/hex.dart';
import 'package:x25519/x25519.dart';

void useX25519() {
  const expectedHex =
      '89161fde887b2b53de549af483940106ecc114d6982daa98256de23bdf77661a';
  var x = List<int>.filled(32, 0);
  x[0] = 1;

  for (var i = 0; i < 200; i++) {
    x = X25519(x, basePoint);
  }
  assert(HEX.encode(x) == expectedHex);
}
2
likes
0
pub points
80%
popularity

Publisher

unverified uploader

Dart port of curve25519

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

collection

More

Packages that depend on x25519