/libcore/luni/src/test/java/tests/targets/security/ |
D | SignatureTestMD2withRSA.java | 25 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/ |
D | Signature2Test.java | 34 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 …]
|
D | SignedObjectTest.java | 21 import java.security.Signature; 37 import java.security.Signature; 51 Signature sig = Signature.getInstance("SHA1withDSA"); in testSignedObject()
|
D | SignatureTest.java | 31 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 …]
|
D | SignatureSpiTest.java | 13 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/ |
D | SignatureTest.java | 37 import java.security.Signature; 89 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success() 106 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_DoesNotSupportKeyClass_Success() 131 Signature s = Signature.getInstance("FOO"); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException() 158 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() 194 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() 212 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() 233 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() 243 private static class MySignature extends Signature { 287 Signature s = new MySignature("FOO"); in testSignature_signArray_nullArray_throws() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 25 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/ |
D | MySignature1.java | 28 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/ |
D | Signature.java | 249 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() 386 private static Signature getInstance(Instance instance, String algorithm) { in getInstance() 387 Signature sig; in getInstance() 388 if (instance.impl instanceof Signature) { in getInstance() 389 sig = (Signature)instance.impl; in getInstance() 431 && (instance instanceof Signature == false); in isSpi() 485 public static Signature getInstance(String algorithm, String provider) in getInstance() 533 public static Signature getInstance(String algorithm, Provider provider) in getInstance() [all …]
|
D | SignedObject.java | 147 Signature signingEngine) in SignedObject() 221 Signature verificationEngine) in verify() 238 private void sign(PrivateKey signingKey, Signature signingEngine) in sign()
|
/libcore/support/src/test/java/tests/security/ |
D | SignatureHelper.java | 24 import java.security.Signature; 43 Signature signature = Signature.getInstance(algorithmName); in test()
|
D | AlgorithmParameterSignatureHelper.java | 25 import java.security.Signature; 45 Signature signature = Signature.getInstance(algorithmName); in test()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 35 import java.security.Signature; 350 final Signature sig = Signature.getInstance("SHA1WithRSA"); in testVerifyPublicKeyString2() 402 final Signature sig = Signature.getInstance("SHA1WithRSA"); in testVerifyPublicKeyProvider2()
|
/libcore/dalvik/src/main/java/dalvik/annotation/ |
D | Signature.java | 29 @interface Signature {} annotation
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | X509CRLImpl.java | 36 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()
|
D | X509CertImpl.java | 447 Signature sigVerf = null; in verify() 449 sigVerf = Signature.getInstance(algId.getName()); in verify() 451 sigVerf = Signature.getInstance(algId.getName(), sigProvider); in verify() 492 Signature sigVerf = null; in verify() 494 sigVerf = Signature.getInstance(algId.getName()); in verify() 496 sigVerf = Signature.getInstance(algId.getName(), sigProvider); in verify() 570 Signature sigEngine = null; in sign() 572 sigEngine = Signature.getInstance(algorithm); in sign() 574 sigEngine = Signature.getInstance(algorithm, provider); in sign()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/parameter/ |
D | ParameterMetadataTestClasses$GenericParameter.smali | 46 .annotation system Ldalvik/annotation/Signature; 77 .annotation system Ldalvik/annotation/Signature;
|
D | ParameterMetadataTestClasses.smali | 88 .annotation system Ldalvik/annotation/Signature; 112 .annotation system Ldalvik/annotation/Signature; 135 .annotation system Ldalvik/annotation/Signature;
|
D | ParameterMetadataTestClasses$InnerClass.smali | 91 .annotation system Ldalvik/annotation/Signature;
|
D | ParameterMetadataTestClasses$1.smali | 36 .annotation system Ldalvik/annotation/Signature;
|
D | ParameterMetadataTestClasses$TestEnum.smali | 33 .annotation system Ldalvik/annotation/Signature;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
D | X509CertificateTest.java | 42 import java.security.Signature; 777 Signature signature = Signature.getInstance("MD5withRSA"); in testVerifyPublicKeyString()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SignerInfo.java | 42 import java.security.Signature; 466 Signature sig = Signature.getInstance(algname); in verify()
|
/libcore/ojluni/src/main/java/com/sun/security/cert/internal/x509/ |
D | X509V1CertImpl.java | 36 import java.security.Signature;
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | OCSPResponse.java | 640 Signature respSignature = Signature.getInstance(sigAlgId.getName()); in verifySignature()
|