public inbox for gost@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: gost@lists.cypherpunks.ru
Subject: Re: [GOST] gost 28147-87
Date: Tue, 24 Mar 2020 08:13:32 +0300	[thread overview]
Message-ID: <20200324051332.GA31491@stargrave.org> (raw)
In-Reply-To: <CANuOB41uWPYYDUJvD2nvsoMhF_FTgTvj0CRLWoOefnCfZzNk5g@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2020-03-24  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-23 22:40 [GOST] gost 28147-87 MAKS TV
2020-03-24  5:13 ` Sergey Matveev [this message]