Skip to content

Commit

Permalink
Fix SHA1 in VerificaSOD
Browse files Browse the repository at this point in the history
  • Loading branch information
ugochirico committed Mar 18, 2020
1 parent 8133ada commit 762f730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CSP/CSP/abilitaCIE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ extern "C" {

hashSet[0xa3] = sha256.Digest(certCIEData);

//ias.VerificaSOD(SOD, hashSet);
ias.VerificaSOD(SOD, hashSet);

ByteArray pinBa((uint8_t*)szPIN, 4);

Expand Down Expand Up @@ -636,7 +636,7 @@ DWORD WINAPI _abilitaCIE(

if (progWin != nullptr)
SendMessage(progWin, WM_COMMAND, 100 + 5, (LPARAM)"Verifica SOD");
//ias->VerificaSOD(SOD, hashSet);
ias->VerificaSOD(SOD, hashSet);

if (progWin != nullptr)
SendMessage(progWin, WM_COMMAND, 100 + 6, (LPARAM)"Cifratura dati");
Expand Down
2 changes: 1 addition & 1 deletion CSP/Crypto/SHA1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ByteDynArray CSHA1::Digest(ByteArray data)
{
Init();
Update(data);
ByteArray resp;
ByteDynArray resp(SHA_DIGEST_LENGTH);
Final(resp);
return resp;
}

0 comments on commit 762f730

Please sign in to comment.