public inbox for gost@lists.cypherpunks.ru
Atom feed
* [GOST] gost 28147-87
@ 2020-03-23 22:40 MAKS TV
  2020-03-24  5:13 ` Sergey Matveev
  0 siblings, 1 reply; 2+ messages in thread
From: MAKS TV @ 2020-03-23 22:40 UTC (permalink / raw)
  To: gost

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

Здравствуйте, какого типа должен быть key и data?

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

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

* Re: [GOST] gost 28147-87
  2020-03-23 22:40 [GOST] gost 28147-87 MAKS TV
@ 2020-03-24  5:13 ` Sergey Matveev
  0 siblings, 0 replies; 2+ messages in thread
From: Sergey Matveev @ 2020-03-24  5:13 UTC (permalink / raw)
  To: gost

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

Приветствую!

*** MAKS TV [2020-03-24 01:40]:
>Здравствуйте, какого типа должен быть key и data?

Для какой функции и библиотеки?
В pygost.gost28147 везде вот вроде бы прописано:

    def ecb(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param data: plaintext
        :type data: bytes, multiple of BLOCKSIZE
        [...]

    def cbc_encrypt(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param bytes data: plaintext
        [...]

    def cbc_decrypt(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param bytes data: ciphertext
        [...]

    def cnt(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param bytes data: plaintext
        [...]

    def cfb_encrypt(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param bytes data: plaintext
        [...]

    def cfb_decrypt(key, data, ...):
        [...]
        :param bytes key: encryption key
        :param bytes data: plaintext
        [...]

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2020-03-24  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 22:40 [GOST] gost 28147-87 MAKS TV
2020-03-24  5:13 ` Sergey Matveev