/external/ImageMagick/Magick++/demo/ |
zoom.cpp | 5 // Resize image using specified resize algorithm with Magick++ API 7 // Usage: zoom [-density resolution] [-filter algorithm] [-geometry geometry] 20 << " [-density resolution] [-filter algorithm] [-geometry geometry]" 22 << " algorithm - bessel blackman box catrom cubic gaussian hamming hanning" << endl 76 std::string algorithm(argv[argv_index]); 77 if (algorithm.compare("point") == 0) 79 else if (algorithm.compare("box") == 0) 81 else if (algorithm.compare("triangle") == 0) 83 else if (algorithm.compare("hermite") == 0) 85 else if (algorithm.compare("hanning") == 0 [all...] |
/libcore/ojluni/src/main/java/javax/crypto/ |
SecretKeyFactory.java | 65 * <th>Algorithm</th> 256 * Java Cryptography Architecture Standard Algorithm Name Documentation. 272 // 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 [all...] |
KeyAgreement.java | 61 * <th>Algorithm</th> 77 * This algorithm is described in the <a href= 80 * Java Cryptography Architecture Standard Algorithm Name Documentation. 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) { [all...] |
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
MessageDigestAlgorithmBenchmark.java | 36 * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.). 44 @Param Algorithm algorithm; field in class:MessageDigestAlgorithmBenchmark 49 @Override public byte[] hash(Algorithm algorithm, byte[] input) { 50 MessageDigest md = algorithm.getMessageDigest(); 56 @Override public byte[] hash(Algorithm algorithm, byte[] input) { 57 return algorithm.getHashFunction().hashBytes(input).asBytes() 100 Algorithm algorithm = this.algorithm; local [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyRep.java | 92 * 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, 134 if (type == null || algorithm == null || 140 this.algorithm = algorithm; 151 * constructed using encoded key bytes and algorithm [all...] |
KeyPairGenerator.java | 43 * <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. 52 * <li><b>Algorithm-Independent Initialization</b> 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, and the keysize (modulu 155 private final String algorithm; field in class:KeyPairGenerator [all...] |
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
BasicTest.java | 37 for (String algorithm : list) { 38 if (algorithm.startsWith("Alg.Alias.")) { 41 System.out.println(algorithm);
|
CipherOutputStreamTest.java | 42 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { 47 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { 48 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { 57 public String algorithm; field in class:CipherOutputStreamTest.TestVector 65 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) 67 this.algorithm = algorithm; 68 this.key = randomKey(algorithm, keySize); 69 this.params = randomParameters(algorithm, ivSize, tagSize) 221 final String algorithm = "AES\/EAX\/NoPadding"; local [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
AlgorithmDecomposer.java | 41 private static Set<String> decomposeImpl(String algorithm) { 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) { 80 if (algorithm == null || algorithm.length() == 0) { 84 Set<String> elements = decomposeImpl(algorithm); 86 // In Java standard algorithm name specification, for differen [all...] |
DisabledAlgorithmConstraints.java | 43 * Algorithm constraints for disabled algorithms property 46 * 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) 196 String algorithm = cert.getSigAlgName(); local 255 String algorithm; local 377 String algorithm; field in class:DisabledAlgorithmConstraints.Constraint [all...] |
/libcore/ojluni/src/main/java/sun/security/jca/ |
GetInstance.java | 64 public static Service getService(String type, String algorithm) 67 Service s = list.getService(type, algorithm); 70 (algorithm + " " + type + " not available"); 75 public static Service getService(String type, String algorithm, 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, 98 Service s = provider.getService(type, algorithm); 100 throw new NoSuchAlgorithmException("no such algorithm: [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyGeneratorTest.java | 76 // algorithm, and this Service's algorithm will not be in the expected set. 95 for (String algorithm : EXPECTED_ALGORITHMS) { 97 KeyGenerator keyGenerator = getKeyGenerator(algorithm); 103 throw new RuntimeException("Failed for " + algorithm, e); 109 for (String algorithm : EXPECTED_ALGORITHMS) { 111 KeyGenerator keyGenerator = getKeyGenerator(algorithm); 112 int keySizeBits = DEFAULT_KEY_SIZES.get(algorithm); 118 throw new RuntimeException("Failed for " + algorithm, e); 126 for (String algorithm : EXPECTED_ALGORITHMS) [all...] |
SignatureTest.java | 46 * Tests for algorithm-agnostic functionality of {@code Signature} implementations backed by Android 78 // that a Service with algorithm "ECDSA" be exposed, despite the RI not exposing any such 336 // expose at least one Service for such an algorithm, and this Service's algorithm will 348 // Unexpected algorithm -- check whether it's an alias for an expected one 500 // for this signature algorithm and public key. 507 // No providers support verifying signatures using this algorithm and key. [all...] |
/external/libcups/cups/ |
hash.c | 30 * The "algorithm" argument can be any of the registered, non-deprecated IPP 43 cupsHashData(const char *algorithm, /* I - Algorithm name */ 49 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0) 56 if (!strcmp(algorithm, "sha")) 73 else if (!strcmp(algorithm, "sha2-224")) 86 else if (!strcmp(algorithm, "sha2-256")) 99 else if (!strcmp(algorithm, "sha2-384")) 112 else if (!strcmp(algorithm, "sha2-512")) 125 else if (!strcmp(algorithm, "sha2-512_224") [all...] |
/external/vboot_reference/firmware/lib/cryptolib/include/ |
rsa.h | 30 unsigned int algorithm; /* Algorithm to use when verifying with the key */ member in struct:RSAPublicKey 43 * signature [sig] using signature algorithm [algorithm]. The public key used 60 unsigned int algorithm); 68 unsigned int algorithm); 74 * [out_size] with the algorithm [algorithm]. 78 uint64_t RSAProcessedKeySize(uint64_t algorithm, uint64_t* out_size);
|
/libcore/ojluni/src/main/java/com/sun/net/ssl/internal/ssl/ |
X509ExtendedTrustManager.java | 49 * 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 and the peer hostname are available, th [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyMessageDigest1.java | 44 * @param algorithm 46 public MyMessageDigest1(String algorithm) { 47 super(algorithm);
|
MyKeyPairGenerator1.java | 95 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/luni/src/test/java/libcore/java/security/ |
MessageDigestTest.java | 63 String algorithm = service.getAlgorithm(); local 66 MessageDigest md1 = MessageDigest.getInstance(algorithm); 67 assertEquals(algorithm, md1.getAlgorithm()); 71 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 72 assertEquals(algorithm, md2.getAlgorithm()); 77 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); 78 assertEquals(algorithm, md3.getAlgorithm()); 82 throw new Exception("Problem testing MessageDigest." + algorithm, e); 90 private static void putExpectation(String algorithm, String inputName, byte[] expected) { 91 algorithm = algorithm.toUpperCase() 216 String algorithm = md.getAlgorithm(); local [all...] |
/external/vboot_reference/firmware/lib/cryptolib/ |
rsa_utility.c | 15 uint64_t RSAProcessedKeySize(uint64_t algorithm, uint64_t* out_size) { 17 if (algorithm < kNumAlgorithms) { 18 key_len = siglen_map[algorithm]; 34 key->algorithm = kNumAlgorithms; 88 unsigned int algorithm) { 95 if (algorithm >= (unsigned int)kNumAlgorithms) 96 return 0; /* Invalid algorithm. */ 97 if (!RSAProcessedKeySize(algorithm, &key_size)) 99 sig_size = siglen_map[algorithm]; 112 digest = DigestBuf(buf, len, algorithm); [all...] |
/external/boringssl/src/crypto/x509/ |
x_algor.c | 66 ASN1_SIMPLE(X509_ALGOR, algorithm, ASN1_OBJECT), 92 if (alg->algorithm) 93 ASN1_OBJECT_free(alg->algorithm); 94 alg->algorithm = (ASN1_OBJECT *)aobj; 112 *paobj = algor->algorithm; 145 rv = OBJ_cmp(a->algorithm, b->algorithm);
|
/external/vboot_reference/tests/ |
rsa_verify_benchmark.c | 18 int SpeedTestAlgorithm(int algorithm) { 28 char* sha_strings[] = { /* Maps algorithm->SHA algorithm. */ 35 key_size = siglen_map[algorithm] * 8; /* in bits. */ 47 sha_strings[algorithm]); 57 key_size, sha_strings[algorithm]); 67 if (!RSAVerify(key, signature, sig_len, algorithm, digest)) 75 " Speed = %.02f verifications/s\n", key_size, sha_strings[algorithm], 77 fprintf(stdout, "ms_rsa%d_%s:%.02f\n", key_size, sha_strings[algorithm],
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
JcaContentVerifierProviderBuilder.java | 84 public ContentVerifier get(AlgorithmIdentifier algorithm) 89 Signature sig = helper.createSignature(algorithm); 100 Signature rawSig = createRawSig(algorithm, certificate.getPublicKey()); 104 return new RawSigVerifier(algorithm, stream, rawSig); 108 return new SigVerifier(algorithm, stream); 129 public ContentVerifier get(AlgorithmIdentifier algorithm) 132 SignatureOutputStream stream = createSignatureStream(algorithm, publicKey); 134 Signature rawSig = createRawSig(algorithm, publicKey); 138 return new RawSigVerifier(algorithm, stream, rawSig); 142 return new SigVerifier(algorithm, stream) [all...] |
/external/libchrome/crypto/ |
symmetric_key.cc | 12 #include <algorithm> 27 Algorithm algorithm, 29 DCHECK_EQ(AES, algorithm); 54 Algorithm algorithm, 59 DCHECK(algorithm == AES || algorithm == HMAC_SHA1); 61 if (algorithm == AES) { 88 std::unique_ptr<SymmetricKey> SymmetricKey::Import(Algorithm algorithm [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/util/ |
AsymmetricAlgorithmProvider.java | 12 String algorithm, 16 String mainName = digest + "WITH" + algorithm; 17 String jdk11Variation1 = digest + "with" + algorithm; 18 String jdk11Variation2 = digest + "With" + algorithm; 19 String alias = digest + "/" + algorithm;
|