Searched defs:algorithm (Results 1 - 25 of 76) 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;
/libcore/ojluni/src/main/java/java/security/
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 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 DKeyRep.java91 * The Key algorithm
95 private String algorithm; field in class:KeyRep
117 * @param algorithm the algorithm returned from
126 * if algorithm is <code>null</code>,
130 public KeyRep(Type type, String algorithm, argument
133 if (type == null || algorithm == null ||
139 this.algorithm = algorithm;
150 * constructed using encoded key bytes and algorithm
[all...]
H A DAlgorithmParameters.java36 * for a particular algorithm can be obtained by
128 // The algorithm
129 private String algorithm; field in class:AlgorithmParameters
139 * @param algorithm the algorithm
142 Provider provider, String algorithm)
146 this.algorithm = algorithm;
150 * Returns the name of the algorithm associated with this parameter object.
152 * @return the algorithm nam
141 AlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm) argument
188 getInstance(String algorithm) argument
238 getInstance(String algorithm, String provider) argument
283 getInstance(String algorithm, Provider provider) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/
H A DPrivateKeyImpl.java33 private String algorithm; field in class:PrivateKeyImpl
37 public PrivateKeyImpl(String algorithm) { argument
38 this.algorithm = algorithm;
42 return algorithm;
57 public void setAlgorithm(String algorithm) { argument
58 this.algorithm = algorithm;
H A DPublicKeyImpl.java37 private String algorithm; field in class:PublicKeyImpl
40 public PublicKeyImpl(String algorithm) { argument
41 this.algorithm = algorithm;
46 return algorithm;
62 public void setAlgorithm(String algorithm) { argument
63 this.algorithm = algorithm;
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DKeyGeneratorTest.java49 // providing AndroidKeyStore-specific algorithm parameters.
56 String algorithm = service.getAlgorithm();
59 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm);
60 assertEquals(algorithm, kg1.getAlgorithm());
64 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider);
65 assertEquals(algorithm, kg2.getAlgorithm());
70 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName());
71 assertEquals(algorithm, kg3.getAlgorithm());
75 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e);
83 private static void putKeySize(String algorithm, in argument
92 getKeySizes(String algorithm) argument
[all...]
H A DMockKeyAgreementSpi.java76 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, argument
/libcore/luni/src/test/java/tests/targets/security/
H A DMessageDigestTestMD2.java29 fail("MD2 MessageDigest algorithm must not be supported");
37 fail("MD2 MessageDigest algorithm must not be supported");
72 protected MD2(String algorithm) { argument
73 super(algorithm);
/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/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=
123 private final String algorithm; field in class:CertPathBuilder
126 * Creates a {@code CertPathBuilder} object of the given algorithm,
131 * @param algorithm the algorithm name
134 String algorithm)
133 CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, String algorithm) argument
169 getInstance(String algorithm) argument
212 getInstance(String algorithm, String provider) argument
249 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/crypto/
H A DKeyAgreementSpi.java36 * of a particular key agreement algorithm.
67 * randomness. The given key is required to contain all the algorithm
70 * <p> If the key agreement algorithm requires random bytes, it gets them
73 * algorithm implementation does not require any random bytes,
83 * has an incompatible algorithm type.
90 * algorithm parameters, and source of randomness.
100 * has an incompatible algorithm type.
137 * private information and algorithm parameters will be used for
160 * private information and algorithm parameters will be used for
180 * of the requested algorithm typ
201 engineGenerateSecret(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/ojluni/src/main/java/javax/net/ssl/
H A DKeyManagerFactory.java49 // The name of the key management algorithm.
50 private String algorithm; field in class:KeyManagerFactory
53 * Obtains the default KeyManagerFactory algorithm name.
55 * <p>The default algorithm can be changed at runtime by setting
56 * the value of the "ssl.KeyManagerFactory.algorithm" security
60 * to the desired algorithm name.
64 * @return the default algorithm name as specified in the
73 "ssl.KeyManagerFactory.algorithm");
87 * @param algorithm the algorithm
89 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
137 getInstance(String algorithm) argument
180 getInstance(String algorithm, String provider) argument
218 getInstance(String algorithm, Provider provider) argument
[all...]
H A DTrustManagerFactory.java49 // The name of the trust management algorithm.
50 private String algorithm; field in class:TrustManagerFactory
53 * Obtains the default TrustManagerFactory algorithm name.
56 * the value of the "ssl.TrustManagerFactory.algorithm" security
59 * to the desired algorithm name.
61 * @return the default algorithm name as specified in the
70 "ssl.TrustManagerFactory.algorithm");
84 * @param algorithm the algorithm
87 Provider provider, String algorithm) {
86 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument
136 getInstance(String algorithm) argument
179 getInstance(String algorithm, String provider) argument
217 getInstance(String algorithm, 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 DSpiEngUtils.java41 * Verification: is algorithm supported or not
43 * @param algorithm
47 public static Provider isSupport(String algorithm, String service) { argument
50 .concat(algorithm));
/libcore/benchmarks/src/benchmarks/regression/
H A DDigestBenchmark.java33 @Param private Algorithm algorithm; field in class:DigestBenchmark
48 className += ("OpenSSLDigest$" + algorithm);
51 className += (algorithm + "Digest");
H A DKeyPairGeneratorBenchmark.java26 @Param private Algorithm algorithm; field in class:KeyPairGeneratorBenchmark
43 this.generatorAlgorithm = algorithm.toString();
H A DMessageDigestBenchmark.java32 @Param private Algorithm algorithm; field in class:MessageDigestBenchmark
42 MessageDigest digest = MessageDigest.getInstance(algorithm.toString(),
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyAgreementSpiTest.java59 protected SecretKey engineGenerateSecret(String algorithm) throws IllegalStateException, argument
61 return super.engineGenerateSecret(algorithm);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyKeyAgreementSpi.java65 protected SecretKey engineGenerateSecret(String algorithm) argument
68 if (algorithm.length() == 0) {

Completed in 2840 milliseconds

1234