HomeSort by relevance Sort by last modified time
    Searched refs:algorithm (Results 26 - 50 of 4302) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/vboot_reference/utility/
pad_digest_utility.c 20 int algorithm = -1; local
31 algorithm = atoi(argv[1]);
32 if (algorithm < 0 || algorithm >= kNumAlgorithms) {
33 fprintf(stderr, "Invalid Algorithm!\n");
43 padded_digest = PrependDigestInfo(algorithm, digest);
44 padded_digest_len = (hash_size_map[algorithm] +
45 digestinfo_size_map[algorithm]);
signature_digest_utility.c 21 int algorithm = -1; local
32 algorithm = atoi(argv[1]);
33 if (algorithm < 0 || algorithm >= kNumAlgorithms) {
34 fprintf(stderr, "Invalid Algorithm!\n");
44 signature_digest = SignatureDigest(buf, len, algorithm);
45 signature_digest_len = (hash_size_map[algorithm] +
46 digestinfo_size_map[algorithm]);
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
SecretKeySpecTest.java 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that
45 String algorithm = "Algorithm"; local
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"; local
143 String algorithm = "Algorithm"; local
161 String algorithm = "Algorithm"; local
174 String algorithm = "Algorithm"; local
188 String algorithm = "Algorithm"; local
214 String algorithm = "Algorithm"; local
229 String algorithm = "Algorithm"; local
    [all...]
  /libcore/ojluni/src/main/java/java/security/cert/
CertPathBuilder.java 46 * 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:
73 * <th>Algorithm</th>
85 * This algorithm is described in the <a href=
88 * Java Cryptography Architecture Standard Algorithm Name Documentation.
125 private final String algorithm; field in class:CertPathBuilder
128 * Creates a {@code CertPathBuilder} object of the given algorithm,
133 * @param algorithm the algorithm nam
    [all...]
CertPathValidator.java 47 * 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:
75 * <th>Algorithm</th>
87 * This algorithm is described in the <a href=
90 * Java Cryptography Architecture Standard Algorithm Name Documentation.
124 private final String algorithm; field in class:CertPathValidator
127 * Creates a {@code CertPathValidator} object of the given algorithm,
132 * @param algorithm the algorithm nam
    [all...]
  /libcore/ojluni/src/main/java/javax/net/ssl/
KeyManagerFactory.java 43 * <th>Algorithm</th>
65 // 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");
    [all...]
TrustManagerFactory.java 43 * <th>Algorithm</th>
65 // 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 algorith
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/
AlgorithmIdentifier.java 15 private ASN1ObjectIdentifier algorithm; field in class:AlgorithmIdentifier
41 ASN1ObjectIdentifier algorithm)
43 this.algorithm = algorithm;
47 ASN1ObjectIdentifier algorithm,
50 this.algorithm = algorithm;
63 algorithm = ASN1ObjectIdentifier.getInstance(seq.getObjectAt(0));
77 return algorithm;
89 * algorithm OBJECT IDENTIFIER
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
JcaJceHelper.java 28 String algorithm)
31 Mac createMac(String algorithm)
34 KeyAgreement createKeyAgreement(String algorithm)
37 AlgorithmParameterGenerator createAlgorithmParameterGenerator(String algorithm)
40 AlgorithmParameters createAlgorithmParameters(String algorithm)
43 KeyGenerator createKeyGenerator(String algorithm)
46 KeyFactory createKeyFactory(String algorithm)
49 SecretKeyFactory createSecretKeyFactory(String algorithm)
52 KeyPairGenerator createKeyPairGenerator(String algorithm)
55 MessageDigest createDigest(String algorithm)
    [all...]
  /external/vboot_reference/host/lib/
