-1

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.

  • https://en.wikipedia.org/wiki/SHA-3 with the variable parameter d – A. Hersean Oct 15 '20 at 15:30
  • This is for my homework, if you could just give me some link of the implementation? – Jorge Alberto Medina Rosas Oct 15 '20 at 15:40
  • For example I got this of 768 bits output: cded98730118b7a4a15597430c9d75863d9532329540cab109ea26ab72a96d1b30c264e213beef31700795f4bb881bf0fd10ce945b15a8557dac5d970b49d75b6e8904776c7d3b5b975228ead94f06dbeb97574581bf53ac4b82ae93ec4f77c7 – Jorge Alberto Medina Rosas Oct 15 '20 at 15:40
  • And I mean "Output size in bits" and not "Block size in bits", I'm looking for 1024 and 2048 bits of output for my homework, does any one have the link? Thank you so much for your time!!! – Jorge Alberto Medina Rosas Oct 15 '20 at 15:51
  • I just google sha3 2048 bits of output implementation for any programming language and no results. maybe I'm just missing something – Jorge Alberto Medina Rosas Oct 15 '20 at 15:54
  • 5
    XOF hash functions (extendible output functions) are hash functions that support generating arbitrarily large outputs. – Xander Oct 15 '20 at 16:01
  • Yes for sure, look just gimme some 1024 o 2048 sample, this is just for my homework, sincerely regards!!! – Jorge Alberto Medina Rosas Oct 15 '20 at 16:04
  • 6
    Uh, 1. that's not in your question and 2. I think you misunderstand the term "homework", it is something that you perform inside your home, not we in our home. – Maarten Bodewes Oct 15 '20 at 16:09
  • My question, once again, is this: Could you provide me a link for a crypto hash implementation beyond 512 bits, or could you be so generous to provide me with some sample output hash? This is for some personal homework in my own house.Thank\ – Jorge Alberto Medina Rosas Oct 15 '20 at 16:15
  • https://github.com/BLAKE3-team/BLAKE3 supports XOF mode (arbitrary length output). Note: it's not SHA3. Since you want SHA3, pick literally any implementation of it and use the XOF modes. – SAI Peregrinus Oct 15 '20 at 16:18
  • 2
    Her's a shake link for you. Happy programming. https://pycryptodome.readthedocs.io/en/latest/src/hash/shake128.html – Maarten Bodewes Oct 15 '20 at 16:21
  • I want to note that even if SHAKE supports the output length of more than 512, its cryptographic strength cannot exceed 128/256 bits. So I wouldn't call such output "hash". The notion of "cryptographically secure hash" of length N is different from the notion of "the output of an XOF" of length N. – lyrically wicked Oct 16 '20 at 05:31

1 Answers1

0

You can use any hash function with a stream cipher or block cipher in streaming mode like CTR/OFB to produce arbitrary length output beyond 512 bits.

Another method is using extendable-output functions (XOFs). XOF is a hash function that its output can be extended to any length. Keccak (SHA-3), Skein and BLAKE3 have extendable output mode.

There are many implementations of SHAKE128/SHAKE256 (SHA-3's XOF).

Hypatia
  • 355
  • 1
  • 6
  • Since you are a new contributor to our site, you might note that we don't answer homework questions, we only provide a hint for them in the comments if they show some efforts. You can search and find our community agreement on the meta site. Also, this question is already a library/software recommendation and out of the scope of Cryptography.SE, too. Warm welcomes... – kelalaka Oct 15 '20 at 21:34
  • @kelalaka OK, Thanks. – Hypatia Oct 16 '20 at 09:00