Home
last modified time | relevance | path

Searched refs:Asn1Type (Results 1 – 25 of 27) sorted by relevance

12

/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java316 @Asn1Class(type = Asn1Type.SEQUENCE)
319 @Asn1Class(type = Asn1Type.SEQUENCE)
321 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
324 @Asn1Field(index = 2, type = Asn1Type.INTEGER)
327 @Asn1Field(index = 3, type = Asn1Type.INTEGER)
330 @Asn1Field(index = 4, type = Asn1Type.INTEGER)
333 @Asn1Field(index = 5, type = Asn1Type.INTEGER)
337 @Asn1Class(type = Asn1Type.SEQUENCE)
339 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
343 @Asn1Class(type = Asn1Type.SEQUENCE)
[all …]
DAsn1DerEncoderTest.java222 @Asn1Class(type = Asn1Type.SEQUENCE)
225 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
233 @Asn1Class(type = Asn1Type.SEQUENCE)
236 @Asn1Field(index = 1, type = Asn1Type.OBJECT_IDENTIFIER)
244 @Asn1Class(type = Asn1Type.SEQUENCE)
247 @Asn1Field(index = 1, type = Asn1Type.OCTET_STRING)
255 @Asn1Class(type = Asn1Type.SEQUENCE)
258 @Asn1Field(index = 1, type = Asn1Type.BIT_STRING)
266 @Asn1Class(type = Asn1Type.CHOICE)
269 @Asn1Field(type = Asn1Type.INTEGER)
[all …]
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DTBSCertificate.java21 import com.android.apksig.internal.asn1.Asn1Type;
32 @Asn1Class(type = Asn1Type.SEQUENCE)
37 type = Asn1Type.INTEGER,
41 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
44 @Asn1Field(index = 2, type = Asn1Type.SEQUENCE)
47 @Asn1Field(index = 3, type = Asn1Type.CHOICE)
50 @Asn1Field(index = 4, type = Asn1Type.SEQUENCE)
53 @Asn1Field(index = 5, type = Asn1Type.CHOICE)
56 @Asn1Field(index = 6, type = Asn1Type.SEQUENCE)
60 type = Asn1Type.BIT_STRING,
[all …]
DExtension.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
30 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
33 @Asn1Field(index = 1, type = Asn1Type.BOOLEAN, optional = true)
36 @Asn1Field(index = 2, type = Asn1Type.OCTET_STRING)
DCertificate.java21 import com.android.apksig.internal.asn1.Asn1Type;
29 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 0, type = Asn1Type.SEQUENCE)
34 @Asn1Field(index = 1, type = Asn1Type.SEQUENCE)
37 @Asn1Field(index = 2, type = Asn1Type.BIT_STRING)
DTime.java21 import com.android.apksig.internal.asn1.Asn1Type;
26 @Asn1Class(type = Asn1Type.CHOICE)
29 @Asn1Field(type = Asn1Type.UTC_TIME)
32 @Asn1Field(type = Asn1Type.GENERALIZED_TIME)
DValidity.java21 import com.android.apksig.internal.asn1.Asn1Type;
26 @Asn1Class(type = Asn1Type.SEQUENCE)
29 @Asn1Field(index = 0, type = Asn1Type.CHOICE)
32 @Asn1Field(index = 1, type = Asn1Type.CHOICE)
DRSAPublicKey.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
30 @Asn1Field(index = 0, type = Asn1Type.INTEGER)
33 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
DAttributeTypeAndValue.java22 import com.android.apksig.internal.asn1.Asn1Type;
27 @Asn1Class(type = Asn1Type.SEQUENCE)
30 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
33 @Asn1Field(index = 1, type = Asn1Type.ANY)
DSubjectPublicKeyInfo.java21 import com.android.apksig.internal.asn1.Asn1Type;
29 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 0, type = Asn1Type.SEQUENCE)
34 @Asn1Field(index = 1, type = Asn1Type.BIT_STRING)
DName.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.CHOICE)
32 @Asn1Field(index = 0, type = Asn1Type.SEQUENCE_OF)
DRelativeDistinguishedName.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.UNENCODED_CONTAINER)
31 @Asn1Field(index = 0, type = Asn1Type.SET_OF)
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/
DAsn1DerEncoder.java62 Asn1Type containerType = containerAnnotation.type(); in encode()
163 …private static byte[] toSetOf(Collection<?> values, Asn1Type elementType) throws Asn1EncodingExcep… in toSetOf()
167 …private static byte[] toSequenceOf(Collection<?> values, Asn1Type elementType) throws Asn1Encoding… in toSequenceOf()
171 … private static byte[] toSequenceOrSetOf(Collection<?> values, Asn1Type elementType, boolean toSet) in toSequenceOrSetOf()
350 private final Asn1Type mDataType;
351 private final Asn1Type mElementDataType;
380 } else if ((mDataType == Asn1Type.CHOICE) || (mDataType == Asn1Type.ANY)) { in AnnotatedField()
502 public static byte[] toDer(Object source, Asn1Type targetType, Asn1Type targetElementType) in toDer()
512 if ((targetType == null) || (targetType == Asn1Type.ANY)) { in toDer()
566 && (containerAnnotation.type() == Asn1Type.SEQUENCE)) { in toDer()
[all …]
DAsn1BerParser.java119 Asn1Type dataType = getContainerAsn1Type(containerClass); in parse()
312 private static Asn1Type getContainerAsn1Type(Class<?> containerClass) in getContainerAsn1Type()
353 private final Asn1Type mDataType;
379 } else if ((mDataType == Asn1Type.CHOICE) || (mDataType == Asn1Type.ANY)) { in AnnotatedField()
562 Object obj, Field field, Asn1Type type, BerDataValue dataValue) in setFieldValue()
590 Asn1Type sourceType, in convert()
651 && (containerAnnotation.type() == Asn1Type.SEQUENCE)) { in convert()
661 && (containerAnnotation.type() == Asn1Type.CHOICE)) { in convert()
DAsn1Field.java32 public Asn1Type type(); in type()
44 public Asn1Type elementType() default Asn1Type.ANY; in elementType()
/tools/apksig/src/main/java/com/android/apksig/internal/pkcs7/
DSignerInfo.java22 import com.android.apksig.internal.asn1.Asn1Type;
30 @Asn1Class(type = Asn1Type.SEQUENCE)
33 @Asn1Field(index = 0, type = Asn1Type.INTEGER)
36 @Asn1Field(index = 1, type = Asn1Type.CHOICE)
39 @Asn1Field(index = 2, type = Asn1Type.SEQUENCE)
44 type = Asn1Type.SET_OF,
49 @Asn1Field(index = 4, type = Asn1Type.SEQUENCE)
52 @Asn1Field(index = 5, type = Asn1Type.OCTET_STRING)
57 type = Asn1Type.SET_OF,
DSignedData.java22 import com.android.apksig.internal.asn1.Asn1Type;
30 @Asn1Class(type = Asn1Type.SEQUENCE)
33 @Asn1Field(index = 0, type = Asn1Type.INTEGER)
36 @Asn1Field(index = 1, type = Asn1Type.SET_OF)
39 @Asn1Field(index = 2, type = Asn1Type.SEQUENCE)
44 type = Asn1Type.SET_OF,
51 type = Asn1Type.SET_OF,
56 @Asn1Field(index = 5, type = Asn1Type.SET_OF)
DAttribute.java22 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
34 @Asn1Field(index = 1, type = Asn1Type.SET_OF)
DAlgorithmIdentifier.java22 import com.android.apksig.internal.asn1.Asn1Type;
27 @Asn1Class(type = Asn1Type.SEQUENCE)
30 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
33 @Asn1Field(index = 1, type = Asn1Type.ANY, optional = true)
DContentInfo.java22 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 1, type = Asn1Type.OBJECT_IDENTIFIER)
34 @Asn1Field(index = 2, type = Asn1Type.ANY, tagging = Asn1Tagging.EXPLICIT, tagNumber = 0)
DSignerIdentifier.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.CHOICE)
31 @Asn1Field(type = Asn1Type.SEQUENCE)
34 @Asn1Field(type = Asn1Type.OCTET_STRING, tagging = Asn1Tagging.IMPLICIT, tagNumber = 0)
DIssuerAndSerialNumber.java22 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 0, type = Asn1Type.ANY)
34 @Asn1Field(index = 1, type = Asn1Type.INTEGER)
DEncapsulatedContentInfo.java21 import com.android.apksig.internal.asn1.Asn1Type;
28 @Asn1Class(type = Asn1Type.SEQUENCE)
31 @Asn1Field(index = 0, type = Asn1Type.OBJECT_IDENTIFIER)
36 type = Asn1Type.OCTET_STRING,
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeVerifier.java28 import com.android.apksig.internal.asn1.Asn1Type;
2088 @Asn1Class(type = Asn1Type.CHOICE)
2090 @Asn1Field(type = Asn1Type.OCTET_STRING)
2094 @Asn1Class(type = Asn1Type.CHOICE)
2096 @Asn1Field(type = Asn1Type.OBJECT_IDENTIFIER)
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ber/
DBerEncoding.java19 import com.android.apksig.internal.asn1.Asn1Type;
103 public static int getTagNumber(Asn1Type dataType) { in getTagNumber()

12