sign function
Sign some binary data with the provided Private Key
Implementation
String sign({required RSAPrivateKey privateKey, required List<int> data}) {
final signature = privateKey.signSsaPkcs1v15(data);
return new Signature.fromBytes(
signature: signature, data: data, keySize: privateKey.bitSize)
.serialize();
}