diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-29 11:25:57 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-29 11:25:57 -0700 |
commit | 23aeea2527e5b2f26596488ee1635a9f48713e42 (patch) | |
tree | 4fb46b85f5968ffbeae329216a948d991ae9d98e /cryptography | |
parent | 07082782db43d697627f6eaf2d0b7c8ca209ab6a (diff) | |
download | cryptography-23aeea2527e5b2f26596488ee1635a9f48713e42.tar.gz cryptography-23aeea2527e5b2f26596488ee1635a9f48713e42.tar.bz2 cryptography-23aeea2527e5b2f26596488ee1635a9f48713e42.zip |
Fix the naming of these classes
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/primitives/padding.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cryptography/hazmat/primitives/padding.py b/cryptography/hazmat/primitives/padding.py index 8e2219e1..d5fb0326 100644 --- a/cryptography/hazmat/primitives/padding.py +++ b/cryptography/hazmat/primitives/padding.py @@ -28,10 +28,10 @@ class PKCS7(object): self.block_size = block_size def padder(self): - return _PaddingContext(self.block_size) + return _PKCS7PaddingContext(self.block_size) def unpadder(self): - return _UnpaddingContext(self.block_size) + return _PKCS7UnpaddingContext(self.block_size) def pad(self, data): padder = self.padder() @@ -43,9 +43,9 @@ class PKCS7(object): @interfaces.register(interfaces.PaddingContext) -class _PaddingContext(object): +class _PKCS7PaddingContext(object): def __init__(self, block_size): - super(_PaddingContext, self).__init__() + super(_PKCS7PaddingContext, self).__init__() self.block_size = block_size # TODO: O(n ** 2) complexity for repeated concatentation, we should use # zero-buffer (#193) @@ -74,9 +74,9 @@ class _PaddingContext(object): @interfaces.register(interfaces.PaddingContext) -class _UnpaddingContext(object): +class _PKCS7UnpaddingContext(object): def __init__(self, block_size): - super(_UnpaddingContext, self).__init__() + super(_PKCS7UnpaddingContext, self).__init__() self.block_size = block_size # TODO: O(n ** 2) complexity for repeated concatentation, we should use # zero-buffer (#193) |