change how empty private cheks happen, speeds things up

This commit is contained in:
Ash Hughes
2013-03-18 16:07:34 +00:00
parent 2ccd3796c4
commit 12d6cfefd7
3 changed files with 12 additions and 11 deletions

View File

@@ -164,9 +164,7 @@ public class PgpHelper {
for (int i = 0; i < signingKeys.size(); ++i) {
PGPSecretKey key = signingKeys.get(i);
if (key.isMasterKey()) {
if (!isSecretKeyPrivateEmpty(key)) {
masterKey = key;
}
masterKey = key;
} else {
usableKeys.add(key);
}