]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Use a packfile passphrase of 33 bytes, parity with 256-bit crypto
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 14a2fe811481daf5f3c246f353765130cd0582b4..79dd1fce986f41ad39260430ad032d74571a0a78 100755 (executable)
@@ -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 -- |