summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-07-08 16:27:54 +0100
committerCarl Hetherington <cth@carlh.net>2013-07-08 16:27:54 +0100
commit321d1b056040a472aba7ac43dc4938087124ec2e (patch)
treeebe296b4b1db2c6267a5c747726dfc66597cb07d /src
parent00220c67bda831912f443ef50371742923472690 (diff)
Bump descrypted key buffer size.
Diffstat (limited to 'src')
-rw-r--r--src/kdm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdm.cc b/src/kdm.cc
index e5524521..95c293c3 100644
--- a/src/kdm.cc
+++ b/src/kdm.cc
@@ -72,7 +72,7 @@ KDM::KDM (boost::filesystem::path kdm, boost::filesystem::path private_key)
}
/* Decrypt it */
- unsigned char decrypted[256];
+ unsigned char decrypted[2048];
unsigned int const decrypted_len = RSA_private_decrypt (cipher_value_len, cipher_value, decrypted, rsa, RSA_PKCS1_OAEP_PADDING);
assert (decrypted_len < sizeof (decrypted));