Searched defs:signature (Results 1 - 18 of 18) sorted by relevance

/libcore/luni/src/main/java/org/apache/harmony/security/pkcs10/
H A DCertificationRequest.java34 * signature Signature
49 /** the value of signature field of the structure */
50 private byte[] signature; field in class:CertificationRequest
56 AlgorithmIdentifier algId, byte[] signature) {
59 this.signature = signature.clone();
63 AlgorithmIdentifier algId, byte[] signature, byte[] encoding) {
64 this(info, algId, signature);
73 byte[] result = new byte[signature.length];
74 System.arraycopy(signature,
55 CertificationRequest(CertificationRequestInfo info, AlgorithmIdentifier algId, byte[] signature) argument
62 CertificationRequest(CertificationRequestInfo info, AlgorithmIdentifier algId, byte[] signature, byte[] encoding) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/utils/
H A DJarUtils.java55 * This method handle all the work with PKCS7, ASN1 encoding, signature verifying,
59 * @param signature - the input stream of signature file to be verified
60 * @param signatureBlock - the input stream of corresponding signature block file
61 * @return array of certificates used to verify the signature file
63 * @throws GeneralSecurityException - if signature verification process fails
65 public static Certificate[] verifySignature(InputStream signature, InputStream argument
145 byte[] sfBytes = new byte[signature.available()];
146 signature.read(sfBytes);
154 // verify that it equals the computed digest of the signature fil
[all...]
/libcore/luni/src/main/native/
H A DvalueOf.cpp24 static jobject valueOf(JNIEnv* env, jclass c, const char* signature, const T& value) { argument
25 static jmethodID valueOfMethod = env->GetStaticMethodID(c, "valueOf", signature);
H A Dorg_apache_harmony_xnet_provider_jsse_NativeCrypto.cpp1693 static jint NativeCrypto_EVP_SignFinal(JNIEnv* env, jclass, jint ctxRef, jbyteArray signature, argument
1697 JNI_TRACE("NativeCrypto_EVP_SignFinal(%p, %p, %d, %p)", ctx, signature, offset, pkey);
1704 ScopedByteArrayRW signatureBytes(env, signature);
1717 ctx, signature, offset, pkey, bytesWritten);
/libcore/luni/src/main/java/java/security/
H A DSignedObject.java30 * digital signature of the serialized data.
38 private byte[] signature; field in class:SignedObject
49 tmp = new byte[signature.length];
50 System.arraycopy(signature, 0, tmp, 0, signature.length);
51 signature = tmp;
56 * the private key and the engine to compute the signature. The given
64 * the engine that performs the signature generation.
70 * if signature generation failed.
89 signature
[all...]
H A DSignature.java207 * Initializes this {@code Signature} instance for signature verification,
208 * using the public key of the identity whose signature is going to be
223 * Initializes this {@code Signature} instance for signature verification,
224 * using the certificate of the identity whose signature is going to be
232 * the certificate used to verify a signature.
260 throw new InvalidKeyException("The public key in the certificate cannot be used for digital signature purposes");
271 * private key of the identity whose signature is going to be generated.
286 * private key of the identity whose signature is going to be generated and
303 * Generates and returns the signature of all updated data.
306 * initialization for signing and thus can be used for another signature
371 verify(byte[] signature) argument
402 verify(byte[] signature, int offset, int length) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DDigitalSignature.java61 private final Signature signature; field in class:DigitalSignature
78 signature = null;
81 signature = Signature.getInstance("NONEwithDSA");
86 signature = null;
104 if (signature != null) {
105 signature.initSign(key);
121 if (signature != null) {
122 signature.initVerify(cert);
172 if (signature != null) {
173 signature
[all...]
H A DNativeCrypto.java162 public static native int EVP_SignFinal(int ctx, byte[] signature, int offset, int key); argument
169 public static native int EVP_VerifyFinal(int ctx, byte[] signature, argument
/libcore/luni/src/main/java/java/io/
H A DObjectStreamField.java100 * @param signature
105 ObjectStreamField(String signature, String name) { argument
110 this.typeString = signature.replace('.', '/').intern();
235 * Gets the type signature used by the VM to represent the type of this
238 * @return the signature of this field's class or {@code null} if this
H A DObjectStreamClass.java515 // signature
552 // same name, signature will tell which one comes
588 * field signature.
590 * @param signature
591 * a field signature
594 private static String descriptorForFieldSignature(String signature) { argument
595 return signature.replace('.', '/');
600 * method/constructor signature.
602 * @param signature
603 * a method or constructor signature
606 descriptorForSignature(String signature) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
H A DTBSCertList.java52 * signature AlgorithmIdentifier,
70 /** the value of signature field of the structure */
71 private final AlgorithmIdentifier signature; field in class:TBSCertList
194 private TBSCertList(int version, AlgorithmIdentifier signature, argument
199 this.signature = signature;
216 * Returns the value of signature field of the structure.
219 return signature;
273 && signature.equals(that.signature)
[all...]
H A DTBSCertificate.java49 * signature AlgorithmIdentifier,
69 /** the value of signature field of the structure */
70 private final AlgorithmIdentifier signature; field in class:TBSCertificate
89 AlgorithmIdentifier signature, Name issuer,
96 this.signature = signature;
107 AlgorithmIdentifier signature, Name issuer,
112 this(version, serialNumber, signature, issuer, validity, subject,
132 * Returns the value of signature field of the structure.
135 return signature;
88 TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, boolean[] issuerUniqueID, boolean[] subjectUniqueID, Extensions extensions) argument
106 TBSCertificate(int version, BigInteger serialNumber, AlgorithmIdentifier signature, Name issuer, Validity validity, Name subject, SubjectPublicKeyInfo subjectPublicKeyInfo, boolean[] issuerUniqueID, boolean[] subjectUniqueID, Extensions extensions, byte[] encoding) argument
[all...]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
H A DMethodOverridesTest.java101 if (signature(method).equals("void visibility[] throws []")) {
118 if (signature(method).equals("void unchanged[] throws []")) {
157 * Returns a method signature of this form:
160 private String signature(Method method) { method in class:MethodOverridesTest
169 signatures.add(signature(method));
H A DOldAndroidClassTest.java145 String signature = method.toString();
147 int par = signature.indexOf('(');
148 int dot = signature.lastIndexOf('.', par);
150 signature = signature.substring(dot + 1);
152 assertFalse("Duplicate " + signature, set.contains(signature));
153 set.add(signature);
192 private boolean hasMethod(Method[] methods, String signature) { argument
194 if (method.toString().contains(signature)) {
[all...]
/libcore/luni/src/main/java/org/apache/harmony/luni/lang/reflect/
H A DGenericSignatureParser.java27 * Implements a parser for the generics signature attribute.
114 * Parses the generic signature of a class and creates the data structure
115 * representing the signature.
118 * @param signature the generic signature of the class
121 String signature) {
122 setInput(genericDecl, signature);
140 * Parses the generic signature of a method and creates the data structure
141 * representing the signature.
144 * @param signature th
120 parseForClass(GenericDeclaration genericDecl, String signature) argument
146 parseForMethod(GenericDeclaration genericDecl, String signature, Class<?>[] rawExceptionTypes) argument
174 parseForConstructor(GenericDeclaration genericDecl, String signature, Class<?>[] rawExceptionTypes) argument
200 parseForField(GenericDeclaration genericDecl, String signature) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/
H A DX509CRLImpl.java75 private byte[] signature; field in class:X509CRLImpl
83 // indicates whether the signature algorithm parameters are null
342 if (signature == null) {
343 signature = crl.getSignatureValue();
345 byte[] result = new byte[signature.length];
346 System.arraycopy(signature, 0, result, 0, signature.length);
406 Signature signature = Signature.getInstance(getSigAlgName());
407 signature.initVerify(key);
409 signature
[all...]
H A DX509CertImpl.java81 private volatile byte[] signature; field in class:X509CertImpl
85 // indicates whether the signature algorithm parameters are null
232 byte[] result = signature;
234 signature = result = certificate.getSignatureValue();
372 Signature signature;
374 signature = Signature.getInstance(getSigAlgName(), OpenSSLProvider.PROVIDER_NAME);
376 signature = Signature.getInstance(getSigAlgName());
378 signature.initVerify(key);
381 // compute and verify the signature
382 signature
[all...]
/libcore/luni/src/main/java/java/lang/
H A DSystem.java650 private static native void setFieldImpl(String fieldName, String signature, Object stream); argument

Completed in 237 milliseconds