# coding: utf-8
# PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2016 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2017 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
Just fill up with zeros if necessary.
"""
- return data + b'\x00' * pad_size(len(data), blocksize)
+ return data + b"\x00" * pad_size(len(data), blocksize)
def pad2(data, blocksize):
Add one bit and then fill up with zeros.
"""
- return data + b'\x80' + b'\x00' * pad_size(len(data) + 1, blocksize)
+ return data + b"\x80" + b"\x00" * pad_size(len(data) + 1, blocksize)
def pad3(data, blocksize):