From: Vitaly Chikunov <vt@altlinux.org> To: Open-source aspects of GOST Cryptography <oss-gost-crypto@lists.altlinux.org> Subject: Re: [oss-gost-crypto] "Об open-source реализациях хэш-функции ГОСТ Р 34.11-2012" Date: Mon, 13 Jan 2020 08:07:25 +0300 Message-ID: <20200113050725.sycc2knb2wir5d5v@altlinux.org> (raw) In-Reply-To: <20190525213202.53cbwyxfjixrevcq@altlinux.org> (В копилку ошибочных реализаций.) В одном российском линуксе, хэш для данных с длинной кратной 64 считаются иначе чем у всех остальных: $ perl -E 'print "\x00" x 0' | gostsum --gost-2012 106c0c2070522f9ed0753e143809578a3b27711c5bc99553c3eaca250de2a30a - $ perl -E 'print "\x00" x 1' | gostsum --gost-2012 6f7305265dc0937440881f9493ef1260f61a9d47742d369e952d41bdb2a9edd1 - $ perl -E 'print "\x00" x 64' | gostsum --gost-2012 f69e7c846ee36c5363251bd89bc4b4794aa598d5092d952415bde2d314d85eba - $ perl -E 'print "\x00" x 65' | gostsum --gost-2012 ff494da4e950940619b06db49c4c3dac03a3823e134c22ff0b732599c85b321f - Сравнение с adegtyarev/streebog: $ perl -E 'print "\x00" x 0' | gost3411-2012 -2 3f539a213e97c802cc229d474c6aa32a825a360b2a933a949fd925208d9ce1bb $ perl -E 'print "\x00" x 1' | gost3411-2012 -2 6f7305265dc0937440881f9493ef1260f61a9d47742d369e952d41bdb2a9edd1 $ perl -E 'print "\x00" x 64' | gost3411-2012 -2 df1fda9ce83191390537358031db2ecaa6aa54cd0eda241dc107105e13636b95 $ perl -E 'print "\x00" x 65' | gost3411-2012 -2 ff494da4e950940619b06db49c4c3dac03a3823e134c22ff0b732599c85b321f Интересно что там могло пойти не так.
next prev parent reply other threads:[~2020-01-13 5:07 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-05-02 12:41 Vitaly Chikunov 2019-05-04 21:33 ` Dmitry Eremin-Solenikov 2019-05-04 21:57 ` Vitaly Chikunov 2019-05-25 20:03 ` Vitaly Chikunov 2019-05-25 21:32 ` Vitaly Chikunov 2020-01-13 5:07 ` Vitaly Chikunov [this message] 2020-01-13 5:55 ` Wartan Hachaturow 2020-01-13 8:22 ` [oss-gost-crypto] Streebog padding bug Ex: "Об open-source реализациях Vitaly Chikunov 2019-05-25 19:53 ` [oss-gost-crypto] "Об open-source реализациях хэш-функции ГОСТ Р 34.11-2012" Dmitry Eremin-Solenikov 2019-07-09 15:20 ` Vitaly Chikunov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20200113050725.sycc2knb2wir5d5v@altlinux.org \ --to=vt@altlinux.org \ --cc=oss-gost-crypto@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Open-source aspects of GOST Cryptography This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/oss-gost-crypto/0 oss-gost-crypto/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 oss-gost-crypto oss-gost-crypto/ http://lore.altlinux.org/oss-gost-crypto \ oss-gost-crypto@lists.altlinux.org oss-gost-crypto@lists.altlinux.ru oss-gost-crypto@lists.altlinux.com public-inbox-index oss-gost-crypto Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.oss-gost-crypto AGPL code for this site: git clone https://public-inbox.org/public-inbox.git