Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2015 01:58:45 GMT
From:      def@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r294740 - soc2013/def/crashdump-head/sbin/decryptcore
Message-ID:  <201512020158.tB21wjMq076071@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: def
Date: Wed Dec  2 01:58:44 2015
New Revision: 294740
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=294740

Log:
  We always encrypt KERNELDUMP_KEY_MAX_SIZE bytes.

Modified:
  soc2013/def/crashdump-head/sbin/decryptcore/decryptcore.c

Modified: soc2013/def/crashdump-head/sbin/decryptcore/decryptcore.c
==============================================================================
--- soc2013/def/crashdump-head/sbin/decryptcore/decryptcore.c	Wed Dec  2 01:26:59 2015	(r294739)
+++ soc2013/def/crashdump-head/sbin/decryptcore/decryptcore.c	Wed Dec  2 01:58:44 2015	(r294740)
@@ -203,7 +203,7 @@
 
 	if (RSA_private_decrypt(kdk->kdk_encryptedkeysize,
 	    kdk->kdk_encryptedkey, key, privkey,
-	    RSA_PKCS1_PADDING) != EVP_CIPHER_key_length(cipher)) {
+	    RSA_PKCS1_PADDING) != sizeof(key)) {
 		pjdlog_error("Unable to decrypt key: %s",
 		    ERR_error_string(ERR_get_error(), NULL));
 		goto failed;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512020158.tB21wjMq076071>