public inbox for gost@lists.cypherpunks.ru
Atom feed
* [GOST] GOST R 34.13-2015: OFB mode bug in pygost
@ 2017-12-24  9:34 Alexander Lodin
  2017-12-24 10:21 ` Sergey Matveev
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Lodin @ 2017-12-24  9:34 UTC (permalink / raw)
  To: gost

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

Добрый день,

Насколько я могу судить, в реализации режима OFB допущена опечатка, которая
приводит к ошибке в случае len(iv) / bs >= 3. После шифрования части
инициализирующего вектора, XOR производится со вторым блоком iv (r[1]), в
то время как должен производиться с последним, только что зашифрованным
блоком (r[-1]).
На тестовых векторах это не видно, так как в них len(iv) / bs = 2, и r[1]
== r[-1]

-- 
С уважением,
Александр Лодин.

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

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

end of thread, other threads:[~2017-12-24 10:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-24  9:34 [GOST] GOST R 34.13-2015: OFB mode bug in pygost Alexander Lodin
2017-12-24 10:21 ` Sergey Matveev
2017-12-24 10:24   ` Alexander Lodin