/frameworks/base/core/java/android/content/pm/ |
Signature.aidl | 20 parcelable Signature;
|
Signature.java | 31 * Opaque, immutable representation of a signature associated with an 34 public class Signature implements Parcelable { 41 * Create Signature from an existing raw byte array. 43 public Signature(byte[] signature) { 44 mSignature = signature.clone(); 60 * Create Signature from a text representation previously returned by 64 * @param text hex-encoded string representing the signature 65 * @throws IllegalArgumentException when signature is odd-length 67 public Signature(String text) [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
SignatureTestMD2withRSA.java | 26 import java.security.Signature; 32 @AndroidOnly("Android doesn't include MD2withRSA signature algorithm") 38 Signature signature = Signature.getInstance("MD2withRSA"); local 39 fail("MD2withRSA for signature verification must not be supported"); 45 Signature signature = Signature.getInstance("MD2WithRSA"); local 46 fail("MD2withRSA for signature verification must not be supported") 52 Signature signature = Signature.getInstance("MD2WITHRSA"); local 59 Signature signature = Signature.getInstance("MD2withRSAEncryption"); local 66 Signature signature = Signature.getInstance("MD2WithRSAEncryption"); local 73 Signature signature = Signature.getInstance("MD2WITHRSAENCRYPTION"); local 80 Signature signature = Signature.getInstance("MD2\/RSA"); local 87 Signature signature = Signature.getInstance("1.2.840.113549.1.1.2"); local 100 Signature signature = Signature.getInstance("MD2withRSA"); local [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Signature2Test.java | 26 import java.security.Signature; 45 * @tests java.security.Signature#clone() 48 Signature s = Signature.getInstance("DSA"); 51 fail("A Signature may not be cloneable"); 53 // Expected - a Signature may not be cloneable 58 * @tests java.security.Signature#getAlgorithm() 61 String alg = Signature.getInstance("DSA").getAlgorithm(); 67 * @tests java.security.Signature#getInstance(java.lang.String) 70 Signature.getInstance("DSA") [all...] |
SignedObjectTest.java | 21 import java.security.Signature; 38 Signature sig = Signature.getInstance("SHA1withDSA"); 56 assertNotNull("signature is null", so.getSignature());
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
SignatureTest.java | 24 import android.content.pm.Signature; 30 @TestTargetClass(Signature.class) 42 Signature signature = new Signature(SIGNATURE_STRING); local 43 byte[] actualByteArray = signature.toByteArray(); 52 Signature signature = new Signature(sig); local 61 Signature signature = new Signature("123") local 69 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local 78 Signature signature = new Signature(sig); local 86 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local 96 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local 115 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local 133 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local 145 Signature signature = new Signature(SIGNATURE_BYTE_ARRAY); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
Signature2Test.java | 34 import java.security.Signature; 67 * java.security.Signature#clone() 70 Signature s = Signature.getInstance("DSA"); 79 * java.security.Signature#getAlgorithm() 82 String alg = Signature.getInstance("DSA").getAlgorithm(); 88 * java.security.Signature#getInstance(java.lang.String) 91 Signature.getInstance("DSA"); 94 Signature.getInstance("bogus"); 101 * java.security.Signature#getInstance(java.lang.String 109 Signature signature = Signature.getInstance("DSA", providers[i]); local [all...] |
SignedObjectTest.java | 21 import java.security.Signature; 37 import java.security.Signature; 51 Signature sig = Signature.getInstance("SHA1withDSA"); 69 assertNotNull("signature is null", so.getSignature());
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/ |
Signature_Impl2Test.java | 30 * Tests for <code>Signature</code> constructor and methods 58 * Class under test for Signature getInstance(String) 61 Signature sig = Signature.getInstance("ABC"); 66 * Class under test for Signature getInstance(String) 69 Signature sig = Signature.getInstance("CBA"); 74 * Class under test for Signature getInstance(String, String) 77 Signature sig = Signature.getInstance("ABC", "MyProvider"); [all...] |
/external/clang/test/CodeGen/ |
pointer-signext.c | 19 unsigned long long Signature; 31 return (int) Entry->Signature;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MySignature1.java | 28 import java.security.Signature; 32 * Tests implementation of Signature 35 public class MySignature1 extends Signature { 46 public static int SIGN = Signature.SIGN; 47 public static int VERIFY = Signature.VERIFY; 48 public static int UNINITIALIZED = Signature.UNINITIALIZED;
|
/packages/experimental/AndroidVendorSecurityTool/src/com/google/android/googlelogin/ |
GoogleAppsVerifier.java | 22 import android.content.pm.Signature; 37 * Magic signature strings. One is from the emulator in the SDK, and the 49 private static final Signature[] GOOGLEAPPS_PACKAGE_SIGNATURES = new Signature[] { 50 new Signature(SIGNATURE_1), new Signature(SIGNATURE_2) 57 * NOTE: This does *not* do any signature checking to ensure the
|
/libcore/dalvik/src/main/java/dalvik/annotation/ |
Signature.java | 25 * A "system annotation" used to provide the Signature attribute. 29 @interface Signature {}
|
/libcore/luni/src/test/java/libcore/java/security/ |
SignatureTest.java | 25 import java.security.Signature; 43 if (!type.equals("Signature")) { 49 // Signature.getInstance(String) 50 Signature sig1 = Signature.getInstance(algorithm); 54 // Signature.getInstance(String, Provider) 55 Signature sig2 = Signature.getInstance(algorithm, provider); 60 // Signature.getInstance(String, String) 61 Signature sig3 = Signature.getInstance(algorithm, provider.getName()) [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
PackageSignatures.java | 25 import android.content.pm.Signature; 32 Signature[] mSignatures; 40 PackageSignatures(Signature[] sigs) { 48 ArrayList<Signature> pastSignatures) throws IOException { 57 final Signature sig = mSignatures[i]; 62 Signature pastSig = pastSignatures.get(j); 78 void readXml(XmlPullParser parser, ArrayList<Signature> pastSignatures) 88 mSignatures = new Signature[count]; 111 Signature sig = pastSignatures.get(idx); 131 Signature sig = new Signature(key) [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
PackageSignatureTest.java | 24 import android.content.pm.Signature; 45 Set<Signature> wellKnownSignatures = getWellKnownSignatures(); 54 for (Signature signature : packageInfo.signatures) { 55 if (wellKnownSignatures.contains(signature)) { 66 private Set<Signature> getWellKnownSignatures() throws NotFoundException, IOException { 67 Set<Signature> wellKnownSignatures = new HashSet<Signature>(); 98 private Signature getSignature(int resId) throws NotFoundException, IOException { 108 return new Signature(output.toByteArray()) 129 Signature signature = packageInfo.signatures[i]; local [all...] |
/libcore/luni/src/main/java/java/security/ |
Signature.java | 30 * {@code Signature} is an engine class which is capable of creating and 36 public abstract class Signature extends SignatureSpi { 39 private static final String SERVICE = "Signature"; 51 * Constant that indicates that this {@code Signature} instance has not yet 57 * Constant that indicates that this {@code Signature} instance has been 63 * Constant that indicates that this {@code Signature} instance has been 69 * Represents the current state of this {@code Signature}. The three 76 * Constructs a new instance of {@code Signature} with the name of 82 protected Signature(String algorithm) { 87 * Returns a new instance of {@code Signature} that utilizes the specifie [all...] |
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
SignatureTest.java | 29 * Tests for <code>Signature</code> constructor and methods 49 assertEquals("state", Signature.UNINITIALIZED, s.getState()); 56 assertEquals("state", Signature.UNINITIALIZED, s.getState()); 67 assertEquals("state", Signature.VERIFY, s.getState()); 78 assertEquals("state", Signature.VERIFY, s.getState()); 89 assertEquals("state", Signature.SIGN, s.getState()); 100 assertEquals("state", Signature.SIGN, s.getState()); 125 assertEquals("state", Signature.SIGN, s.getState()); 150 assertEquals("state", Signature.VERIFY, s.getState()); 183 assertEquals("state", Signature.VERIFY, s.getState()) [all...] |
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
CryptoProviderTest.java | 25 import java.security.Signature; 65 Signature sign; 75 sign = Signature.getInstance(dsaNames[i], providerName);
|
/libcore/support/src/test/java/tests/security/ |
SignatureHelper.java | 24 import java.security.Signature; 44 Signature signature = null; local 46 signature = Signature.getInstance(algorithmName); 52 signature.initSign(encryptKey); 58 signature.update(plainData.getBytes()); 65 signed = signature.sign(); 71 signature.initVerify(decryptKey); 77 signature.update(plainData.getBytes()) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
SignedObjectTest.java | 28 import java.security.Signature; 45 private Signature sig; 51 sig = Signature.getInstance("SHA1withDSA");
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
MySignature1.java | 27 import java.security.Signature; 31 * Tests implementation of Signature 34 public class MySignature1 extends Signature {
|
/external/stlport/stlport/ |
functional | 123 template<typename Signature, typename Allocator > 125 template<typename Signature, typename Allocator> 126 void swap(function<Signature, Allocator>& f1, function<Signature, Allocator>& f2);
|
/hardware/ril/mock-ril/src/cpp/ |
node_util.h | 40 v8::Local<v8::Signature> __callback##_SIG = v8::Signature::New(templ); \
|
/ndk/sources/cxx-stl/stlport/stlport/ |
functional | 123 template<typename Signature, typename Allocator > 125 template<typename Signature, typename Allocator> 126 void swap(function<Signature, Allocator>& f1, function<Signature, Allocator>& f2);
|