]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost3413.py
Fix docstring's case
[pygost.git] / pygost / gost3413.py
index a350915ba3631f61892c918318a35c00b64d9092..3a539d2e4b1f9097e78774ea3cf263df648a9d5a 100644 (file)
@@ -1,11 +1,10 @@
 # coding: utf-8
 # PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2018 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# the Free Software Foundation, version 3 of the License.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -75,7 +74,7 @@ def pad3(data, blocksize):
 def ecb_encrypt(encrypter, bs, pt):
     """ECB encryption mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes pt: already padded plaintext
     """
@@ -105,7 +104,7 @@ def ecb_decrypt(decrypter, bs, ct):
 def ctr(encrypter, bs, data, iv):
     """Counter mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes data: plaintext/ciphertext
     :param bytes iv: half blocksize-sized initialization vector
@@ -125,7 +124,7 @@ def ctr(encrypter, bs, data, iv):
 def ofb(encrypter, bs, data, iv):
     """OFB mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes data: plaintext/ciphertext
     :param bytes iv: blocksize-sized initialization vector
@@ -145,7 +144,7 @@ def ofb(encrypter, bs, data, iv):
 def cbc_encrypt(encrypter, bs, pt, iv):
     """CBC encryption mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes pt: already padded plaintext
     :param bytes iv: blocksize-sized initialization vector
@@ -186,7 +185,7 @@ def cbc_decrypt(decrypter, bs, ct, iv):
 def cfb_encrypt(encrypter, bs, pt, iv):
     """CFB encryption mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes pt: plaintext
     :param bytes iv: blocksize-sized initialization vector
@@ -204,7 +203,7 @@ def cfb_encrypt(encrypter, bs, pt, iv):
 def cfb_decrypt(encrypter, bs, ct, iv):
     """CFB decryption mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes ct: ciphertext
     :param bytes iv: blocksize-sized initialization vector
@@ -236,7 +235,7 @@ def _mac_ks(encrypter, bs):
 def mac(encrypter, bs, data):
     """MAC (known here as CMAC, OMAC1) mode of operation
 
-    :param encrypter: Encrypting function, that takes block as an input
+    :param encrypter: encrypting function, that takes block as an input
     :param int bs: cipher's blocksize
     :param bytes data: data to authenticate