calculateServerSignature method

Future<List<int>> calculateServerSignature(
  1. String authMessage,
  2. List<int> serverKey
)

Implementation

Future<List<int>> calculateServerSignature(
  String authMessage,
  List<int> serverKey,
) async {
  return (await Hmac(_hash).calculateMac(
    utf8.encode(authMessage),
    secretKey: SecretKey(serverKey),
  ))
      .bytes;
}