projects
/
gpg-migrate.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac2696b
)
Add AES block sizes to PGPPacket._cipher_block_size
author
W. Trevor King
<wking@tremily.us>
Fri, 20 Dec 2013 18:45:47 +0000
(10:45 -0800)
committer
W. Trevor King
<wking@tremily.us>
Fri, 20 Dec 2013 19:46:31 +0000
(11:46 -0800)
From the AES spec [1]:
This standard specifies the Rijndael algorithm (...), a symmetric
block cipher that can process data blocks of 128 bits, using cipher
keys with lengths of 128, 192, and 256 bits.
[1]: http://csrc.nist.gov/publications/fips/fips197/fips-197.{ps,pdf}
gpg-migrate.py
patch
|
blob
|
history
diff --git
a/gpg-migrate.py
b/gpg-migrate.py
index 27054a00c363274215db7265bd7377a08aa150c2..0c7f3366672855db08f58fc4c6746a754e7132fc 100755
(executable)
--- a/
gpg-migrate.py
+++ b/
gpg-migrate.py
@@
-100,6
+100,9
@@
class PGPPacket (dict):
}
_cipher_block_size = { # in bits
+ 'aes with 128-bit key': 128,
+ 'aes with 192-bit key': 128,
+ 'aes with 256-bit key': 128,
}
_compression_algorithms = {