Open-source aspects of GOST Cryptography
 help / color / mirror / Atom feed
* [oss-gost-crypto] Расшифровка S/MIME
@ 2019-09-12 21:05 Paul Wolneykien
  2019-09-12 21:53 ` Dmitry Eremin-Solenikov
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Wolneykien @ 2019-09-12 21:05 UTC (permalink / raw)
  To: oss-gost-crypto

[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]


  Всем привет. Работаю сейчас над совместимостью S/MIME в GnuPG SM и
OpenSSL. Беру openssl и вот так зашифровываю файл:

> openssl smime -encrypt -gost89 -in sm/gpgsm.c -outform DER -out test.ossl.p7 2012_256.pem 

Результат в приложении. Потом беру gpgsm и пытаюсь его расшифровать:

> sm/gpgsm --debug=crypto --decrypt -o test test.ossl.p7

Результат тоже в приложении.

  Прикол в том, что нормально расшифровываются только первые 1024 байта.
А потом явно ошибки. И вот насколько я помню из описания ГОСТ-28147, его
как раз нужно как-то переинициализировать по прошествии 1024 байтов. И
похоже, что Libgcrypt этого или не делает, или я не умею его готовить.

  Подскажите, кто знает, куда смотреть в openssl-gost-engine и Libgcrypt?

[-- Attachment #2: test --]
[-- Type: application/octet-stream, Size: 71061 bytes --]

[-- Attachment #3: test.ossl.p7 --]
[-- Type: application/octet-stream, Size: 71525 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-09-13 11:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12 21:05 [oss-gost-crypto] Расшифровка S/MIME 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

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