X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;ds=inline;f=keccak%2Fkeccak-stub.c;h=c8467460a9ff8ccac2168ec102ba47f8404788f2;hb=2ef97287a9ad083781a540bedf8e86fba17f9265;hp=da6caffbda38ea3c3dd08947199f13b2311ba544;hpb=628319e6c3018268ef1c307976a0e81e4dc549b8;p=avr-crypto-lib.git diff --git a/keccak/keccak-stub.c b/keccak/keccak-stub.c index da6caff..c846746 100644 --- a/keccak/keccak-stub.c +++ b/keccak/keccak-stub.c @@ -136,7 +136,7 @@ void keccak_lastBlock(keccak_ctx_t* ctx, const void* block, uint16_t length_b){ } #endif - +/* void keccak_ctx2hash(void* dest, uint16_t length_b, keccak_ctx_t* ctx){ while(length_b>=ctx->r){ memcpy(dest, ctx->a, ctx->bs); @@ -146,7 +146,8 @@ void keccak_ctx2hash(void* dest, uint16_t length_b, keccak_ctx_t* ctx){ } memcpy(dest, ctx->a, (length_b+7)/8); } - +*/ +/* void keccak224_ctx2hash(void* dest, keccak_ctx_t* ctx){ keccak_ctx2hash(dest, 224, ctx); } @@ -162,13 +163,14 @@ void keccak384_ctx2hash(void* dest, keccak_ctx_t* ctx){ void keccak512_ctx2hash(void* dest, keccak_ctx_t* ctx){ keccak_ctx2hash(dest, 512, ctx); } - +*/ /* 1. SHA3-224: ⌊Keccak[r = 1152, c = 448, d = 28]⌋224 2. SHA3-256: ⌊Keccak[r = 1088, c = 512, d = 32]⌋256 3. SHA3-384: ⌊Keccak[r = 832, c = 768, d = 48]⌋384 4. SHA3-512: ⌊Keccak[r = 576, c = 1024, d = 64]⌋512 */ +/* void keccak_init(uint16_t r, keccak_ctx_t* ctx){ memset(ctx->a, 0x00, 5 * 5 * 8); ctx->r = r; @@ -190,3 +192,5 @@ void keccak384_init(keccak_ctx_t* ctx){ void keccak512_init(keccak_ctx_t* ctx){ keccak_init( 576, ctx); } + +*/