Skip to content

Commit

Permalink
The initializeVector should be bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
regebro committed Oct 12, 2018
1 parent e6054f7 commit fdc4cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keas/kmi/facility.py
Expand Up @@ -52,7 +52,7 @@ class EncryptionService(object):
# initialization vector is assumed to be 16 bytes because that's what
# openssl aes-256-cbc -nosalt -P -k 'a'
# prints if you execute it on the command line
initializationVector = '0123456789ABCDEF'
initializationVector = b'0123456789ABCDEF'

def _pkcs7Encode(self, text, k=16):
n = k - (len(text) % k)
Expand Down

0 comments on commit fdc4cf0

Please sign in to comment.