X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=keccak%2Fkeccak-stub.c;fp=keccak%2Fkeccak-stub.c;h=de93cf81eea23ed1f68631ef7682986d8606a172;hp=da6caffbda38ea3c3dd08947199f13b2311ba544;hb=5b6783aa504630809dc982fd92e5a09f6f0d0e63;hpb=cd50f65c371296cc88b46f45a609713f96644662 diff --git a/keccak/keccak-stub.c b/keccak/keccak-stub.c index da6caff..de93cf8 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,7 +163,7 @@ 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