Searched refs:algorithm (Results 1 - 25 of 90) sorted by relevance

1234

/libcore/ojluni/src/main/java/sun/security/jca/
H A DServiceId.java29 * Simple class encapsulating a service type and algorithm for lookup.
38 public final String algorithm; field in class:ServiceId
40 public ServiceId(String type, String algorithm) { argument
42 this.algorithm = algorithm;
H A DGetInstance.java64 public static Service getService(String type, String algorithm) argument
67 Service s = list.getService(type, algorithm);
70 (algorithm + " " + type + " not available");
75 public static Service getService(String type, String algorithm, argument
85 Service s = p.getService(type, algorithm);
87 throw new NoSuchAlgorithmException("no such algorithm: "
88 + algorithm + " for provider " + provider);
93 public static Service getService(String type, String algorithm, argument
98 Service s = provider.getService(type, algorithm);
100 throw new NoSuchAlgorithmException("no such algorithm
112 getServices(String type, String algorithm) argument
152 getInstance(String type, Class<?> clazz, String algorithm) argument
184 getInstance(String type, Class<?> clazz, String algorithm, Object param) argument
203 getInstance(String type, Class<?> clazz, String algorithm, String provider) argument
209 getInstance(String type, Class<?> clazz, String algorithm, Object param, String provider) argument
215 getInstance(String type, Class<?> clazz, String algorithm, Provider provider) argument
221 getInstance(String type, Class<?> clazz, String algorithm, Object param, Provider provider) argument
[all...]
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DPrivateKeyStub.java35 String algorithm = null; field in class:PrivateKeyStub
43 * @param algorithm
47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { argument
48 this.algorithm = algorithm;
54 * Returns algorithm
58 return algorithm;
H A DPublicKeyStub.java38 String algorithm = null; field in class:PublicKeyStub
45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { argument
46 this.algorithm = algorithm;
52 * returns algorithm
55 return algorithm;
H A DMyMessageDigest1.java44 * @param algorithm
46 public MyMessageDigest1(String algorithm) { argument
47 super(algorithm);
H A DMyKeyPairGenerator1.java95 private String algorithm; field in class:MyKeyPairGenerator1.PubKey
102 this.algorithm = "MyKeyPairGenerator1";
108 return algorithm;
121 private String algorithm; field in class:MyKeyPairGenerator1.PrivKey
128 this.algorithm = "MyKeyPairGenerator1";
134 return algorithm;
/libcore/ojluni/src/main/java/java/security/
H A DAlgorithmParameterGenerator.java33 * parameters to be used with a certain algorithm. Parameter generators
38 * in two different ways: in an algorithm-independent manner, or in an
39 * algorithm-specific manner:
42 * <li>The algorithm-independent approach uses the fact that all parameter
45 * by all algorithm parameters, though it is interpreted differently
47 * the <i>DSA</i> algorithm, "size" corresponds to the size
49 * When using this approach, algorithm-specific parameter generation
54 * using algorithm-specific semantics, which are represented by a set of
55 * algorithm-specific parameter generation values. To generate
123 // The algorithm
124 private String algorithm; field in class:AlgorithmParameterGenerator
133 AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) argument
179 getInstance(String algorithm) argument
229 getInstance(String algorithm, String provider) argument
273 getInstance(String algorithm, Provider provider) argument
[all...]
H A DAlgorithmParameters.java38 * for a particular algorithm can be obtained by
178 // The algorithm
179 private String algorithm; field in class:AlgorithmParameters
189 * @param algorithm the algorithm
192 Provider provider, String algorithm)
196 this.algorithm = algorithm;
200 * Returns the name of the algorithm associated with this parameter object.
202 * @return the algorithm nam
191 AlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm) argument
238 getInstance(String algorithm) argument
288 getInstance(String algorithm, String provider) argument
335 getInstance(String algorithm, Provider provider) argument
[all...]
H A DAlgorithmConstraints.java32 * keys (key sizes), and other algorithm parameters.
43 * certificate in the certification path contains the required algorithm
55 * Determines whether an algorithm is granted permission for the
59 * @param algorithm the algorithm name
60 * @param parameters the algorithm parameters, or null if no additional
63 * @return true if the algorithm is permitted and can be used for all
66 * @throws IllegalArgumentException if primitives or algorithm is null
70 String algorithm, AlgorithmParameters parameters);
90 * Determines whether an algorithm an
69 permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) argument
105 permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) argument
[all...]
H A DKeyRep.java92 * The Key algorithm
96 private String algorithm; field in class:KeyRep
118 * @param algorithm the algorithm returned from
127 * if algorithm is {@code null},
131 public KeyRep(Type type, String algorithm, argument
134 if (type == null || algorithm == null ||
140 this.algorithm = algorithm;
151 * constructed using encoded key bytes and algorithm
[all...]
H A DKeyPairGenerator.java43 * <p>A Key pair generator for a particular algorithm creates a public/private
44 * key pair that can be used with this algorithm. It also associates
45 * algorithm-specific parameters with each of the generated keys.
47 * <p>There are two ways to generate a key pair: in an algorithm-independent
48 * manner, and in an algorithm-specific manner.
55 * algorithms (e.g., in the case of the <i>DSA</i> algorithm, the keysize
68 * algorithm-independent {@code initialize} methods, it is up to the
69 * provider what to do about the algorithm-specific parameters (if any) to be
72 * <p>If the algorithm is the <i>DSA</i> algorithm, an
155 private final String algorithm; field in class:KeyPairGenerator
169 KeyPairGenerator(String algorithm) argument
186 getInstance(Instance instance, String algorithm) argument
235 getInstance(String algorithm) argument
299 getInstance(String algorithm, String provider) argument
338 getInstance(String algorithm, Provider provider) argument
587 Delegate(KeyPairGeneratorSpi spi, String algorithm) argument
592 Delegate(Instance instance, Iterator<Service> serviceIterator, String algorithm) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DSecretKeySpec.java62 * The name of the algorithm associated with this key.
66 private String algorithm; field in class:SecretKeySpec
72 * secret key of the specified algorithm. For example, if the algorithm is
75 * In order for those checks to be performed, an algorithm-specific
82 * @param algorithm the name of the secret-key algorithm to be associated
87 * for information about standard algorithm names.
88 * @exception IllegalArgumentException if <code>algorithm</code>
91 public SecretKeySpec(byte[] key, String algorithm) { argument
140 SecretKeySpec(byte[] key, int offset, int len, String algorithm) argument
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
H A DSecretKeySpecTest.java38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that
45 String algorithm = "Algorithm";
48 new SecretKeySpec(new byte[] {}, algorithm);
55 new SecretKeySpec(null, algorithm);
64 + "in the case of null algorithm.");
68 SecretKeySpec ks = new SecretKeySpec(key, algorithm);
76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method
85 String algorithm = "Algorithm";
88 new SecretKeySpec(new byte[] {}, 0, 0, algorithm);
95 new SecretKeySpec(null, 0, 0, algorithm);
[all...]
/libcore/ojluni/src/main/java/java/security/cert/
H A DCertPathBuilder.java46 * algorithm name of the {@code CertPathBuilder} desired and optionally
51 * passing it an algorithm-specific set of parameters. If successful, the
57 * additional algorithm-specific parameters and options used by the
59 * Here is an example demonstrating how it is used with the PKIX algorithm:
85 * This algorithm is described in the <a href=
125 private final String algorithm; field in class:CertPathBuilder
128 * Creates a {@code CertPathBuilder} object of the given algorithm,
133 * @param algorithm the algorithm name
136 String algorithm)
135 CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm) argument
171 getInstance(String algorithm) argument
214 getInstance(String algorithm, String provider) argument
251 getInstance(String algorithm, Provider provider) argument
[all...]
H A DCertPathValidator.java47 * algorithm name of the {@code CertPathValidator} desired and
53 * and an algorithm-specific set of parameters. If successful, the result is
58 * additional algorithm-specific parameters and options used by the
61 * algorithm:
87 * This algorithm is described in the <a href=
124 private final String algorithm; field in class:CertPathValidator
127 * Creates a {@code CertPathValidator} object of the given algorithm,
132 * @param algorithm the algorithm name
135 Provider provider, String algorithm)
134 CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) argument
170 getInstance(String algorithm) argument
213 getInstance(String algorithm, String provider) argument
251 getInstance(String algorithm, Provider provider) argument
[all...]
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DKeyManagerFactory.java65 // The name of the key management algorithm.
66 private String algorithm; field in class:KeyManagerFactory
69 * Obtains the default KeyManagerFactory algorithm name.
71 * <p>The default algorithm can be changed at runtime by setting
72 * the value of the {@code ssl.KeyManagerFactory.algorithm}
73 * security property to the desired algorithm name.
76 * @return the default algorithm name as specified by the
77 * {@code ssl.KeyManagerFactory.algorithm} security property, or an
86 "ssl.KeyManagerFactory.algorithm");
100 * @param algorithm th
102 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
150 getInstance(String algorithm) argument
193 getInstance(String algorithm, String provider) argument
231 getInstance(String algorithm, Provider provider) argument
[all...]
H A DTrustManagerFactory.java65 // The name of the trust management algorithm.
66 private String algorithm; field in class:TrustManagerFactory
69 * Obtains the default TrustManagerFactory algorithm name.
72 * the value of the {@code ssl.TrustManagerFactory.algorithm}
73 * security property to the desired algorithm name.
76 * @return the default algorithm name as specified by the
77 * {@code ssl.TrustManagerFactory.algorithm} security property, or an
86 "ssl.TrustManagerFactory.algorithm");
100 * @param algorithm the algorithm
102 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
152 getInstance(String algorithm) argument
195 getInstance(String algorithm, String provider) argument
233 getInstance(String algorithm, Provider provider) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DSecretKeyFactory.java272 // The algorithm associated with this factory
273 private final String algorithm; field in class:SecretKeyFactory
290 * @param algorithm the secret-key algorithm
293 Provider provider, String algorithm) {
296 this.algorithm = algorithm;
299 private SecretKeyFactory(String algorithm) throws NoSuchAlgorithmException { argument
300 this.algorithm = algorithm;
292 SecretKeyFactory(SecretKeyFactorySpi keyFacSpi, Provider provider, String algorithm) argument
342 getInstance(String algorithm) argument
385 getInstance(String algorithm, String provider) argument
428 getInstance(String algorithm, Provider provider) argument
[all...]
H A DKeyAgreement.java77 * This algorithm is described in the <a href=
108 // The name of the key agreement algorithm.
109 private final String algorithm; field in class:KeyAgreement
112 // When only the algorithm is specified, we want to allow the KeyAgreement provider for that
113 // algorithm to change if multiple providers exist and they support different subsets of
135 * @param algorithm the algorithm
138 String algorithm) {
141 this.algorithm = algorithm;
137 KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, String algorithm) argument
146 KeyAgreement(String algorithm) argument
195 getInstance(String algorithm) argument
252 getInstance(String algorithm, String provider) argument
295 getInstance(String algorithm, Provider provider) argument
680 generateSecret(String algorithm) argument
[all...]
H A DMac.java42 * (MAC) algorithm.
173 // The name of the MAC algorithm.
174 private final String algorithm; field in class:Mac
180 // When only the algorithm is specified, we want to allow the Mac provider for that
181 // algorithm to change if multiple providers exist and they support different subsets of
203 * @param algorithm the algorithm
205 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { argument
208 this.algorithm = algorithm;
213 Mac(String algorithm) argument
258 getInstance(String algorithm) argument
310 getInstance(String algorithm, String provider) argument
347 getInstance(String algorithm, Provider provider) argument
[all...]
/libcore/ojluni/src/main/java/sun/security/util/
H A DAlgorithmDecomposer.java41 private static Set<String> decomposeImpl(String algorithm) { argument
43 // algorithm/mode/padding
44 String[] transTockens = transPattern.split(algorithm);
71 * Decompose the standard algorithm name into sub-elements.
74 * so that we can check the "SHA1" and "RSA" algorithm constraints
79 public Set<String> decompose(String algorithm) { argument
80 if (algorithm == null || algorithm.length() == 0) {
84 Set<String> elements = decomposeImpl(algorithm);
86 // In Java standard algorithm nam
149 decomposeOneHash(String algorithm) argument
169 hashName(String algorithm) argument
[all...]
H A DDisabledAlgorithmConstraints.java46 * for the syntax of the disabled algorithm string.
67 * Initialize algorithm constraints with the specified security property.
70 * algorithm constraints
77 * Initialize algorithm constraints with the specified security property
81 * algorithm constraints
92 * This only checks if the algorithm has been completely disabled. If
93 * there are keysize or other limit, this method allow the algorithm.
97 String algorithm, AlgorithmParameters parameters) {
104 return checkAlgorithm(disabledAlgorithms, algorithm, decomposer);
108 * Checks if the key algorithm ha
96 permits(Set<CryptoPrimitive> primitives, String algorithm, AlgorithmParameters parameters) argument
121 permits(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) argument
164 checkConstraints(Set<CryptoPrimitive> primitives, String algorithm, Key key, AlgorithmParameters parameters) argument
321 getConstraints(String algorithm) argument
377 String algorithm; field in class:DisabledAlgorithmConstraints.Constraint
[all...]
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/
H A DX509ExtendedTrustManager.java49 * algorithm. RFC2818 defines both the server identification and the
50 * client identification specification for "HTTPS" algorithm.
75 * The algorithm parameter specifies the client identification protocol
76 * to use. If the algorithm and the peer hostname are available, the
83 * @param algorithm the identification algorithm
91 String authType, String hostname, String algorithm)
100 * The authentication type is the key exchange algorithm portion
104 * The algorithm parameter specifies the server identification protocol
105 * to use. If the algorithm an
90 checkClientTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
119 checkServerTrusted(X509Certificate[] chain, String authType, String hostname, String algorithm) argument
[all...]
/libcore/luni/src/test/java/libcore/java/security/
H A DMessageDigestTest.java82 String algorithm = service.getAlgorithm();
85 MessageDigest md1 = MessageDigest.getInstance(algorithm);
86 assertEquals(algorithm, md1.getAlgorithm());
90 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider);
91 assertEquals(algorithm, md2.getAlgorithm());
96 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName());
97 assertEquals(algorithm, md3.getAlgorithm());
101 throw new Exception("Problem testing MessageDigest." + algorithm, e);
109 private static void putExpectation(String algorithm, String inputName, byte[] expected) { argument
110 algorithm
118 getExpectations(String algorithm) argument
256 assertDigest(String algorithm, byte[] actual, byte[] expected) argument
[all...]
/libcore/tools/docs/crypto/
H A Dformat_supported_algorithm_table.py20 reflect the crypto algorithm support shown in the provided data file.
37 for algorithm in category['algorithms']:
38 if 'note' in algorithm:
51 parser = argparse.ArgumentParser(description='Output algorithm support HTML tables')
85 # First, collect the relevant data for each algorithm into a tuple.
90 for algorithm in algorithms:
91 name, mode, padding = algorithm['name'].split('/')
96 algorithm['supported_api_levels'],
97 'deprecated' in algorithm and algorithm['deprecate
[all...]

Completed in 515 milliseconds

1234