Using a KDF such as scrypt for that example does make a lot of sense, and after considering some others, I must admit, makes a lot of sense for most circumstances.
I also had a quick look at the tarsnap source code, and I see you do exactly that for the passphrased keyfile.
Re:DecryptoCat
by cperciva on Thursday July 04, 2013 @10:11PM
(#5993196)
Yes -- in fact, that's why I invented scrypt, because I was adding passphrase encryption to tarsnap key files and wanted to do it as securely as possible.
I also had a quick look at the tarsnap source code, and I see you do exactly that for the passphrased keyfile.