Skip to content

Commit

Permalink
change aes passphrase length from 128 to 117 to support 1028bit rsa p…
Browse files Browse the repository at this point in the history
…ublic key.
  • Loading branch information
koseki committed Feb 17, 2013
1 parent 307a5a3 commit bc8adf4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/ghcrypt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#! /bin/sh

CONFIG_FILE=$HOME/.ghcrypt
VERSION=0.4
AES_PASSPHRASE_LENGTH=128 # bytes
VERSION=0.5

# Can't encrypt larger than 117 bytes when the public key size is 1024 bit.
# (RSA key 1024 bit - PKCS#1 88bit padding) / 8 = 117 bytes
AES_PASSPHRASE_LENGTH=117

usage() {
echo "ghcrypt v$VERSION"
Expand Down

0 comments on commit bc8adf4

Please sign in to comment.