public inbox for gost@lists.stargrave.org
Atom feed
* баг в реализации gost28147
@ 2024-02-28 17:26 Vanilla Master
2024-02-28 17:37 ` Sergey Matveev
0 siblings, 1 reply; 2+ messages in thread
From: Vanilla Master @ 2024-02-28 17:26 UTC (permalink / raw)
To: gost
[-- Attachment #1: Type: text/plain, Size: 627 bytes --]
некорректно работает функция "_shift11" (в gost28147.py)
при числах длинной больше чем в 32 бита значение функции неверно
при вычислении числа содержащего нижние биты результата (сдвигом вправо),
число обрезается до 32 бит после сдвига а не до из за чего число
захватывает лишние биты (с 32 вплоть до 43) после чего логическое "или"
дает неверный результат.
[-- Attachment #2: Type: text/html, Size: 671 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-28 17:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-28 17:26 баг в реализации gost28147 Vanilla Master
2024-02-28 17:37 ` Sergey Matveev