<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>On Sun, 2018-01-14 at 18:26 -0500, Chris B wrote:</div>
<blockquote type="cite">
<div dir="ltr">Hi Matt,
<div><br>
</div>
<div>><span style="font-size:12.8px">If you *are* using </span><span style="font-size:12.8px">1.1.0 then the default digest was changed between 1.0.2 and 1.1.0.</span></div>
<div>Awesome thought, but I'm also using 1.0.2:</div>
<div><br>
</div>
<div><span style="font-variant-ligatures:no-common-ligatures;font-family:Menlo;font-size:11px">$ openssl version</span></div>
<p class="gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo">
<span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">OpenSSL 1.0.2k-fips<span class="gmail-Apple-converted-space"> 
</span>26 Jan 2017</span></p>
<br>
(I also tried adding -md md5 to the previous command, but I got the same error message).<br>
</div>
</blockquote>
<div><br>
</div>
<div>Option #1 from the possibilities you mentioned below seems to be the most logical to me. If you use the wrong key, the padding data in the last block will also be decrypted to the wrong values, so the padding block check will fail. The padding is a necessary
 part of decryption because it needs to know how much plaintext is actually represented by that last block.</div>
<div><br>
</div>
<blockquote type="cite">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote type="cite"><span class="im HOEnZb"><br>
> I'm not sure how to interpret that output. I could interpret it as:<br>
> o Your system for decrypting the password is perfect, but: this is not<br>
> the right password.<br>
> o There's something wrong with the EPK -- its length must be a multiple<br>
> of the AES block length.<br>
> o There's something wrong with the unencrypted private key -- its length<br>
> must be a multiple of the AES block length.<br>
> o Something else entirely<br>
</span></blockquote>
</div>
<br>
</div>
</blockquote>
</body>
</html>