aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-02-14 00:00:00 +0000
committerroot <root@localhost>2013-02-14 00:00:00 +0000
commitc355faebe85ae87a7f8e82e05e2ecc21193a4622 (patch)
tree82d54805aa3023ceb484b814bcb07cf22c45fb3c
parente26f61776187efaf72a8d75c0e6d210a5369cd77 (diff)
downloadgit-remote-gcrypt-c355faebe85ae87a7f8e82e05e2ecc21193a4622.zip
git-remote-gcrypt-c355faebe85ae87a7f8e82e05e2ecc21193a4622.tar.gz
git-remote-gcrypt-c355faebe85ae87a7f8e82e05e2ecc21193a4622.tar.bz2
Use a packfile passphrase of 33 bytes, parity with 256-bit crypto
-rwxr-xr-xgit-remote-gcrypt4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt
index 14a2fe8..79dd1fc 100755
--- a/git-remote-gcrypt
+++ b/git-remote-gcrypt
@@ -18,7 +18,7 @@ Repoid=
Hashpfx=":SHA224:"
UrlTag="G."
Packpfx="pack $Hashpfx"
-Packkey_len=48 # bytes of pack key
+Packkey_bytes=33
# compat/utility functions
xecho()
@@ -459,7 +459,7 @@ EOF
TmpPack_Encrypted="$Localdir/tmp_pack_ENCRYPTED_.$$"
TmpObjlist="$Localdir/tmp_packrevlist.$$"
- key_=$(genkey "$Packkey_len")
+ key_=$(genkey "$Packkey_bytes")
append "$remote_has" "$remote_want" |
git rev-list --objects --stdin -- |