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
1
vote
1 answer

Difference between Merkle–Damgård and sponge-function used in KECCAK

Hello to the nice Stackoverflow community! I have difficulties understanding the difference between the Merkle–Damgård construction and the sponge-function used in KECCAK. The Merkle–Damgård Construction takes in the message-blocks iteratively, but…
tietze111
  • 321
  • 1
  • 2
  • 15
1
vote
1 answer

SHA-3 implementation on Java Card v.2.2.2

I'm currently trying to implement algorithm SHA-3 on a smartcard . I managed to succeed in implementation but it seems that the output of the algorithm doesn't match the Test Vectors from NIST. My entire source code is below. final static byte…
user4272649
1
vote
2 answers

Is a hash function (e.g. SHA) platform independent?

I need to compare hashed data from different platforms. The hash function used is Keccak's SHA3. I started with the assumption that the hash generated values were platform independent; but then these two online tools proved me the…
sdia
  • 65
  • 7
1
vote
1 answer

php-sha3 not working since upgrade to 5.4

I upgraded my PHP installation to: PHP Version 5.4.23-1+sury.org~precise+1 It broke my install of https://github.com/strawbrary/php-sha3. I tried to recompile it, but had no luck. I have the file linked in my php.ini file. My phpinfo() is not…
biw
  • 3,000
  • 4
  • 23
  • 40
1
vote
1 answer

Simple implementation of SHA-3 Keccak hashing to the wrong output in C#?

I am trying to get the HashLib library @ https://hashlib.codeplex.com/ working for the new SHA-3 Keccak algorithm. I've written a simple Console application that supposedly has to output the correct hash code, but it doesn't! using System; using…
user1933076
  • 13
  • 1
  • 1
  • 3
0
votes
0 answers

I'm trying to de/encode a message using AES-256-GCM with several hashes based on a PHP snippet

I've been breaking my head over this for a few days. To make an API call I have to encrypt some data. The receiving people gave me this code snippet to use for the encryption.
Basje313
  • 29
  • 5
0
votes
1 answer

SHA3-512 implementation in Delphi 7

I'm trying to use the SHA3 cryptography library that is in the repository https://github.com/TheLazyTomcat/lib.SHA3 in Delphi 7, however, I wasn't successful. The project compiles using the library but I don't know how to implement it. I would like…
0
votes
0 answers

Converting a TRON address to Base58 doesn't work

I want to convert a TRON address in the HEX format into Base58 one without TronWeb. I can't use JS or Python either. I want to understand the algorithm to then implement it in a language of my choice. As per…
Kon
  • 33
  • 1
  • 5
0
votes
1 answer

Signing SHAKE256 hash with RSA signature with further validation

I need to hash input data with SHAKE256 (found SeriesOne.CORE package for this) and then generate a digital signature for it based on RSA algorithm. The problem is that the default RSACryptoServiceProvider does not support any of the SHA3 hashing…
tokechu
  • 150
  • 1
  • 14
0
votes
0 answers

SHA3-512 NIST FIPS PUB 202 in rust

I'm attempting to implement SHA3-512 the way it is done by NIST in FIPS PUB 202: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf. It works whenever I plug in the test vector's bit values + "01"(look for HERE in code), and for the blank…
Non Reply
  • 3
  • 1
0
votes
0 answers

SHA3 encryption in .Net 4.0 Framework

Is there a way to encrypt a string using SHA3 in C# .Net 4.0 framework. SHA3.Net supports from .Net 4.5 onwards.
Ramki
  • 389
  • 1
  • 9
0
votes
1 answer

How can I address the SHA3 state vector in programming terms?

I've been working on an implementation of SHA3, and I'm getting a bit muddled on this particular aspect of the algorithm. The addressing scheme of the state vector is given by the following diagram: My issue with the above is: How does one go about…
GARcher
  • 23
  • 4
0
votes
0 answers

Certificate Verify, "error:068000C7:asn1 encoding routines::unknown signature algorithm"

I would like to create a certificate with ECC. I am using ecdsa_with_SHA3-512 as signature algorithm. I can succesfully sign the certificate as below. auto message_digest = EVP_MD_fetch(nullptr,"SHA3-512", nullptr); if (!message_digest) { …
selim
  • 11
  • 1
0
votes
1 answer

VSTO 'ClickOnce manifests' signing using Code Signing ECC SHA384

I have a PowerPoint VSTO/C# project that is using the Visual Studio signing capability. The project was using the Sha256 code signing certificate and was working correctly. I was able to select the correct signature in the Visual Studio signing tab…
EylM
  • 5,967
  • 2
  • 16
  • 28
0
votes
0 answers

Calculate SHA3-256 digest of a file prefixed with shared secret

I am using the following code to compute the message digest of a file - in points to a file here bytesRead = in.read(inputBuffer); md= MessageDigest.getInstance("SHA3-256"); while (bytesRead > 0) { …
sunny
  • 149
  • 8