summaryrefslogtreecommitdiff
path: root/obnamlib/encryption.py
AgeCommit message (Collapse)AuthorFilesLines
2017-06-24Fix: avoid bare "except:" statementsLars Wirzenius1-1/+1
2017-01-08Update copyright yearsLars Wirzenius1-1/+1
2017-01-08Log multiline StructuredError messages in fullLars Wirzenius1-1/+1
2016-10-27Ignore errors when removing temporary dirs for testingLars Wirzenius1-1/+1
Due to some interaction with gpg-agent in gpg 2.1, autospawning of said agent, and a socket file it creates and removes, rmtree would previously fail due to the socket having disappeared. Mysterious, but works now.
2016-10-07Add gpg command line to error message about gpg failingLars Wirzenius1-3/+5
2015-10-11Add extra space before in-line commentLars Wirzenius1-1/+1
2015-10-11encryption: support custom gpghome in symmetric key functionsBen Boeckel1-6/+7
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-10-11encryption: refactor _gpg_pipe to use _gpgBen Boeckel1-12/+5
Signed-off-by: Ben Boeckel <mathstuf@gmail.com>
2015-07-04Cleanups suggested by pep8Lars Wirzenius1-12/+12
2015-04-03Update copyright yearsLars Wirzenius1-1/+1
2015-03-22avoid shadowing builtinsThomas Waldmann1-2/+2
2014-04-13More copyright nitpick fixesLars Wirzenius1-1/+1
2014-02-27Get rid of obnamlib.ErrorLars Wirzenius1-2/+12
2013-12-01Create a trustdb.gpg in temp GNUPGHOMELars Wirzenius1-0/+4
From version 2.0.22 or so, gpg insists on having a trustdb.gpg in the GNUPGHOME. Create it when we set up the temporary GNUPHOME during encryption operations, by importing an empty ownertrust file.
2013-09-06Add --key-details optionLars Wirzenius1-0/+12
Patch by Lars Kruse.
2013-08-15Fix list-toplevels so it doesn't mind other clientsLars Wirzenius1-2/+2
Fix by Lars Kruse.
2013-06-16Remove whitespace from ends of linesLars Wirzenius1-50/+50
2012-11-03Run gpg with --no-textmodeLars Wirzenius1-2/+3
Reported-By: Robin Sheat
2012-04-29Add tracingLars Wirzenius1-0/+1
2011-07-26Add tracing and logging to help finding missing node bugs.Lars Wirzenius1-0/+5
2011-07-25Make all exceptions be based on obnamlib.AppException or obnamlib.Error.Lars Wirzenius1-2/+4
2011-06-26Avoid temporary file for piping data through gpg.Lars Wirzenius1-11/+2
Turns out Python's subprocess.Popen.communicate can handle arbitrarily large amounts of data without blocking. Neat.
2011-05-05Refactor and hopefully fix symmetric key caching.Lars Wirzenius1-0/+21
Move code into the obnamlib/encryption module, and add testing. The bug to fix is that the cache implementation in the plugin was not actually caching anything.
2011-04-17Add --no-encrypt-to and--no-default-recipient to gpg encryption.Lars Wirzenius1-1/+6
Suggested by Joey Hess.
2011-04-17Fix symmetric key generation to not include newlines.Lars Wirzenius1-3/+1
We'll be feeding it to gpg via a file descriptor, and gpg reads only the first line. Including a newline breaks things.
2011-04-05Rename symmetric encryption function to be shorter.Lars Wirzenius1-2/+2
2011-03-27Implement SecretKeyring and encryption/decryption using public keys.Lars Wirzenius1-17/+56
2011-03-27Optimize by caching Keyring.keyids() when possible.Lars Wirzenius1-1/+8
2011-03-27Add a Keyring class.Lars Wirzenius1-3/+67
2011-03-27Add obnamlib.get_public_key.Lars Wirzenius1-0/+25
2011-03-27Fix tests to not read from /dev/random.Lars Wirzenius1-2/+2
It depletes entropy for no purpose, and makes tests run slower.
2011-03-27Implement symmetric encryption for real.Lars Wirzenius1-1/+62
2011-03-27Add dummy implementation of encrypt_with_symmetric_key.Lars Wirzenius1-0/+5
2011-03-27Fix generate_symmetric_key to work right with weird key sizes.Lars Wirzenius1-2/+2
2011-03-27Implement generate_symmetric_key.Lars Wirzenius1-1/+6
2011-03-27Start module for encryption helpers.Lars Wirzenius1-0/+20