Questions tagged [sha-3]
SHA-3, also known as Keccak, is a cryptographic hash function standardized by NIST as a new alternative to the SHA-2 hash function family.
168
questions
3
votes
1
answer
369
views
SHA3-256 vs SHAKE256_256 in XMSS and SPHINCS
By SHAKE256_256, I mean taking first 256 bits of the output of SHAKE256
i.e. SHAKE256_256(M) = SHAKE256(M,256)
What is the motivation of choosing SHAKE256_256 ...
2
votes
1
answer
109
views
SHAKE256 XOF: Absorb incrementally vs all at once
I'm diving into SHAKE256's XOF (Extendable Output Function), and I've got a bit of a head-scratcher.
I'm wondering if there's any difference between incrementally absorbing bytes and absorbing ...
1
vote
1
answer
603
views
What does the 256 in SHA3-256 and SHAKE256 refer to?
I am simply wondering what the bit-length in the algorithm variant in the table below refers to? For the hash functions I assume that this refers to the ouput length in bits. For instance for SHA3-256 ...
1
vote
1
answer
88
views
Does information about known input&output for SHA3-256 help to find KECCAK-256 input for the same output?
I received two distinct outcomes from a single input using SHA3-256 and KECCAK-256:
input --> sha3-256 --> output1
input --> keccak-256 --> output2
...
0
votes
1
answer
41
views
Outside of use in microchips and FPGAs does SHA-3 have a lookup table? [closed]
Is SHA-3 normally used with a LUT or hash table?
0
votes
2
answers
238
views
Is sha3 a one-way funtion
If i store sensitive stuff (e.g passwords, salted passwords, Internet protacel adresss(so i know its not tamperd with), private keys(the keys are using a portion of the key on multiple disks in ...
2
votes
1
answer
93
views
How do the c-bits (capacity bits) make the sponge construction better?
I know that the message never directly changes those last c bits of the internal state (as seen in the image). And I also know that the capacity bits make the sponge construction resistant against ...
3
votes
1
answer
142
views
Is SHAKE hash function seekable when using it as a stream cipher?
I searched a lot for this information in search engines as well as taking a look in the SHAKE reference implementation.
If I decide to use SHAKE as a stream cipher, can I access a specific part of the ...
4
votes
1
answer
374
views
SHA2 vs SHA3 popularity
Does anybody know or can point me to a source about SHA2 vs SHA3 usage statistics.
SHA3 is newer and is claimed to be more secure but ... is it more widely used in real life deployments?
3
votes
2
answers
398
views
Is a simple KMAC-128 or KMAC-256 hash secure as a KDF?
Context
I am trying to build a simple protocol for key derivation. I want to use SHA-3 family hash functions, which (as far as I understand) should not be combined with HMAC because their security ...
1
vote
1
answer
124
views
Should the cSHAKE customization string ever be attacker-controlled?
On first glance, the optional customization string for cSHAKE resembles the optional salt input to HKDF-Extract. Indeed, the Noise Protocol Framework initially uses a protocol identifier string as its ...
0
votes
1
answer
369
views
Keccak Capacity bits Parameter
I am learning Keccak Hash Algorithm and I am a little bit confused about the Capacity bits parameter. I am trying to understand how we can set the capacity parameters while implementing Keccak in ...
2
votes
1
answer
274
views
Create a control hash string from different sources, is there a difference, advantage or disadvantage in comparison when using this ways?
I wanna create from several inputs/sources should be formed into one hash value for controlling of different thinks later.
Example:
String + File
String + String
File + File
String + File + String
...
3
votes
1
answer
414
views
What's the problem with ECDSA and SHA-3?
To quote Ilari on the CFRG mailing list:
e.g. the vile mess that is ECDSA with SHA-3
I have some ideas what he might mean but I couldn't find the discussion so what is that mess?
1
vote
0
answers
167
views
Is ChaCha20 + HMAC(SHA3) output indistinguishable from randomness?
I was wondering, if the output of following type of ChaCha + HMAC scheme is indistinguishable from randomness:
...
0
votes
1
answer
91
views
Is this possible?
So I've been working on a project that aims to allow online distribution of one-time-pads securely. I understand that a pad cannot be reused and must be truly random, and that if it is compromised, ...
-3
votes
1
answer
299
views
What's the deal with Belgian cryptographers? [closed]
Some of the most widely-used/advanced cryptography products these days - AES and SHA3 - were invented by Belgians. It seems that fact is hardly a coincidence. Since I'm a complete layman, I can make ...
0
votes
1
answer
717
views
Are RSA-SHA256 signatures prone to length extension attacks?
I need to sign a message using a private key and verify the message with a public key, while making sure the message hasn’t been tampered.
I know that SHA-256 itself is prone to length-extension ...
1
vote
2
answers
358
views
Why is the output size exactly half the capacity for sha-3?
For the SHA-3 family of hash functions, the output size $d$ is always chosen as $d=c/2$, i.e. exactly half the capcity. What is the rational for this?
Naively, I think that $d=c$ would make more sense ...
1
vote
2
answers
84
views
If secret S is not known to an attacker, while constant K and SHA3(K + SHA3(S)) are known to an attacker, is S discoverable?
I'm trying to understand how secure S is from an attacker. Let's say in an instance where they have enormous hashing power available to them, as would be the case where they own cryptocurrency mining ...
1
vote
1
answer
68
views
What input bits are revealed when revealing the first 256 bits of the output Keccak-f permutation?
Given the Keccak-f[1600] permutation I am interested in the following property: What bits in the output are influenced by what bits of the input? That is, if I change for example say the second bit of ...
0
votes
1
answer
303
views
Selecting parameters for PBKDF2 using SHA3
I'm using PBKDF2 to generate an ED448 signing key, and I'm trying to figure out the optimal salt size for SHA-3.
I recall reading a recommendation to use a salt size equal to the PRF's internal-state ...
2
votes
1
answer
272
views
How can I understand the math behind crypto, especially that used in blockchains / distributed ledgers?
A bit of a background about me; Computer Engineer but during my studies I didn't dive too deep into the maths, especially the crypto maths that is used to make the blockchain and cryptography work.
I'...
2
votes
0
answers
168
views
Clarification about the iota function of SHA-3
I am trying to implement SHA-3 using this document and have a question about the iota step.
This step consists in a single XOR between the central (0, 0) lane of the state (illustration of the state p....
0
votes
0
answers
42
views
What is the difference between HMAC-SHA3-512 and KMAC? [duplicate]
Reading through the wikipedia entry for HMAC I see that SHA-3 can be used with the HMAC algorithm to give HMAC-SHA3-512.
I also know that there is KMAC, which from ...
4
votes
1
answer
1k
views
Is KMAC just SHA-3-256(KEY || message)
According to keccak strengths you have:
Unlike SHA-1 and SHA-2, Keccak does not have the length-extension weakness, hence does not need the HMAC nested construction. Instead, MAC computation can be ...
1
vote
0
answers
83
views
Exact security requirements for extendable output functions (XOF)?
In the FIPS202 document "SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions" an extendable-output functions is defined as:
An extendable-output function (XOF) is a ...
10
votes
3
answers
7k
views
Why is SHA3 more secure than SHA2?
Why are SHA3 algorithms considered more secure than their SHA2 counterparts? Surely in part, it is due to their resistance to length extension attacks. But specifically, when considering collision ...
0
votes
2
answers
96
views
Using hash of data as proof of integrity and preventing collision
Rather than storing user data when interacting with an app, I am storing the SHA3-256 of the data. This is because data storage in this particular environment is very limited.
The data can be several ...
-2
votes
2
answers
134
views
What are the security flaws of SHA? [closed]
I have been researching SHA algorithms extensively, specifically SHA1, SHA2-256, SHA2-512, SHA3-256, and SHA3-512, and have found many instances of successful collision attacks as well as methods.
In ...
1
vote
2
answers
157
views
is it safe to combine scrypt with other hash algorithms?
I'm currently writing a file encryption program, and I designed this scheme to derive a key from user input password:
...
1
vote
0
answers
275
views
Lightweight encrypting for BLE advertising packets
I'm new to encryption and this is my first time working with it. I'm currently working on a home project which consists of the equipment in my garage to be attached with a BLE device which sends ...
1
vote
1
answer
181
views
Does anyone know why NISTs SHA3 256 output Hash for the 1600 bit file is different to other SHA3 256 output hashes?
I have been trying to implement my own SHA3 256 function in python to try and learn and understand how it works. I have been comparing my hashes with an online sha3 tool found here https://emn178....
0
votes
0
answers
64
views
Using a bit sequence of zeros followed by one byte in Keccak
For what purpose it is not right to use a bit sequence of 2000+ zeros followed by one byte in Keccak? Is there a possible application of such input for Keccak? If yes, after which transformation?
9
votes
1
answer
2k
views
Outlook of trustworthiness of SHA-2
On the Wikipedia page of SHA-2, the following is written:
Currently, the best public attacks break preimage resistance for 52 out of 64 rounds of SHA-256 or 57 out of 80 rounds of SHA-512, and ...
0
votes
1
answer
131
views
Different inputs but able to generate consistent outputs across different SHA engines
Say I'm feeding in few thousand bits data (INPUT AAAA) into both SHA256 & SHA3 256 engines at the same time. (Both engines using different hashing architecture) and hence it will generate ...
2
votes
1
answer
77
views
Can you use a dynamic key and data size for KMAC?
I've asked before if some kind of canonical encoding should be used on the input parameters of SHA-3 before it could be used as replacement for HMAC.
However, if I read the current NIST specifications ...
3
votes
1
answer
198
views
Can a SHA3 engine be used to construct a Keccak implementation?
I am working on a cSHAKE-128 & cSHAKE-256 implementation that takes advantage of a number of hardware accelerators I have at my disposal, specifically for SHA-3 256/384/512 and SHAKE 128/256.
...
3
votes
1
answer
220
views
SHA3 hexadecimal paddig odd length string
Section B2 of FIPS-202 specification describes the Hexadecimal Form of Padding Bits which is basically the translation of the bit padding 0110*1. However at the beginning they suppose that the message ...
1
vote
1
answer
105
views
SHA3-512 similar message digest
How is it possible to find a similar message-digest for SHA3-512 for the first 80 bits or so?
There was a Q/A on this site where the answer stated that 80 bits that $2^{42}$ computations are required. ...
-1
votes
1
answer
190
views
Are there any crypto hash implementation beyond 512 bits of output?
My question is this: Are there any crypto hash implementations beyond 512 bits of output?
Could you give me the link?
Thank you so much for your time.
Greetings.
-5
votes
2
answers
263
views
Are the common hash algorithms already dead? [closed]
I have one honestly question: How can we are so confident with the use of the common hash algorithms (nowadays there are so many pages with cracking tools: crackstation, gpuhash, etc) ?
Are we lost ...
1
vote
3
answers
285
views
Using sha3 as a deterministic source of psuedo-random bytes for xor encryption
The following code generates a deterministic stream of pseudo-random bytes, using SHA3.
...
3
votes
2
answers
686
views
Is it possible to create a ciphersuite for TLS 1.3 using only the Keccak-sponge/duplex?
Now that Keccak has been chosen as SHA-3 we see that there have been defined quite a few related modes, including authenticated cipher modes, the KMAC message authentication mode, XOF's and whatnot. ...
0
votes
1
answer
287
views
Does hashing PII in logs provide any real security?
I have PII in my logs that I would like to replace with hashes (e.g. sha3-256(salt + email)). The idea is that I can always go back to my logs and find all the log ...
0
votes
1
answer
65
views
How to use Botan to verify a web3 wallet/password?
The specification here seems quite clear, but unfortunately I'm still doing something wrong...
I have this (single small c++ file) repository which very straightforwardly follows the password/wallet ...
4
votes
2
answers
328
views
How does KECCAK operate on a state array filled with zeros?
Im trying to implement a sponge in Java. The state starts out as an empty 200 byte array of all zeros. In the KMAC samples document from NIST, the following happens:
(black line is a pdf page break)
...
3
votes
1
answer
373
views
Why HAIFA and sponge constructions are not prone to length extension attacks?
I was writing in a document about the flaws of the MD construction which pushed cryptographers to create different and more robust constructions. However, I don't know why HAIFA and Sponge ...
8
votes
2
answers
4k
views
What is the sponge construction in simple terms?
I suggested to my client to use SHA3 instead of SHA2. I know that SHA3 is based on Keccak algorithm which won the NIST's competition.
I want to explain the structure of sponge functions in very simple ...
0
votes
0
answers
140
views
Security implication of concatenating two hashes using different algorithms
Background
Hashing files is an expensive thing for CPU. I am tasked to write a secure digital signature scheme. For that, I decided to check the integrity of files using Hash/Digest.
To be more secure,...