Do not use Renci.SSH in tests

This commit is contained in:
nicolas.dorier 2022-07-08 16:30:52 +09:00
parent 15e45ac4ec
commit 19be847624
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -1011,7 +1011,7 @@ namespace BTCPayServer.Tests
var actualSig = headers["BTCPay-Sig"].First();
var bytes = await request.Request.Body.ReadBytesAsync((int)headers.ContentLength.Value);
var expectedSig =
$"sha256={Encoders.Hex.EncodeData(new HMACSHA256(Encoding.UTF8.GetBytes("HelloWorld")).ComputeHash(bytes))}";
$"sha256={Encoders.Hex.EncodeData(NBitcoin.Crypto.Hashes.HMACSHA256(Encoding.UTF8.GetBytes("HelloWorld"), bytes))}";
Assert.Equal(expectedSig, actualSig);
request.Response.StatusCode = 200;
server.Done();