/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 373 private void test_Signature(Signature sig, KeyPair keyPair) throws Exception { in test_Signature() argument 374 sig.initSign(keyPair.getPrivate()); in test_Signature() 375 sig.update(DATA); in test_Signature() 376 byte[] signature = sig.sign(); in test_Signature() 377 assertNotNull(sig.getAlgorithm(), signature); in test_Signature() 378 assertTrue(sig.getAlgorithm(), signature.length > 0); in test_Signature() 380 sig.initVerify(keyPair.getPublic()); in test_Signature() 381 sig.update(DATA); in test_Signature() 382 assertTrue(sig.getAlgorithm(), sig.verify(signature)); in test_Signature() 385 sig.update(DATA); in test_Signature() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | Signature2Test.java | 188 Signature sig = Signature.getInstance("DSA"); in test_getParameters() local 190 sig.getParameters(); in test_getParameters() 211 Signature sig = Signature.getInstance("DSA"); in test_getParameterLjava_lang_String() local 214 sig.getParameter("r"); in test_getParameterLjava_lang_String() 215 sig.getParameter("s"); in test_getParameterLjava_lang_String() 243 Signature sig = Signature.getInstance("DSA"); in test_initSignLjava_security_PrivateKeyLjava_security_SecureRandom() local 244 sig.initSign(getDsaKeys().getPrivate(), new SecureRandom()); in test_initSignLjava_security_PrivateKeyLjava_security_SecureRandom() 250 Signature sig = Signature.getInstance("DSA"); in test_initSignLjava_security_PrivateKeyLjava_security_SecureRandom_mismatch() local 251 sig.initSign(getRsaKeys().getPrivate(), new SecureRandom()); in test_initSignLjava_security_PrivateKeyLjava_security_SecureRandom_mismatch() 303 Signature sig = Signature.getInstance("DSA"); in test_setParameterLjava_lang_StringLjava_lang_Object() local [all …]
|
D | SignatureTest.java | 122 Signature sig = getTestSignature(); in testInitVerifyPublicKey() local 123 sig.initVerify((PublicKey)null); in testInitVerifyPublicKey() 142 Signature sig = getTestSignature(); in testInitVerifyCertificate() local 143 sig.initVerify(new MyCertificate()); in testInitVerifyCertificate() 197 Signature sig = getTestSignature(); in testInitSignPrivateKeySecureRandom() local 198 sig.initSign(null, null); in testInitSignPrivateKeySecureRandom() 354 Signature sig = getTestSignature(); in testUpdatebyte() local 355 sig.update((byte) 42); in testUpdatebyte() 383 Signature sig = getTestSignature(); in testUpdatebyteArray() local 384 sig.update(b); in testUpdatebyteArray() [all …]
|
D | SignedObjectTest.java | 51 Signature sig = Signature.getInstance("SHA1withDSA"); in testSignedObject() local 62 SignedObject so = new SignedObject(prop, tkp.getPrivate(), sig); in testSignedObject() 67 assertTrue("verify() failed", so.verify(tkp.getPublic(), sig)); in testSignedObject()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | HandshakeMessage.java | 727 Signature sig; in DH_ServerKeyExchange() local 730 sig = JsseJce.getSignature(signAlgorithm.getAlgorithmName()); in DH_ServerKeyExchange() 734 sig = JsseJce.getSignature(JsseJce.SIGNATURE_DSA); in DH_ServerKeyExchange() 736 sig = RSASignature.getInstance(); in DH_ServerKeyExchange() 740 sig.initSign(key, sr); in DH_ServerKeyExchange() 741 updateSignature(sig, clntNonce, svrNonce); in DH_ServerKeyExchange() 742 signature = sig.sign(); in DH_ServerKeyExchange() 820 Signature sig; in DH_ServerKeyExchange() local 823 sig = JsseJce.getSignature( in DH_ServerKeyExchange() 827 sig = JsseJce.getSignature(JsseJce.SIGNATURE_DSA); in DH_ServerKeyExchange() [all …]
|
D | RSASignature.java | 88 static void setHashes(Signature sig, MessageDigest md5, MessageDigest sha) { in setHashes() argument 89 sig.setParameter("hashes", new MessageDigest[] {md5, sha}); in setHashes()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SignatureSpi.java | 227 byte[] sig = engineSign(); in engineSign() 228 if (len < sig.length) { in engineSign() 232 if (outbuf.length - offset < sig.length) { in engineSign() 237 System.arraycopy(sig, 0, outbuf, offset, sig.length); in engineSign() 238 return sig.length; in engineSign()
|
D | Signature.java | 344 Signature sig; in getInstance() local 346 sig = (Signature)instance.impl; in getInstance() 349 sig = new Delegate(spi, algorithm); in getInstance() 351 sig.provider = instance.provider; in getInstance() 352 return sig; in getInstance()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | ZipInputStream.java | 383 long sig = get32(tmpbuf, 0); in readEnd() local 384 if (sig != EXTSIG) { // no EXTSIG present in readEnd() 385 e.crc = sig; in readEnd() 397 long sig = get32(tmpbuf, 0); in readEnd() local 398 if (sig != EXTSIG) { // no EXTSIG present in readEnd() 399 e.crc = sig; in readEnd()
|
/libcore/ojluni/src/main/native/ |
D | jni_util.h | 227 const char *sig); 233 const char *sig, 241 const char *sig); 247 const char *sig,
|
D | NativeThread.c | 46 nullHandler(int sig) in nullHandler() argument
|
D | jvm.h | 581 JVM_RegisterSignal(jint sig, void *handler); 584 JVM_RaiseSignal(jint sig);
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SignerInfo.java | 383 Signature sig = Signature.getInstance(algname); in verify() local 426 sig.initVerify(key); in verify() 431 sig.update(buffer, 0 , read); in verify() 433 if (sig.verify(encryptedDigest)) { in verify()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 322 final Signature sig = Signature.getInstance("SHA1WithRSA"); in testVerifyPublicKeyString2() local 323 sig.initVerify(cert.getPublicKey()); in testVerifyPublicKeyString2() 324 final Provider provider = sig.getProvider(); in testVerifyPublicKeyString2()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1720 MemberSignature sig = fieldSigs[i]; in computeDefaultSUID() local 1721 int mods = sig.member.getModifiers() & in computeDefaultSUID() 1728 dout.writeUTF(sig.name); in computeDefaultSUID() 1730 dout.writeUTF(sig.signature); in computeDefaultSUID() 1753 MemberSignature sig = consSigs[i]; in computeDefaultSUID() local 1754 int mods = sig.member.getModifiers() & in computeDefaultSUID() 1762 dout.writeUTF(sig.signature.replace('/', '.')); in computeDefaultSUID() 1780 MemberSignature sig = methSigs[i]; in computeDefaultSUID() local 1781 int mods = sig.member.getModifiers() & in computeDefaultSUID() 1787 dout.writeUTF(sig.name); in computeDefaultSUID() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Posix.cpp | 1244 static void Posix_kill(JNIEnv* env, jobject, jint pid, jint sig) { in Posix_kill() argument 1245 throwIfMinusOne(env, "kill", TEMP_FAILURE_RETRY(kill(pid, sig))); in Posix_kill()
|