signature_digest.c 17 uint8_t* PrependDigestInfo(unsigned int algorithm, uint8_t* digest) {
18 const int digest_size = hash_size_map[algorithm];
19 const int digestinfo_size = digestinfo_size_map[algorithm];
20 const uint8_t* digestinfo = hash_digestinfo_map[algorithm];
28 unsigned int algorithm) {
32 if (algorithm >= kNumAlgorithms) {
33 VBDEBUG(("SignatureDigest() called with invalid algorithm!\n"));
34 } else if ((digest = DigestBuf(buf, len, algorithm))) {
35 info_digest = PrependDigestInfo(algorithm, digest);
42 unsigned int algorithm) {
    [all...]
  /external/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/
iter_swap.pass.cpp 10 // <algorithm>
17 #include <algorithm>
  /external/vboot_reference/host/lib/include/
host_key.h 20 uint64_t algorithm; /* Algorithm to use when signing */ member in struct:VbPrivateKey
26 VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm);
44 VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm,
61 VbPublicKey* PublicKeyReadKeyb(const char* filename, uint64_t algorithm,
  /external/webrtc/webrtc/base/
openssldigest.h 23 // Creates an OpenSSLDigest with |algorithm| as the hash algorithm.
24 explicit OpenSSLDigest(const std::string& algorithm);
34 static bool GetDigestEVP(const std::string &algorithm,
38 std::string* algorithm);
40 static bool GetDigestSize(const std::string &algorithm,
  /prebuilts/ndk/r11/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.modifying.operations/alg.swap/
iter_swap.pass.cpp 10 // <algorithm>
17 #include <algorithm>
  /prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/algorithms/alg.modifying.operations/alg.swap/
iter_swap.pass.cpp 10 // <algorithm>
17 #include <algorithm>
  /system/netd/libnetdutils/
UniqueFile.cpp 17 #include <algorithm>
  /cts/tests/tests/keystore/src/android/keystore/cts/
MacTest.java 42 * Tests for algorithm-agnostic functionality of MAC implementations backed by Android Keystore.
190 // expose at least one Service for such an algorithm, and this Service's algorithm will
212 for (String algorithm : EXPECTED_ALGORITHMS) {
214 SecretKey key = importDefaultKatKey(algorithm);
217 Mac mac = Mac.getInstance(algorithm);
221 throw new RuntimeException(algorithm + " failed", e);
229 for (String algorithm : EXPECTED_ALGORITHMS) {
231 SecretKey key = importDefaultKatKey(algorithm);
234 Mac mac = Mac.getInstance(algorithm, provider)
    [all...]
TransparentSecretKey.java 31 public TransparentSecretKey(byte[] keyMaterial, String algorithm) {
32 mAlgorithm = algorithm;
SecretKeyFactoryTest.java 61 // algorithm, and this Service's algorithm will not be in the expected set.
86 for (String algorithm : EXPECTED_ALGORITHMS) {
95 if (TestUtils.isHmacAlgorithm(algorithm)) {
96 String digest = TestUtils.getHmacAlgorithmDigest(algorithm);
104 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME);
114 SecretKeyFactory keyFactory = getKeyFactory(algorithm);
132 throw new RuntimeException("Failed for " + algorithm, e);
138 for (String algorithm : EXPECTED_ALGORITHMS) {
140 SecretKeyFactory keyFactory = getKeyFactory(algorithm);
    [all...]
KeyFactoryTest.java 72 // caught because it'll have to expose at least one Service for such an algorithm, and this
73 // Service's algorithm will not be in the expected set.
98 for (String algorithm : EXPECTED_ALGORITHMS) {
110 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME);
120 KeyFactory keyFactory = getKeyFactory(algorithm);
149 throw new RuntimeException("Failed for " + algorithm, e);
156 for (String algorithm : EXPECTED_ALGORITHMS) {
159 KeyPairGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME);
162 KeyFactory keyFactory = getKeyFactory(algorithm);
168 throw new RuntimeException("Failed for " + algorithm, e)
    [all...]
  /libcore/ojluni/src/main/java/java/security/
AlgorithmParameters.java 36 * for a particular algorithm can be obtained by
53 * <th>Algorithm</th>
152 * Java Cryptography Architecture Standard Algorithm Name Documentation.
172 // The algorithm
173 private String algorithm; field in class:AlgorithmParameters
183 * @param algorithm the algorithm
186 Provider provider, String algorithm)
190 this.algorithm = algorithm;
    [all...]
AlgorithmConstraints.java 32 * 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 and the corresponding key are grante
    [all...]
  /external/caliper/examples/src/main/java/examples/
MessageDigestCreationBenchmark.java 31 String algorithm; field in class:MessageDigestCreationBenchmark
36 MessageDigest.getInstance(algorithm);
  /frameworks/base/core/java/android/security/net/config/
Pin.java 37 public static boolean isSupportedDigestAlgorithm(String algorithm) {
40 return "SHA-256".equalsIgnoreCase(algorithm);
46 public static int getDigestLength(String algorithm) {
47 if ("SHA-256".equalsIgnoreCase(algorithm)) {
50 throw new IllegalArgumentException("Unsupported digest algorithm: " + algorithm);
  /libcore/luni/src/test/java/libcore/javax/crypto/
KeyGeneratorTest.java 49 // providing AndroidKeyStore-specific algorithm parameters.
56 String algorithm = service.getAlgorithm(); local
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, int keySize)
147 String algorithm = kg.getAlgorithm(); local
    [all...]

Completed in 2119 milliseconds

12 3 4 5 6 7 8 91011>>