Open-source aspects of GOST Cryptography
 help / color / mirror / Atom feed
From: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
To: Open-source aspects of GOST Cryptography
	<oss-gost-crypto@lists.altlinux.org>
Subject: Re: [oss-gost-crypto] Расшифровка S/MIME
Date: Fri, 13 Sep 2019 14:55:54 +0300
Message-ID: <CALT56yPngk8afnVwdo8b1mPyxyJQK=MibSx1vP10ibAubBMOuA@mail.gmail.com> (raw)
In-Reply-To: <18755075-3a1b-a3cf-1a7b-4c6f0ce2aa95@altlinux.org>

пт, 13 сент. 2019 г. в 14:38, Paul Wolneykien <manowar@altlinux.org>:

>
> 13.09.2019 14:30, Dmitry Eremin-Solenikov пишет:
> > пт, 13 сент. 2019 г. в 13:30, Paul Wolneykien <manowar@altlinux.org>:
> >>
> >> 13.09.2019 13:13, Dmitry Eremin-Solenikov пишет:
> >>> пт, 13 сент. 2019 г. в 12:45, Paul Wolneykien <manowar@altlinux.org>:
> >>> Отдельный вопрос: тебе IMIT и CNT нужны или нет?
> >>
> >>   IMIT да. Я же CMAC считаю при передаче ключей.

Так IMIT или CMAC? ;-)

> >
> > Хорошо. Приведу код в порядок и отправлю.
>
>   CMAC считается нормально. Правда, я добавил возможность установки
> S-box для него. Не знаю, может и перестарался:
>
> http://git.altlinux.org/people/manowar/packages/?p=libgcrypt.git;a=commitdiff;h=179dafc3fb3e16da306bfc8eb0bd5845d076c7d7
>
> http://git.altlinux.org/people/manowar/packages/?p=libgcrypt.git;a=commitdiff;h=f88c1f27dd02fefed60475dcda1cac6361c6fd8c

Я бы просто дернул gcry_cipher_ctl(mac->u.cmac.ctx,
GCRYCTL_SET_SBOX....), без лишних оберток.

> >>>> допустим. В OpenSSL тоже через gost_cipher_ctl() сделано, с аналогичным
> >>>> интерфейсом. В качестве аргумента *buf тоже, наверное, какая-то
> >>>> константа, вроде ..._CRYPTOPRO_KEYMESHING. Не знаю только, куда её в
> >>>> Libgcrypt засунуть: в enum или в define и в какой раздел?
> >>>
> >>> Учитывая, что 28147 медленно, но верно должен начать уходить, я бы не особо
> >>> морочился на эту тему. Это бы имело смысл, если бы были еще keymeshing.
> >>> Но их пока нет. А ACPKM проще тоже отдельной модой вводить.
> >>
> >>   Тут ещё вопрос, кстати, а нужен ли нам вообще GCRY_CIPHER_MODE_CFB без
> >> _MESH ? И для чего тогда OIDs править? В том, что прилетает в CMS,
> >> значится просто "1.2.643.2.2.21". Следовательно, key meshing должен быть
> >> включен по умолчанию.
> >
> > Тебе все равно SBOX выбирать надо, это же не автоматом идет. Туда же вставить и
> > gcry_cipher_ctl().
> >
> > Я на следующей неделе посмотрю и доделаю тогда. Норма?
>
>   В целом, да. Я ещё поковыряю сегодня тоже. И тебе отправлю.

Можешь засылать pull request на GitHub. Я посмотрю.

--
With best wishes
Dmitry

      reply	other threads:[~2019-09-13 11:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-12 21:05 Paul Wolneykien
2019-09-12 21:53 ` Dmitry Eremin-Solenikov
2019-09-13  9:45   ` Paul Wolneykien
2019-09-13 10:13     ` Dmitry Eremin-Solenikov
2019-09-13 10:30       ` Paul Wolneykien
2019-09-13 11:30         ` Dmitry Eremin-Solenikov
2019-09-13 11:38           ` Paul Wolneykien
2019-09-13 11:55             ` Dmitry Eremin-Solenikov [this message]

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='CALT56yPngk8afnVwdo8b1mPyxyJQK=MibSx1vP10ibAubBMOuA@mail.gmail.com' \
    --to=dbaryshkov@gmail.com \
    --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