Home
last modified time | relevance | path

Searched refs:signature (Results 1 – 25 of 69) sorted by relevance

123

/libcore/luni/src/test/java/tests/targets/security/
DSignatureTestMD2withRSA.java36 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/
DObjectStreamField.java49 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/
DSignatureSpiTest.java313 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 …]
DSignature2Test.java117 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/
DSignedObject.java130 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/
DSignatureBenchmark.java62 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/
DOldAndroidClassTest.java145 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()
DMethodOverridesTest.java101 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/
Djni_util.c194 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 …]
DInet4Address.c31 #define NATIVE_METHOD(className, functionName, signature) \ argument
32 { #functionName, signature, (void*)(className ## _ ## functionName) }
DFloat.c31 #define NATIVE_METHOD(className, functionName, signature) \ argument
32 { #functionName, signature, (void*)(className ## _ ## functionName) }
DFileOutputStream_md.c36 #define NATIVE_METHOD(className, functionName, signature) \ argument
37 { #functionName, signature, (void*)(className ## _ ## functionName) }
DDouble.c33 #define NATIVE_METHOD(className, functionName, signature) \ argument
34 { #functionName, signature, (void*)(className ## _ ## functionName) }
DFileDescriptor_md.c34 #define NATIVE_METHOD(className, functionName, signature) \ argument
35 { #functionName, signature, (void*)(className ## _ ## functionName) }
DFileKey.c33 #define NATIVE_METHOD(className, functionName, signature) \ argument
34 { #functionName, signature, (void*)(className ## _ ## functionName) }
DInet6Address.c31 #define NATIVE_METHOD(className, functionName, signature) \ argument
32 { #functionName, signature, (void*)(className ## _ ## functionName) }
DInetAddress.c31 #define NATIVE_METHOD(className, functionName, signature) \ argument
32 { #functionName, signature, (void*)(className ## _ ## functionName) }
DConsole_md.c36 #define NATIVE_METHOD(className, functionName, signature) \ argument
37 { #functionName, signature, (void*)(Java_java_io_ ## className ## _ ## functionName) }
DNativeThread.c62 #define NATIVE_METHOD(className, functionName, signature) \ argument
63 { #functionName, signature, (void*)(className ## _ ## functionName) }
DSocketChannelImpl.c48 #define NATIVE_METHOD(className, functionName, signature) \ argument
49 { #functionName, signature, (void*)(Java_sun_nio_ch_ ## className ## _ ## functionName) }
DAdler32.c38 #define NATIVE_METHOD(className, functionName, signature) \ argument
39 { #functionName, signature, (void*)(Java_java_util_zip_ ## className ## _ ## functionName) }
DCRC32.c36 #define NATIVE_METHOD(className, functionName, signature) \ argument
37 { #functionName, signature, (void*)(className ## _ ## functionName) }
/libcore/luni/src/main/java/libcore/reflect/
DGenericSignatureParser.java123 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/
DObjectStreamField.java41 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/
DvalueOf.cpp26 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()

123