]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Use a longer pack key
authorroot <root@localhost>
Sun, 3 Mar 2013 08:02:43 +0000 (09:02 +0100)
committerroot <root@localhost>
Sun, 3 Mar 2013 08:02:43 +0000 (09:02 +0100)
There should be no difference if we use 32 random bytes or more, since
GPG's longest symmetric key is 32 bytes, but to just remove any doubt we
use a longer random passphrase.

git-remote-gcrypt

index e0b113324b795950b345c5ed0b3fede66f5317bb..c31416ecedaef0fc00e3ee2dc23c7831970fbd8e 100755 (executable)
@@ -17,7 +17,7 @@ Localdir="${GIT_DIR:=.git}/remote-gcrypt"
 export GITCEPTION="${GITCEPTION:-}+" # Reuse $Gref except when stacked
 Gref="refs/gcrypt/gitception$GITCEPTION"
 Gref_rbranch="refs/heads/master"
-Packkey_bytes=33  # 33 random bytes for passphrase, still compatible if changed
+Packkey_bytes=63  # nbr random bytes for packfile keys, any >= 256 bit is ok
 Hashtype=SHA256   # SHA512 SHA384 SHA256 SHA224 supported.
 Manifestfile=91bd0c092128cf2e60e1a608c31e92caf1f9c1595f83f2890ef17c0e4881aa0a
 Hex40="[a-f0-9]"