diff options
Diffstat (limited to 'cryptech_backup')
-rwxr-xr-x | cryptech_backup | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cryptech_backup b/cryptech_backup index def2a31..a15c9c0 100755 --- a/cryptech_backup +++ b/cryptech_backup @@ -381,6 +381,15 @@ class SoftKEKEK(object): oid_aesKeyWrap = b"\x60\x86\x48\x01\x65\x03\x04\x01\x30" + # This is sick, but probably harmless, and lets us keep using + # PyCrypto for a little longer. + + try: + import time + time.clock + except AttributeError: + time.clock = time.process_time + def parse_EncryptedPrivateKeyInfo(self, der): from Crypto.Util.asn1 import DerObject, DerSequence, DerOctetString, DerObjectId encryptedPrivateKeyInfo = DerSequence() |