/libcore/luni/src/test/java/tests/targets/security/ |
D | SignatureTestMD2withRSA.java | 36 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature() local 43 Signature signature = Signature.getInstance("MD2WithRSA"); in testSignature() local 50 Signature signature = Signature.getInstance("MD2WITHRSA"); in testSignature() local 57 Signature signature = Signature.getInstance("MD2withRSAEncryption"); in testSignature() local 64 Signature signature = Signature.getInstance("MD2WithRSAEncryption"); in testSignature() local 71 Signature signature = Signature.getInstance("MD2WITHRSAENCRYPTION"); in testSignature() local 78 Signature signature = Signature.getInstance("MD2/RSA"); in testSignature() local 85 Signature signature = Signature.getInstance("1.2.840.113549.1.1.2"); in testSignature() local 97 Signature signature = Signature.getInstance("MD2withRSA"); in testSignature2() local 98 signature = Signature.getInstance("MD2WithRSA"); in testSignature2() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamField.java | 49 private final String signature; field in ObjectStreamField 94 signature = getClassSignature(type).intern(); in ObjectStreamField() 102 ObjectStreamField(String name, String signature, boolean unshared) { in ObjectStreamField() argument 107 this.signature = signature.intern(); in ObjectStreamField() 111 switch (signature.charAt(0)) { in ObjectStreamField() 140 signature = getClassSignature(ftype).intern(); in ObjectStreamField() 197 return signature.charAt(0); in getTypeCode() 207 return isPrimitive() ? null : signature; in getTypeString() 239 char tcode = signature.charAt(0); in isPrimitive() 275 return signature + ' ' + name; in toString() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureSpiTest.java | 313 MySignature signature = new MySignature("dummy"); in testEngineInitSign_PrivateKey_SecureRandom() local 316 signature.initSign(null, null); in testEngineInitSign_PrivateKey_SecureRandom() 317 assertTrue("SPI method not called", signature in testEngineInitSign_PrivateKey_SecureRandom() 326 MySignature signature = new MySignature("dummy"); in testEngineSetParameter() local 329 signature.setParameter(null); in testEngineSetParameter() 332 signature in testEngineSetParameter() 340 MySignature signature = new MySignature("dummy"); in testEngineSign_BII() local 342 signature.initSign(new PrivateKey() { in testEngineSign_BII() 361 signature.sign(buf, 2, 1); in testEngineSign_BII() 362 assertTrue("SPI method not called", signature in testEngineSign_BII() [all …]
|
D | Signature2Test.java | 117 Signature signature = Signature.getInstance("DSA", providers[i]); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() local 118 assertEquals("DSA", signature.getAlgorithm()); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 119 assertEquals(providers[i], signature.getProvider()); in test_getInstanceLjava_lang_StringLjava_lang_String_java_security_Provider() 445 byte[] signature = sig.sign(); in test_verify$B() 449 assertTrue("Sign/Verify does not pass", sig.verify(signature)); in test_verify$B() 459 byte[] signature = sig.sign(); in test_verify$BII() 463 assertTrue("Sign/Verify does not pass", sig.verify(signature, 0, in test_verify$BII() 464 signature.length)); in test_verify$BII() 467 sig.verify(null, 0, signature.length); in test_verify$BII() 473 sig.verify(signature, -5, signature.length); in test_verify$BII() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | SignedObject.java | 130 private byte[] signature; field in SignedObject 194 return this.signature.clone(); in getSignature() 225 return verificationEngine.verify(this.signature.clone()); in verify() 243 this.signature = signingEngine.sign().clone(); in sign() 255 signature = ((byte[])fields.get("signature", null)).clone(); in readObject()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 62 private byte[] signature; field in SignatureBenchmark 81 this.signature = SIGNATURES.get(signatureAlgorithm); in setUp() 82 if (this.signature == null) { in setUp() 86 this.signature = signer.sign(); in setUp() 87 SIGNATURES.put(signatureAlgorithm, signature); in setUp() 125 verifier.verify(signature); in timeVerify()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldAndroidClassTest.java | 145 String signature = method.toString(); in testClassGetMethodsNoDupes() local 147 int par = signature.indexOf('('); in testClassGetMethodsNoDupes() 148 int dot = signature.lastIndexOf('.', par); in testClassGetMethodsNoDupes() 150 signature = signature.substring(dot + 1); in testClassGetMethodsNoDupes() 152 assertFalse("Duplicate " + signature, set.contains(signature)); in testClassGetMethodsNoDupes() 153 set.add(signature); in testClassGetMethodsNoDupes() 192 private boolean hasMethod(Method[] methods, String signature) { in hasMethod() argument 194 if (method.toString().contains(signature)) { in hasMethod()
|
D | MethodOverridesTest.java | 101 if (signature(method).equals("void visibility[] throws []")) { in testSubclassChangesVisibility() 118 if (signature(method).equals("void unchanged[] throws []")) { in testMoreVisibleSubclassChangesVisibility() 160 private String signature(Method method) { in signature() method in MethodOverridesTest 169 signatures.add(signature(method)); in signatures()
|
/libcore/ojluni/src/main/native/ |
D | jni_util.c | 194 const char *signature, in JNU_CallStaticMethodByName() argument 201 const char *p = signature; in JNU_CallStaticMethodByName() 216 mid = (*env)->GetStaticMethodID(env, clazz, name, signature); in JNU_CallStaticMethodByName() 219 va_start(args, signature); in JNU_CallStaticMethodByName() 271 const char *signature, in JNU_CallMethodByName() argument 277 va_start(args, signature); in JNU_CallMethodByName() 278 result = JNU_CallMethodByNameV(env, hasException, obj, name, signature, in JNU_CallMethodByName() 291 const char *signature, in JNU_CallMethodByNameV() argument 297 const char *p = signature; in JNU_CallMethodByNameV() 310 mid = (*env)->GetMethodID(env, clazz, name, signature); in JNU_CallMethodByNameV() [all …]
|
D | Inet4Address.c | 31 #define NATIVE_METHOD(className, functionName, signature) \ argument 32 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | Float.c | 31 #define NATIVE_METHOD(className, functionName, signature) \ argument 32 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | FileOutputStream_md.c | 36 #define NATIVE_METHOD(className, functionName, signature) \ argument 37 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | Double.c | 33 #define NATIVE_METHOD(className, functionName, signature) \ argument 34 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | FileDescriptor_md.c | 34 #define NATIVE_METHOD(className, functionName, signature) \ argument 35 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | FileKey.c | 33 #define NATIVE_METHOD(className, functionName, signature) \ argument 34 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | Inet6Address.c | 31 #define NATIVE_METHOD(className, functionName, signature) \ argument 32 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | InetAddress.c | 31 #define NATIVE_METHOD(className, functionName, signature) \ argument 32 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | Console_md.c | 36 #define NATIVE_METHOD(className, functionName, signature) \ argument 37 { #functionName, signature, (void*)(Java_java_io_ ## className ## _ ## functionName) }
|
D | NativeThread.c | 62 #define NATIVE_METHOD(className, functionName, signature) \ argument 63 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
D | SocketChannelImpl.c | 48 #define NATIVE_METHOD(className, functionName, signature) \ argument 49 { #functionName, signature, (void*)(Java_sun_nio_ch_ ## className ## _ ## functionName) }
|
D | Adler32.c | 38 #define NATIVE_METHOD(className, functionName, signature) \ argument 39 { #functionName, signature, (void*)(Java_java_util_zip_ ## className ## _ ## functionName) }
|
D | CRC32.c | 36 #define NATIVE_METHOD(className, functionName, signature) \ argument 37 { #functionName, signature, (void*)(className ## _ ## functionName) }
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | GenericSignatureParser.java | 123 public void parseForClass(GenericDeclaration genericDecl, String signature) { in parseForClass() argument 124 setInput(genericDecl, signature); in parseForClass() 154 String signature, Class<?>[] rawExceptionTypes) { in parseForMethod() argument 155 setInput(genericDecl, signature); in parseForMethod() 185 String signature, Class<?>[] rawExceptionTypes) { in parseForConstructor() argument 186 setInput(genericDecl, signature); in parseForConstructor() 215 String signature) { in parseForField() argument 216 setInput(genericDecl, signature); in parseForField()
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | ObjectStreamField.java | 41 ObjectStreamField(java.lang.String name, java.lang.String signature, boolean unshared) { in ObjectStreamField() argument 116 private final java.lang.String signature; field in ObjectStreamField 119 signature = null;
|
/libcore/luni/src/main/native/ |
D | valueOf.cpp | 26 static jobject valueOf(JNIEnv* env, jclass c, const char* signature, const T& value) { in valueOf() argument 27 static jmethodID valueOfMethod = env->GetStaticMethodID(c, "valueOf", signature); in valueOf()
|