Re: Basic SHA3 support (cryptographic discussion)

2018-01-11 Thread Daniel Loebenberger
Hi, concerning the question who needs SHA3, we do not agree that SHA3 should be skipped as a standard. As cryptographers we sincerely believe that the SHA3 design is superior to the one of SHA256 also due to the process it was created. We believe that an efficient implementation will trigger incre

Re: Basic SHA3 support

2018-01-11 Thread Daniel Loebenberger
buf); +SHA3_256Init(&ctx); +SHA3_256Update(&ctx, (u_int8_t *)buf, n); +SHA3_256Final(results, &ctx); + +/* Print the digest as one long hex value */ +printf("0x"); +for (n = 0; n \*(Lt SHA3_256_DIGEST_LENGTH; n++) + printf("%02x", results[n]); +putchar('\en

Re: Basic SHA3 support

2018-01-10 Thread Daniel Loebenberger
"; +n = strlen(buf); +SHA3_256Init(&ctx); +SHA3_256Update(&ctx, (u_int8_t *)buf, n); +SHA3_256Final(results, &ctx); + +/* Print the digest as one long hex value */ +printf("0x"); +for (n = 0; n \*(Lt SHA3_256_DIGEST_LENGTH; n++) + printf("%02x", results[n]); +putchar(

Basic SHA3 support

2018-01-09 Thread Daniel Loebenberger
the reference code written by the Keccak Team (https://keccak.team/) which is available under public domain (CC0). We'd be happy to see this in OpenBSD and appreciate any comments. Best regards, Daniel, Stefan and Alexander -- Dr. Daniel Loebenberger Evaluation & Research g