sign method

  1. @override
SSHRsaSignature sign(
  1. Uint8List data
)
override

Implementation

@override
SSHRsaSignature sign(Uint8List data) {
  final signer = RSASigner(SHA256Digest(), '0609608648016503040201');

  signer.init(
    true,
    PrivateKeyParameter<RSAPrivateKey>(
      RSAPrivateKey(n, d, p, q),
    ),
  );

  return SSHRsaSignature(type, signer.generateSignature(data).bytes);
}