aboutsummaryrefslogtreecommitdiff
path: root/cryptech
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-09-15 10:58:05 -0400
committerRob Austein <sra@hactrn.net>2017-09-15 10:58:05 -0400
commit238e33e53195385dac51e18fffd0f4511244c560 (patch)
tree8830d0c63d2f6e0fdf147ad5202be200f9018c9f /cryptech
parente7d47a38badbf8aadb51967956bd83f645d7f9d7 (diff)
4096-bit RSA keys working again, with 8k keystore "blocks".
Diffstat (limited to 'cryptech')
-rw-r--r--cryptech/libhal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptech/libhal.py b/cryptech/libhal.py
index 8666d15..acd1abb 100644
--- a/cryptech/libhal.py
+++ b/cryptech/libhal.py
@@ -403,7 +403,7 @@ class PKey(Handle):
return result
def export_pkey(self, pkey):
- return self.hsm.pkey_export(pkey = pkey, kekek = self, pkcs8_max = 2560, kek_max = 512)
+ return self.hsm.pkey_export(pkey = pkey, kekek = self, pkcs8_max = 5480, kek_max = 512)
def import_pkey(self, pkcs8, kek, flags = 0):
return self.hsm.pkey_import(kekek = self, pkcs8 = pkcs8, kek = kek, flags = flags)