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: Sun, 5 May 2019 00:57:21 +0300 Message-ID: <20190504215721.d236qhknugo2xf4r@altlinux.org> (raw) In-Reply-To: <CADqLbz+fdDsP121QnuRvsW-37kc25Ey3aZ4ZOEux9+E33oFLnQ@mail.gmail.com> On Sun, May 05, 2019 at 12:50:03AM +0300, Dmitry Belyavsky wrote: > У меня там был какой-то тестовый вектор в gost-engine. Как назывался, ща не > помню. На нём разницы нет. > On Sun, May 5, 2019 at 12:33 AM Dmitry Eremin-Solenikov < > dbaryshkov@gmail.com> wrote: > > > Спасибо, сейчас отправлю патчи. > > > > Паралеллельно отмечу: эта ошибка не ловится тестом eeee...eeee1611...1116. > > > > Тестовый вектор на эту ошибку (рекомендую добавить в тестовые векторы): > > > > $ echo -ne > > '\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' > > | openssl dgst -md_gost12_512 > > (stdin)= > > 90a161d12ad309498d3fe5d48202d8a4e9c406d6a264aeab258ac5ecc37a7962aaf9587a5abb09b6bb81ec4b3752a3ff5a838ef175be5772056bc5fe54fcfc7e > > > > Реализации с ошибкой выдают: > > (stdin)= > > c5e8ac156e3cd7f395fa9c8bf8fb3995dcfadc0ee539d56e5138804b488e17b846fc7bccf883b21914acfd0add48e55ac359a7564f39619cd6ad9d93a35bf9a9 К слову, достаточно 64-х "\xff". libgcrypt (master)$ perl -E 'print "\xff" x 64'| openssl dgst -md_gost12_256 -r; perl -E 'print "\xff" x 64' | ./tests/gchash stribog256 - 964a5ab60286f106288743e2fe1a422d160898ca1bd535e831aa500cfe34d7e8 *stdin 6cad1fb10486524958e90756a6e72ab717d89842634004a0958582d256209818 -
next prev parent reply other threads:[~2019-05-04 21:57 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 [this message] 2019-05-25 20:03 ` Vitaly Chikunov 2019-05-25 21:32 ` Vitaly Chikunov 2020-01-13 5:07 ` Vitaly Chikunov 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=20190504215721.d236qhknugo2xf4r@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