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