X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=cscipher%2Fcscipher_small.c;h=220bcc9247fca9b62f2849b3fa4d79ed9977b722;hb=d1181933dc28db92d787cf5604e2fc96ab0d8f9f;hp=9cec6e8a4b3ab132823a851dc6b806a791d5cf1b;hpb=0542221a3e793e4455e84b271b07aa0959d5dfb3;p=avr-crypto-lib.git diff --git a/cscipher/cscipher_small.c b/cscipher/cscipher_small.c index 9cec6e8..220bcc9 100644 --- a/cscipher/cscipher_small.c +++ b/cscipher/cscipher_small.c @@ -146,9 +146,9 @@ void cscipher_dec(void* buffer, const cscipher_ctx_t* ctx){ }while(i--); } -void cscipher_init(void* key, cscipher_ctx_t* ctx){ +void cscipher_init(const void* key, cscipher_ctx_t* ctx){ uint8_t tmp_key[16], tmp[8]; - uint8_t i,j,k,t; + uint8_t i,j,k,t=0; memcpy(tmp_key, key, 16); for(i=0; i<9; ++i){ #if DEBUG