From 4af904d6f74707f300e5f7e8488c68eca93d32c2 Mon Sep 17 00:00:00 2001 From: PioDer Date: Sun, 22 Jan 2017 21:33:43 +0100 Subject: [PATCH] refactoring --- DergunPiotr-WaskoDominik/projekt/genSha1.cpp | 4 ++-- DergunPiotr-WaskoDominik/projekt/sha1breaker.cpp | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DergunPiotr-WaskoDominik/projekt/genSha1.cpp b/DergunPiotr-WaskoDominik/projekt/genSha1.cpp index 670187a..b6d3074 100644 --- a/DergunPiotr-WaskoDominik/projekt/genSha1.cpp +++ b/DergunPiotr-WaskoDominik/projekt/genSha1.cpp @@ -13,8 +13,8 @@ void sha1(unsigned char* message,unsigned short messageLength,char *result){ //////przygotowanie bloku int size = 64; //rozmiar jednego bloku musi być 512bit - unsigned char block[size] = {0}; - + unsigned char block[size];// = {0}; + memset(block, 0, size * sizeof(unsigned char)); for(int i = 0;i