@@ -291,13 +291,13 @@ public class ImportKeysAdapter extends RecyclerView.Adapter<ImportKeysAdapter.Vi
|
|||||||
entry.setExpired(keyRing.isExpired());
|
entry.setExpired(keyRing.isExpired());
|
||||||
entry.setSecure(keyRing.isSecure());
|
entry.setSecure(keyRing.isSecure());
|
||||||
|
|
||||||
int algorithmId = keyRing.getPublicKey().getAlgorithm();
|
if (entry.getAlgorithm() == null) {
|
||||||
int bitSize = keyRing.getPublicKey().getBitStrength();
|
int algorithmId = keyRing.getPublicKey().getAlgorithm();
|
||||||
String algoInfo = KeyFormattingUtils.getAlgorithmInfo(algorithmId, bitSize, null);
|
Integer bitSize = keyRing.getPublicKey().getBitStrength();
|
||||||
if(entry.getAlgorithm() == null){
|
String oid = keyRing.getPublicKey().getCurveOid();
|
||||||
|
String algoInfo = KeyFormattingUtils.getAlgorithmInfo(algorithmId, bitSize, oid);
|
||||||
|
|
||||||
entry.setAlgorithm(algoInfo);
|
entry.setAlgorithm(algoInfo);
|
||||||
} else if ( !entry.getAlgorithm().equalsIgnoreCase(algoInfo)){
|
|
||||||
// TODO: handle(?)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Date expectedDate = entry.getDate();
|
Date expectedDate = entry.getDate();
|
||||||
|
|||||||
Reference in New Issue
Block a user