Open-source aspects of GOST Cryptography
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: oss-gost-crypto@lists.altlinux.org
Cc: "Anton V. Boyarshinov" <boyarsh@altlinux.org>
Subject: Re: [oss-gost-crypto] Модули Linux с криптографией ГОСТ
Date: Mon, 8 Oct 2018 12:09:44 +0300
Message-ID: <20181008090943.j7sdvifibiuvvwpb@sole.flsd.net> (raw)
In-Reply-To: <20181003143423.h66weow34llqvt5t@sole.flsd.net>

FYI

On Wed, Oct 03, 2018 at 05:34:23PM +0300, Vitaly Chikunov wrote:
> On Wed, Oct 03, 2018 at 01:48:01PM +0300, Dmitry Eremin-Solenikov wrote:
> > 
> > Раз уж пошел разговор про ядерные модули, сконвертировал код для
> > поддержки Linux Crypto API: https://github.com/GostCrypt/linux-crypto
> 
> К слову, моё ядро для сходных же целей
>   https://github.com/vt-alt/linux бранч tfm-streebog

Я еще больше адаптировал Streebog для апстрима:

  https://github.com/vt-alt/linux бранч streebog

1. Пофиксил жалобы checkpatch.pl, какие можно.

2. Полностью убрал ifdef __LITTLE_ENDIAN'ы и дублирование массивов с
константами -- даже с этими изменениями исходники самые большие в crypto/,
а были в два раза больше. Заменил где надо на le64_to_cpu/cpu_to_le64.
Это noop на x86, а на других архитектурах импакт зависит от наличия swab64.
(Однако, на big endian архитектурах не тестировал.)

3. Выкинул не используемый массив A[].

4. Переделал add512 на более простой код.

5. Переделал XLPS макрос на более быстрый (по тестам) код. (Пробовал
разные варианты переделки.) Bulk speed по тестам tcrypt увеличилась (на
E5630 под qemu+kvm) с 59 Mb/s до 70 Mb/s. К слову сказать, у
sha256-generic скорость 120 Mb/s, а у китайского sm3 85Mb/s.

Для желающих поэкспериментировать тесты можно запустить так:

   insmod tcrypt.ko mode=400 alg=sb256 sec=1

6. Перенес тесты из тела модуля в testmgr. (Раньше исходники можно было
легко собирать как in- так и out-of-tree, сейчас out-of-tree будет не
так удобно сделать не потеряв тесты.) streebog.h перенес в
include/crypto/.




  reply	other threads:[~2018-10-08  9:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-03 10:48 Dmitry Eremin-Solenikov
2018-10-03 14:34 ` Vitaly Chikunov
2018-10-08  9:09   ` Vitaly Chikunov [this message]
2018-10-09  0:46       ` [oss-gost-crypto] Модули Linux с криптографией ГОСТ [PATCH] Vitaly Chikunov
2018-10-12  8:54   ` [oss-gost-crypto] Модули Linux с криптографией ГОСТ Vitaly Chikunov
2018-10-12  9:16     ` Dmitry Eremin-Solenikov
2018-10-12 11:28       ` Vitaly Chikunov
2018-10-17  9:35         ` Vitaly Chikunov
2018-10-23 10:54 ` Dmitry Eremin-Solenikov

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=20181008090943.j7sdvifibiuvvwpb@sole.flsd.net \
    --to=vt@altlinux.org \
    --cc=boyarsh@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