whitelist sec and brainpool curves

This commit is contained in:
Vincent Breitmoser committed 2017-04-24 19:28:29 +02:00
1 parent a380405c80
commit c313f45219
2 files changed
+12 -1

No files matched your search

@@ -35,6 +35,7 @@ import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.nist.NISTNamedCurves;
import org.bouncycastle.asn1.teletrust.TeleTrusTNamedCurves;
import org.bouncycastle.bcpg.PublicKeyAlgorithmTags;
import org.bouncycastle.crypto.ec.CustomNamedCurves;
import org.bouncycastle.util.encoders.Hex;
import org.openintents.openpgp.OpenPgpDecryptionResult;
import org.openintents.openpgp.OpenPgpSignatureResult;
@@ -210,6 +211,10 @@ public class KeyFormattingUtils {
if (name != null) {
return name;
}
name = CustomNamedCurves.getName(oid);
if (name != null) {
return name;
}
if (context != null) {
return context.getResources().getString(R.string.unknown);
} else {