Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java25 import java.security.Signature;
36 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature()
43 Signature signature = Signature.getInstance("MD2WithRSA"); in testSignature()
50 Signature signature = Signature.getInstance("MD2WITHRSA"); in testSignature()
57 Signature signature = Signature.getInstance("MD2withRSAEncryption"); in testSignature()
64 Signature signature = Signature.getInstance("MD2WithRSAEncryption"); in testSignature()
71 Signature signature = Signature.getInstance("MD2WITHRSAENCRYPTION"); in testSignature()
78 Signature signature = Signature.getInstance("MD2/RSA"); in testSignature()
85 Signature signature = Signature.getInstance("1.2.840.113549.1.1.2"); in testSignature()
97 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature2()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DSignature2Test.java34 import java.security.Signature;
71 Signature s = Signature.getInstance("DSA", new MySignatureProvider()); in test_clone()
72 Signature clone = (Signature) s.clone(); in test_clone()
78 s = Signature.getInstance("DSA"); in test_clone()
90 String alg = Signature.getInstance("DSA").getAlgorithm(); in test_getAlgorithm()
99 Signature.getInstance("DSA"); in test_getInstanceLjava_lang_String()
102 Signature.getInstance("bogus"); in test_getInstanceLjava_lang_String()
117 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
123 Signature.getInstance((String) null, (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
129 Signature.getInstance("DSA", (Provider) null); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider()
[all …]
DSignedObjectTest.java21 import java.security.Signature;
37 import java.security.Signature;
51 Signature sig = Signature.getInstance("SHA1withDSA"); in testSignedObject()
DSignatureTest.java31 import java.security.Signature;
123 Signature sig = getTestSignature(); in testInitVerifyPublicKey()
143 Signature sig = getTestSignature(); in testInitVerifyCertificate()
164 Signature signature = getTestSignature(); in testInitSignPrivateKey()
174 private Signature getTestSignature() throws NoSuchAlgorithmException { in getTestSignature()
179 return Signature.getInstance("ABC"); in getTestSignature()
198 Signature sig = getTestSignature(); in testInitSignPrivateKeySecureRandom()
355 Signature sig = getTestSignature(); in testUpdatebyte()
384 Signature sig = getTestSignature(); in testUpdatebyteArray()
392 Signature sig = getTestSignature(); in testUpdatebyteArray()
[all …]
DSignatureSpiTest.java13 import java.security.Signature;
83 Signature s = new Signature("dummy") { in testEngineGetParameters()
215 class MySignature extends Signature {
/libcore/luni/src/test/java/libcore/java/security/
DSignatureTest.java33 import java.security.Signature;
82 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success()
99 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_DoesNotSupportKeyClass_Success()
124 Signature s = Signature.getInstance("FOO"); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
151 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success()
187 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
205 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
226 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType()
236 private static class MySignature extends Signature {
280 Signature s = new MySignature("FOO"); in testSignature_signArray_nullArray_throws()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DSignatureBenchmark.java25 import java.security.Signature;
83 Signature signer = Signature.getInstance(signatureAlgorithm); in setUp()
93 Signature signer; in timeSign()
96 signer = Signature.getInstance(signatureAlgorithm, "AndroidOpenSSL"); in timeSign()
99 signer = Signature.getInstance(signatureAlgorithm, "BC"); in timeSign()
112 Signature verifier; in timeVerify()
115 verifier = Signature.getInstance(signatureAlgorithm, "AndroidOpenSSL"); in timeVerify()
118 verifier = Signature.getInstance(signatureAlgorithm, "BC"); in timeVerify()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMySignature1.java28 import java.security.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;
/libcore/ojluni/src/main/java/java/security/
DSignature.java249 public abstract class Signature extends SignatureSpi { class
305 protected Signature(String algorithm) { in Signature() method in Signature
353 public static Signature getInstance(String algorithm) in getInstance()
388 private static Signature getInstance(Instance instance, String algorithm) { in getInstance()
389 Signature sig; in getInstance()
390 if (instance.impl instanceof Signature) { in getInstance()
391 sig = (Signature)instance.impl; in getInstance()
433 && (instance instanceof Signature == false); in isSpi()
487 public static Signature getInstance(String algorithm, String provider) in getInstance()
537 public static Signature getInstance(String algorithm, Provider provider) in getInstance()
[all …]
DSignedObject.java147 Signature signingEngine) in SignedObject()
221 Signature verificationEngine) in verify()
238 private void sign(PrivateKey signingKey, Signature signingEngine) in sign()
/libcore/ojluni/annotations/mmodule/java/security/
DSignature.annotated.java37 public abstract class Signature extends java.security.SignatureSpi { class
39 protected Signature(java.lang.String algorithm) { throw new RuntimeException("Stub!"); } in Signature() method in Signature
41 public static java.security.Signature getInstance(java.lang.String algorithm) throws java.security.… in getInstance()
43 public static java.security.Signature getInstance(java.lang.String algorithm, java.lang.String prov… in getInstance()
45 public static java.security.Signature getInstance(java.lang.String algorithm, java.security.Provide… in getInstance()
/libcore/luni/src/test/java/libcore/sun/security/jca/
DProvidersTest.java34 import java.security.Signature;
73 return Signature.getInstance("sha224withrsa", "BC"); in BC_ALGORITHMS.add()
87 return Signature.getInstance("MD5withRSAEncryption", "BC"); in BC_ALGORITHMS.add()
108 return Signature.getInstance("SHA384/rsA", Security.getProvider("BC")); in BC_ALGORITHMS.add()
133 return Signature.getInstance("sha224withrsa"); in CONSCRYPT_ALGORITHMS.add()
145 return Signature.getInstance("MD5withRSAEncryption"); in CONSCRYPT_ALGORITHMS.add()
163 return Signature.getInstance("SHA384/rsA"); in CONSCRYPT_ALGORITHMS.add()
/libcore/ojluni/annotations/hiddenapi/java/security/
DSignature.java32 public abstract class Signature extends java.security.SignatureSpi { class
34 protected Signature(java.lang.String algorithm) { in Signature() method in Signature
38 public static java.security.Signature getInstance(java.lang.String algorithm) in getInstance()
44 private static java.security.Signature getInstance( in getInstance()
53 public static java.security.Signature getInstance( in getInstance()
59 public static java.security.Signature getInstance( in getInstance()
65 private static java.security.Signature getInstanceRSA(java.security.Provider p) in getInstanceRSA()
259 private static class Delegate extends java.security.Signature {
/libcore/luni/src/test/java/tests/security/cert/
DCertificateTest.java35 import java.security.Signature;
350 final Signature sig = Signature.getInstance("SHA1WithRSA"); in testVerifyPublicKeyString2()
402 final Signature sig = Signature.getInstance("SHA1WithRSA"); in testVerifyPublicKeyProvider2()
/libcore/mmodules/core_platform_api/api/platform/
Dcurrent-removed.txt1 // Signature format: 2.0
/libcore/mmodules/intracoreapi/api/intra/
Dcurrent-removed.txt1 // Signature format: 2.0
Dcurrent-api.txt1 // Signature format: 2.0
/libcore/ojluni/src/main/java/sun/security/x509/
DX509CRLImpl.java36 import java.security.Signature;
381 Signature sigVerf = null; in verify()
383 sigVerf = Signature.getInstance(sigAlgId.getName()); in verify()
385 sigVerf = Signature.getInstance(sigAlgId.getName(), sigProvider); in verify()
425 Signature sigVerf = null; in verify()
427 sigVerf = Signature.getInstance(sigAlgId.getName()); in verify()
429 sigVerf = Signature.getInstance(sigAlgId.getName(), sigProvider); in verify()
502 Signature sigEngine = null; in sign()
504 sigEngine = Signature.getInstance(algorithm); in sign()
506 sigEngine = Signature.getInstance(algorithm, provider); in sign()
DX509CertImpl.java449 Signature sigVerf = null; in verify()
451 sigVerf = Signature.getInstance(algId.getName()); in verify()
453 sigVerf = Signature.getInstance(algId.getName(), sigProvider); in verify()
494 Signature sigVerf = null; in verify()
496 sigVerf = Signature.getInstance(algId.getName()); in verify()
498 sigVerf = Signature.getInstance(algId.getName(), sigProvider); in verify()
572 Signature sigEngine = null; in sign()
574 sigEngine = Signature.getInstance(algorithm); in sign()
576 sigEngine = Signature.getInstance(algorithm, provider); in sign()
/libcore/dalvik/src/main/java/dalvik/annotation/
DSignature.java29 @interface Signature {} annotation
/libcore/ojluni/src/main/java/sun/security/pkcs/
DSignerInfo.java40 import java.security.Signature;
479 Signature sig = Signature.getInstance(algname); in verify()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/
DX509CertificateTest.java42 import java.security.Signature;
777 Signature signature = Signature.getInstance("MD5withRSA"); in testVerifyPublicKeyString()
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/
DX509V1CertImpl.java36 import java.security.Signature;
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPResponse.java640 Signature respSignature = Signature.getInstance(sigAlgId.getName()); in verifySignature()
/libcore/
Dnon_openjdk_java_files.bp37 "dalvik/src/main/java/dalvik/annotation/Signature.java",

12