Questions tagged [sha-3]

SHA-3 is a family of cryptographic hash functions, a successor to SHA-2.

SHA-3 is a family of cryptographic hash functions, intended to replace and .

SHA-3 was chosen by NIST in a competition started in November 2007. The winner was declared to be the Keccak family in October 2012. The other finalists in the competition were BLAKE, Grøstl, JH and Skein .

As of October 2012, SHA-3 has not yet been formally codified. It is intended that the next version of FIPS PUB 180 will specify Keccak functions with digest sizes 224, 256, 384, 512.

79 questions
4
votes
1 answer

Simple way to understanding implementation of SHA-3 Keccak hashing algorithm

I have been looking for references about the algorithm keccak on the internet, but none make me understand. Here are some links that I…
Tomero Indonesia
  • 1,685
  • 2
  • 16
  • 17
4
votes
1 answer

SHA3 status and PBKDF2-HMAC-SHA3 test vectors

Since SHA-3 seems to be an already known function (Keccak as the finalist of NIST hash function competition) I have several questions related to this topic: NIST site says that NIST is closed due to a lapse in government funding. Is there any…
Oleg Stepura
  • 95
  • 2
  • 11
3
votes
2 answers

Is truncating sha2/sha3 to 16 bytes worse than using crc32 which itself gives 16 bytes to begin with?

I am using AES128 in CBC mode, and I need a 16-byte key, so I was wondering if using sha2 or sha3 and then truncating it to 16 bytes (take first 16 bytes from the left) would make sha2/sha3 weaker than crc32 which gives me 16 bytes out of the box.
NS studios
  • 149
  • 14
3
votes
0 answers

Generating HMAC SHA3-512 in netcore2.1

I've already found some ways how to generate SHA3 in netcore 2.1. (e.g. SHA3.Net). Is there a way how to generate HMAC using SHA3-512 hash function. AFAIK it should be only some combination of SHA3(secret + content), but I can't find any working…
Tomino
  • 5,969
  • 6
  • 38
  • 50
3
votes
2 answers

CryptoJS Sha3 and PHP-SHA3

I'm trying to get the same result from using cryptojs sha3 method and the php-sha3 library, but the results just dont' seem to match. An example: For CryptoJS var hash = CryptoJS.SHA3("qwerty", { outputLength: 224 }).toString(); gives me…
Ting Sun
  • 306
  • 2
  • 10
3
votes
0 answers

Browserify cannot find installed module sha3

I am working on ethereumjs-libpackage installed from npm which has a dependency on sha3 module. However browserify is not able to pick it up from the dependencies. I installed sha3 manually and wrote the simple code shown below, still browserify…
bawejakunal
  • 1,678
  • 2
  • 25
  • 54
3
votes
2 answers

How decrypt keccak algorithm

I am preparing a presentation about Keccak (http://keccak.noekeon.org/). In that presentation, I would like to encrypt a plain-text – which brings up the following questions: What is the exact role of the padding function (how do we obtain a cube…
user2404953
  • 41
  • 1
  • 1
  • 2
3
votes
3 answers

Password hashing: Keccak or not

The winner of SHA-3 hashing algorithm contest has been chosen. The winner's algorithm is Keccak. I use Blowfish and really like it, but Keccak is said to be better. Is it worth to use it for storing user's passwords on my website? If yes, are there…
TheJSB
  • 151
  • 1
  • 9
3
votes
2 answers

Have Keccak (SHA-3) example hashes (test vectors) been made available?

I'm interested in implementing Keccak (SHA-3) and would like a set of input/expected output pairs to test against. Have any official test vectors been released? I recall having some for the other SHA routines and they were very helpful.
fbrereto
  • 35,429
  • 19
  • 126
  • 178
2
votes
1 answer

How to find the original value from the keccak 256 hash value in python?

I'm using following code to get the keccak 256 hash: import sha3 k = sha3.keccak_256() k.update(b'age') print (k.hexdigest()) How do I convert the keccak 256 hash value back to original string? (I'm ok with using any library as needed).
aste123
  • 1,223
  • 4
  • 20
  • 40
2
votes
1 answer

SHA-3: Implementation of Theta function according to FIPS-202 not behaving as expected

I'm implementing SHA-3 following the official FIPS-202 document in Verilog. My state is represented by a one-dimensional register and I use a macro function to calculate the corresponding state index from the (x,y,z) coordinates in the…
Johannes
  • 1,478
  • 1
  • 12
  • 28
2
votes
1 answer

CubeHash. Pure PHP implementation. Multibyte block issue (CubeHash160+16/32+160-256)

I'm newbie in cryptography. I'm trying to implement CubeHash hashing function on pure PHP. I've ported some JS-version (32-bit) to PHP (64-bit), but I'm not able to implement CubeHash with param b when it is grater than 1 (block size is grater than…
adiv
  • 68
  • 1
  • 6
2
votes
1 answer

SHA3-512 to Generate Keys in Java

Is it possible to use SHA3-512(a subset of keccak available in Java9) to generate keys in Java? I have searched through a lot of noise and documentation to try to figure this out. Currently it seems SHA3-512 is available as a hash for MessageDigest…
devssh
  • 1,184
  • 12
  • 28
2
votes
2 answers

How to generate sh3_keccak256 for integer values as generated by Solidity?

I am trying to generate the same sha3.keccak_256 of integer values in Python that is generated by Solidity. Here is what Solidity does: pragma solidity ^0.4.18; contract GenerateHash{ function generateHashVal(int id, int date) pure public…
Ankit Sinha
  • 33
  • 1
  • 5
2
votes
2 answers

How exactly were all the round constants for SHA-3 generated?

I can't seem to obtain the exact algorithm that would generate all the round constants for SHA-3. The description can be found here: crypto.stackexchange.com/questions/6444. These values can be found at…
lyrically wicked
  • 1,185
  • 12
  • 26