Home
last modified time | relevance | path

Searched refs:oid (Results 1 – 5 of 5) sorted by relevance

/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DAlgorithmIdentifier.java20 import static com.android.apksig.internal.oid.OidConstants.OID_DIGEST_SHA1;
21 import static com.android.apksig.internal.oid.OidConstants.OID_DIGEST_SHA256;
22 import static com.android.apksig.internal.oid.OidConstants.OID_SIG_DSA;
23 import static com.android.apksig.internal.oid.OidConstants.OID_SIG_EC_PUBLIC_KEY;
24 import static com.android.apksig.internal.oid.OidConstants.OID_SIG_RSA;
25 import static com.android.apksig.internal.oid.OidConstants.OID_SIG_SHA256_WITH_DSA;
26 import static com.android.apksig.internal.oid.OidConstants.OID_TO_JCA_DIGEST_ALG;
27 import static com.android.apksig.internal.oid.OidConstants.OID_TO_JCA_SIGNATURE_ALG;
161 public static String getJcaDigestAlgorithm(String oid) in getJcaDigestAlgorithm() argument
163 String result = OID_TO_JCA_DIGEST_ALG.get(oid); in getJcaDigestAlgorithm()
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1DerEncoderTest.java237 public String oid; field in Asn1DerEncoderTest.SequenceWithOid
239 public SequenceWithOid(String oid) { in SequenceWithOid() argument
240 this.oid = oid; in SequenceWithOid()
273 public String oid; field in Asn1DerEncoderTest.Choice
275 public Choice(Integer num, String oid) { in Choice() argument
277 this.oid = oid; in Choice()
284 public static Choice of(String oid) { in of() argument
285 return new Choice(null, oid); in of()
307 public String oid; field in Asn1DerEncoderTest.Sequence
312 public Sequence(BigInteger num, String oid, byte[] octets) { in Sequence() argument
[all …]
DAsn1BerParserTest.java120 assertEquals("2.100.3", parse("30050603813403", SequenceWithOid.class).oid); in testOid()
123 parse("300b0609608648016503040201", SequenceWithOid.class).oid); in testOid()
184 assertNull(c.oid); in testChoiceWithDifferentTypedOptions()
189 assertEquals("0.0", c.oid); in testChoiceWithDifferentTypedOptions()
340 public String oid; field in Asn1BerParserTest.SequenceWithOid
372 public String oid; field in Asn1BerParserTest.ChoiceWithTwoOptions
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java269 private static byte[] toOid(String oid) throws Asn1EncodingException { in toOid() argument
271 String[] nodes = oid.split("\\."); in toOid()
274 "OBJECT IDENTIFIER must contain at least two nodes: " + oid); in toOid()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java19 import static com.android.apksig.internal.oid.OidConstants.getSigAlgSupportedApiLevels;
36 import com.android.apksig.internal.oid.OidConstants;