diff options
author | Joey Hess <joey@kitenet.net> | 2014-07-24 13:36:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-07-24 13:36:23 -0400 |
commit | c1a93cb4805e35e288b3185ef0f26cf1f3ab783f (patch) | |
tree | dec2b8a6d2892c5ae11750d497a1896da4968977 /Crypto.hs | |
parent | 56207070a011033519ade56791478101694ed964 (diff) |
add chunk metadata to Key
Added new fields for chunk number, and chunk size. These will not appear
in normal keys ever, but will be used for chunked data stored on special
remotes.
This commit was sponsored by Jouni K Seppanen.
Diffstat (limited to 'Crypto.hs')
-rw-r--r-- | Crypto.hs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -142,11 +142,9 @@ decryptCipher (EncryptedCipher t variant _) = - reversable, nor does it need to be the same type of encryption used - on content. It does need to be repeatable. -} encryptKey :: Mac -> Cipher -> Key -> Key -encryptKey mac c k = Key +encryptKey mac c k = stubKey { keyName = macWithCipher mac c (key2file k) , keyBackendName = "GPG" ++ showMac mac - , keySize = Nothing -- size and mtime omitted - , keyMtime = Nothing -- to avoid leaking data } type Feeder = Handle -> IO () |