|
|
@@ -209,7 +209,7 @@ begin
|
|
|
engine.Init(False, privParams);
|
|
|
decrypted := engine.ProcessBlock(encrypted, 0, System.Length(encrypted));
|
|
|
|
|
|
- CheckTrue(TArrayUtilities.AreEqual<Byte>(input, decrypted), 'RSA round-trip failed');
|
|
|
+ CheckTrue(AreEqual(input, decrypted), 'RSA round-trip failed');
|
|
|
end;
|
|
|
|
|
|
procedure TTestRSA.DoTestPkcs1Encoding;
|
|
|
@@ -235,7 +235,7 @@ begin
|
|
|
engine.Init(False, privParams);
|
|
|
decrypted := engine.ProcessBlock(encrypted, 0, System.Length(encrypted));
|
|
|
|
|
|
- CheckTrue(TArrayUtilities.AreEqual<Byte>(input, decrypted), 'PKCS1 round-trip failed');
|
|
|
+ CheckTrue(AreEqual(input, decrypted), 'PKCS1 round-trip failed');
|
|
|
end;
|
|
|
|
|
|
procedure TTestRSA.DoTestOaepEncoding;
|
|
|
@@ -261,7 +261,7 @@ begin
|
|
|
engine.Init(False, privParams);
|
|
|
decrypted := engine.ProcessBlock(encrypted, 0, System.Length(encrypted));
|
|
|
|
|
|
- CheckTrue(TArrayUtilities.AreEqual<Byte>(input, decrypted), 'OAEP round-trip failed');
|
|
|
+ CheckTrue(AreEqual(input, decrypted), 'OAEP round-trip failed');
|
|
|
end;
|
|
|
|
|
|
procedure TTestRSA.DoTestKeyGeneration;
|
|
|
@@ -302,7 +302,7 @@ begin
|
|
|
engine.Init(False, privKey);
|
|
|
decrypted := engine.ProcessBlock(encrypted, 0, System.Length(encrypted));
|
|
|
|
|
|
- CheckTrue(TArrayUtilities.AreEqual<Byte>(input, decrypted), 'Generated key round-trip failed');
|
|
|
+ CheckTrue(AreEqual(input, decrypted), 'Generated key round-trip failed');
|
|
|
end;
|
|
|
|
|
|
procedure TTestRSA.DoTestRsaSignature;
|