Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/identity/src/android/security/identity/cts/
DUtilUnitTests.java274 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, null); in coseSignAndVerify()
275 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerify()
276 assertArrayEquals(data, Util.coseSign1GetData(sig)); in coseSignAndVerify()
277 assertEquals(new ArrayList() {}, Util.coseSign1GetX5Chain(sig)); in coseSignAndVerify()
285 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, null); in coseSignAndVerifyDetachedContent()
286 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerifyDetachedContent()
287 assertArrayEquals(data, Util.coseSign1GetData(sig)); in coseSignAndVerifyDetachedContent()
288 assertEquals(new ArrayList() {}, Util.coseSign1GetX5Chain(sig)); in coseSignAndVerifyDetachedContent()
298 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, certs); in coseSignAndVerifySingleCertificate()
299 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerifySingleCertificate()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java2079 Signature sig = Signature.getInstance("SHA256withRSA"); in testKeyStore_LargeNumberOfKeysSupported_RSA() local
2080 sig.initSign(keystorePrivateKey1); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2081 sig.update(message); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2082 byte[] signature = sig.sign(); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2083 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2084 sig.initVerify(cert1.getPublicKey()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2085 sig.update(message); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2086 assertTrue(sig.verify(signature)); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2088 sig = Signature.getInstance(sig.getAlgorithm()); in testKeyStore_LargeNumberOfKeysSupported_RSA()
2089 sig.initSign(keystorePrivateKey2); in testKeyStore_LargeNumberOfKeysSupported_RSA()
[all …]
DSignatureTest.java1196 Signature sig = (provider != null) in assertSignatureVerifiesOneShot() local
1198 sig.initVerify(publicKey); in assertSignatureVerifiesOneShot()
1199 sig.update(message); in assertSignatureVerifiesOneShot()
1200 if (!sig.verify(signature)) { in assertSignatureVerifiesOneShot()
1202 + ", provider: " + sig.getProvider().getName() in assertSignatureVerifiesOneShot()
1214 Signature sig = (provider != null) in assertSignatureDoesNotVerifyOneShot() local
1216 sig.initVerify(publicKey); in assertSignatureDoesNotVerifyOneShot()
1217 sig.update(message); in assertSignatureDoesNotVerifyOneShot()
1218 if (sig.verify(signature)) { in assertSignatureDoesNotVerifyOneShot()
1220 + ", provider: " + sig.getProvider().getName() in assertSignatureDoesNotVerifyOneShot()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DSignatureTest.java46 String sig = null; in testSignatureStringConstructorNull() local
49 Signature signature = new Signature(sig); in testSignatureStringConstructorNull()
72 byte[] sig = null; in testSignatureByteArrayConstructorNull()
75 Signature signature = new Signature(sig); in testSignatureByteArrayConstructorNull()
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c136 const char *name, const char *sig) { in findStaticMethod() argument
138 name, sig); in findStaticMethod()
142 name, sig); in findStaticMethod()
152 const char *name, const char *sig) { in findInstanceMethod() argument
153 jmethodID result = CALL(GetMethodID, InstanceFromNative, name, sig); in findInstanceMethod()
157 name, sig); in findInstanceMethod()
169 callType ct, const char *name, const char *sig) { in findAppropriateMethod() argument
172 return findStaticMethod(env, errorMsg, name, sig); in findAppropriateMethod()
174 return findInstanceMethod(env, errorMsg, name, sig); in findAppropriateMethod()
/cts/tests/security/src/android/keystore/cts/
DAttestationApplicationId.java105 for (byte[] sig : signatureDigests) { in toString()
107 for (byte b : sig) { in toString()
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java69 for (Signature sig : info.signatures) {
70 out.add(sig.toByteArray()); in sig.toByteArray()