Grøstl was designed cryptographers at the Technical University of Denmark (DTU) and TU Graz, and is defined as a new hashing method. Overall it is an iterated hash function, using two fixed and different permutations, along with a compression function [article]. Grøstl comes from an Austrian dish of hash.
Grøstl |
Coding
import groestlcoin_hash2 str="abc" print("Message: ",str) ha = groestlcoin_hash2.groestl(224).digest(str.encode()) print("Grøstl-224: ",ha.hex()) ha = groestlcoin_hash2.groestl(256).digest(str.encode()) print("Grøstl-256: ",ha.hex()) ha = groestlcoin_hash2.groestl(384).digest(str.encode()) print("Grøstl-256: ",ha.hex()) ha = groestlcoin_hash2.groestl(512).digest(str.encode()) print("Grøstl-512: ",ha.hex())
Test vectors
The following are test vectors for Grøstl:
Grøstl-224("") 0x f2e180fb5947be964cd584e22e496242c6a329c577fc4ce8c36d34c3 Grøstl-256("") 0x 1a52d11d550039be16107f9c58db9ebcc417f16f736adb2502567119f0083467 Grøstl-384("") 0x ac353c1095ace21439251007862d6c62f829ddbe6de4f78e68d310a9205a736d8b11d99bffe448f57a1cfa2934f044a5 Grøstl-512("") 0x 6d3ad29d279110eef3adbd66de2a0345a77baede1557f5d099fce0c03d6dc2ba8e6d4a6633dfbd66053c20faa87d1a11 f39a7fbe4a6c2f009801370308fc4ad8 Grøstl-256("The quick brown fox jumps over the lazy dog") 0x 8c7ad62eb26a21297bc39c2d7293b4bd4d3399fa8afab29e970471739e28b301 Grøstl-256("The quick brown fox jumps over the lazy dog.") 0x f48290b1bcacee406a0429b993adb8fb3d065f4b09cbcdb464a631d4a0080aaf