1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-06-28 11:55:08 +03:00

spelling: keybytes

This commit is contained in:
Josh Soref 2018-02-28 04:03:45 +00:00
parent 0ce2120c42
commit 56193bd3e9

View File

@ -2084,7 +2084,7 @@ void TestSecMain(SECURE *sec)
UCHAR sign_cpu[512]; UCHAR sign_cpu[512];
UCHAR sign_sec[512]; UCHAR sign_sec[512];
K *pub = GetKFromX(cert); K *pub = GetKFromX(cert);
UINT keybtytes = (cert->bits)/8; UINT keybytes = (cert->bits)/8;
Print("Ok.\n"); Print("Ok.\n");
Print("Signing Data by CPU...\n"); Print("Signing Data by CPU...\n");
if (RsaSign(sign_cpu, test_str, StrLen(test_str), private_key) == false) if (RsaSign(sign_cpu, test_str, StrLen(test_str), private_key) == false)
@ -2095,7 +2095,7 @@ void TestSecMain(SECURE *sec)
{ {
Print("Ok.\n"); Print("Ok.\n");
Print("sign_cpu: "); Print("sign_cpu: ");
PrintBin(sign_cpu, keybtytes); PrintBin(sign_cpu, keybytes);
Print("Signing Data by %s..\n", sec->Dev->DeviceName); Print("Signing Data by %s..\n", sec->Dev->DeviceName);
if (SignSec(sec, "test_key", sign_sec, test_str, StrLen(test_str)) == false) if (SignSec(sec, "test_key", sign_sec, test_str, StrLen(test_str)) == false)
{ {
@ -2105,9 +2105,9 @@ void TestSecMain(SECURE *sec)
{ {
Print("Ok.\n"); Print("Ok.\n");
Print("sign_sec: "); Print("sign_sec: ");
PrintBin(sign_sec, keybtytes); PrintBin(sign_sec, keybytes);
Print("Compare..."); Print("Compare...");
if (Cmp(sign_sec, sign_cpu, keybtytes) == 0) if (Cmp(sign_sec, sign_cpu, keybytes) == 0)
{ {
Print("Ok.\n"); Print("Ok.\n");
Print("Verify..."); Print("Verify...");