/external/conscrypt/common/src/main/java/org/conscrypt/ |
KeyGeneratorImpl.java | 35 private final String algorithm; field in class:KeyGeneratorImpl 39 private KeyGeneratorImpl(String algorithm, int defaultKeySizeBits) { 40 this.algorithm = algorithm; 85 return new SecretKeySpec(doKeyGeneration((keySizeBits + 7) / 8), algorithm);
|
EvpMdRef.java | 30 * Returns the canonical JCA digest algorithm name for the provided digest 31 * algorithm name or {@code null} if the digest algorithm is not known. 33 static String getJcaDigestAlgorithmStandardName(String algorithm) { 34 String algorithmUpper = algorithm.toUpperCase(Locale.US); 53 static long getEVP_MDByJcaDigestAlgorithmStandardName(String algorithm) 55 String algorithmUpper = algorithm.toUpperCase(Locale.US); 67 throw new NoSuchAlgorithmException("Unsupported algorithm: " + algorithm); 71 static int getDigestSizeBytesByJcaDigestAlgorithmStandardName(String algorithm) [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 68 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 69 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); 70 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 76 private static boolean supportsManagerFactoryParameters(String algorithm) { 78 return algorithm.equals("NewSunX509"); 81 private static String[] keyTypes(String algorithm) { 84 return (algorithm.equals("NewSunX509") ? KEY_TYPES_WITH_EMPTY 169 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) 171 String[] keyTypes = keyTypes(algorithm); 208 test_X509ExtendedKeyManager((X509ExtendedKeyManager) km, empty, algorithm); 276 String algorithm = service.getAlgorithm(); local [all...] |
/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
CipherInputStreamTest.java | 43 static SecretKeySpec randomKey(String algorithm, int keySizeInBytes) { 48 String algorithm, int ivSizeInBytes, int tagSizeInBytes) { 49 if ("AES/GCM/NoPadding".equals(algorithm) || "AES/EAX/NoPadding".equals(algorithm)) { 57 public String algorithm; field in class:CipherInputStreamTest.TestVector 66 String algorithm, int keySize, int ivSize, int tagSize, int ptSize, int aadSize) 68 this.algorithm = algorithm; 69 this.key = randomKey(algorithm, keySize); 70 this.params = randomParameters(algorithm, ivSize, tagSize) 261 final String algorithm = "AES\/EAX\/NoPadding"; local [all...] |
EciesTest.java | 53 int expectedCiphertextLength(String algorithm, int coordinateSize, int messageLength) 55 switch (algorithm.toUpperCase()) { 107 for (String algorithm : invalidNames) { 109 Cipher.getInstance(algorithm); 110 fail("unexpected algorithm:" + algorithm); 127 for (String algorithm : validNames) { 128 Cipher.getInstance(algorithm); 133 * BouncyCastle has a key generation algorithm "ECIES". This test checks that the result are 156 public void testExceptions(String algorithm) throws Exception [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 58 String algorithm = KeyManagerFactory.getDefaultAlgorithm(); local 59 assertEquals(StandardNames.KEY_MANAGER_FACTORY_DEFAULT, algorithm); 60 KeyManagerFactory kmf = KeyManagerFactory.getInstance(algorithm); 66 private static boolean supportsManagerFactoryParameters(String algorithm) { 68 return algorithm.equals("NewSunX509"); 71 private static String[] keyTypes(String algorithm) { 74 return (algorithm.equals("NewSunX509") 160 private void test_X509KeyManager(X509KeyManager km, boolean empty, String algorithm) 162 String[] keyTypes = keyTypes(algorithm); 199 test_X509ExtendedKeyManager((X509ExtendedKeyManager) km, empty, algorithm); 271 String algorithm = service.getAlgorithm(); local [all...] |
/external/syslinux/gpxe/src/crypto/ |
x509.c | 44 * @v algorithm Public key algorithm to fill in 49 struct asn1_cursor *algorithm, 71 /* Locate algorithm */ 72 memcpy ( algorithm, &cursor, sizeof ( *algorithm ) ); 73 rc = ( asn1_enter ( algorithm, ASN1_SEQUENCE ) /* algorithm */ ); 75 DBG ( "Cannot locate algorithm in:\n" ); 82 rc = ( asn1_skip ( pubkey, ASN1_SEQUENCE ), /* algorithm */ 106 struct asn1_cursor algorithm; local [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
SecureRandomTest.java | 45 String algorithm = service.getAlgorithm(); local 47 SecureRandom sr1 = SecureRandom.getInstance(algorithm); 48 assertEquals(algorithm, sr1.getAlgorithm()); 52 SecureRandom sr2 = SecureRandom.getInstance(algorithm, provider); 53 assertEquals(algorithm, sr2.getAlgorithm()); 58 SecureRandom sr3 = SecureRandom.getInstance(algorithm, provider.getName()); 59 assertEquals(algorithm, sr3.getAlgorithm()); 63 System.out.println("SecureRandomTest " + algorithm + " and provider " 66 throw new Exception("Problem testing SecureRandom." + algorithm
|
/libcore/ojluni/src/main/java/javax/crypto/ |
ExemptionMechanism.java | 104 * specified exemption mechanism algorithm. 110 * Provider that supports the specified algorithm is returned. 115 * @param algorithm the standard name of the requested exemption 120 * Java Cryptography Architecture Standard Algorithm Name Documentation</a> 125 * @exception NullPointerException if <code>algorithm</code> 130 * specified algorithm. 134 public static final ExemptionMechanism getInstance(String algorithm) 137 ExemptionMechanismSpi.class, algorithm); 139 instance.provider, algorithm); 145 * specified exemption mechanism algorithm [all...] |
/external/avb/test/ |
avb_atx_generate_test_data | 54 openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -outform PEM \ 56 openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -outform PEM \ 58 openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -outform PEM \
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
BCECPrivateKey.java | 42 private String algorithm = "EC"; field in class:BCECPrivateKey 61 this.algorithm = key.getAlgorithm(); 67 String algorithm, 71 this.algorithm = algorithm; 93 String algorithm, 97 this.algorithm = algorithm; 104 String algorithm, 107 this.algorithm = algorithm [all...] |
BCECPublicKey.java | 39 private String algorithm = "EC"; field in class:BCECPublicKey 47 String algorithm, 50 this.algorithm = algorithm; 58 String algorithm, 62 this.algorithm = algorithm; 69 String algorithm, 73 this.algorithm = algorithm; [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreBCWorkaroundProvider.java | 230 private void putMacImpl(String algorithm, String implClass) { 231 put("Mac." + algorithm, implClass); 232 put("Mac." + algorithm + " SupportedKeyClasses", KEYSTORE_SECRET_KEY_CLASS_NAME); 246 private void putSignatureImpl(String algorithm, String implClass) { 247 put("Signature." + algorithm, implClass); 248 put("Signature." + algorithm + " SupportedKeyClasses",
|
AndroidKeyStorePublicKey.java | 31 public AndroidKeyStorePublicKey(String alias, int uid, String algorithm, byte[] x509EncodedForm) { 32 super(alias, uid, algorithm);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
JCEECPrivateKey.java | 47 private String algorithm = "EC"; field in class:JCEECPrivateKey 64 this.algorithm = key.getAlgorithm(); 69 String algorithm, 72 this.algorithm = algorithm; 92 String algorithm, 95 this.algorithm = algorithm; 101 String algorithm, 104 this.algorithm = algorithm [all...] |
JCEECPublicKey.java | 54 private String algorithm = "EC"; field in class:JCEECPublicKey 63 String algorithm, 66 this.algorithm = algorithm; 76 String algorithm, 79 this.algorithm = algorithm; 85 String algorithm, 88 this.algorithm = algorithm; [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
CipherTest.java | 56 * Tests for algorithm-agnostic functionality of {@code Cipher} implementations backed by Android 231 // expose at least one Service for such an algorithm, and this Service's algorithm will 254 for (String algorithm : EXPECTED_ALGORITHMS) { 257 algorithm, 263 Cipher cipher = Cipher.getInstance(algorithm, provider); 268 cipher = Cipher.getInstance(algorithm); 274 cipher = Cipher.getInstance(algorithm); 282 throw new RuntimeException("Failed for " + algorithm, e); 291 for (String algorithm : EXPECTED_ALGORITHMS) [all...] |
/external/boringssl/src/crypto/evp/ |
p_rsa_asn1.c | 81 CBB spki, algorithm, oid, null, key_bitstring; local 83 !CBB_add_asn1(&spki, &algorithm, CBS_ASN1_SEQUENCE) || 84 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 86 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) || 138 CBB pkcs8, algorithm, oid, null, private_key; local 141 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || 142 !CBB_add_asn1(&algorithm, &oid, CBS_ASN1_OBJECT) || 144 !CBB_add_asn1(&algorithm, &null, CBS_ASN1_NULL) ||
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseAlgorithmParameterGenerator.java | 24 protected final AlgorithmParameters createParametersInstance(String algorithm) 27 return helper.createAlgorithmParameters(algorithm);
|
/external/vboot_reference/tests/ |
gen_test_keys.sh | 45 --algorithm ${alg} 51 --algorithm ${alg}
|
/libcore/benchmarks/src/benchmarks/regression/ |
KeyPairGeneratorBenchmark.java | 26 @Param private Algorithm algorithm; field in class:KeyPairGeneratorBenchmark 28 public enum Algorithm { 43 this.generatorAlgorithm = algorithm.toString();
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyRepTest.java | 109 fail("NotSerializableException has not been thrown (unknown KeyFactory algorithm)"); 132 fail("NotSerializableException has not been thrown (unknown KeyFactory algorithm)"); 138 for (String algorithm : keyFactoryAlgorithms) { 139 KeyRepChild kr = new KeyRepChild(KeyRep.Type.PUBLIC, algorithm, "X.509", 143 fail("NotSerializableException has not been thrown (no format) " + algorithm); 150 for (String algorithm : keyFactoryAlgorithms) { 151 KeyRepChild kr = new KeyRepChild(KeyRep.Type.PRIVATE, algorithm, "PKCS#8", 155 fail("NotSerializableException has not been thrown (no format) " + algorithm); 162 public KeyRepChild(KeyRep.Type type, String algorithm, String format, byte[] encoded) { 163 super(type, algorithm, format, encoded) [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
MessageDigestTestMD2.java | 29 fail("MD2 MessageDigest algorithm must not be supported"); 37 fail("MD2 MessageDigest algorithm must not be supported"); 72 protected MD2(String algorithm) { 73 super(algorithm);
|
/libcore/ojluni/src/main/java/java/security/ |
Signature.java | 50 * of a digital signature algorithm. Digital signatures are used for 53 * <p> The signature algorithm can be, among others, the NIST standard 54 * DSA, using DSA and SHA-1. The DSA algorithm using the 55 * SHA-1 message digest algorithm can be specified as {@code SHA1withDSA}. 57 * algorithm, so the signing algorithm could be specified as, for example, 59 * The algorithm name must be specified, as there is no default. 104 * <th>Algorithm</th> 243 * Java Cryptography Architecture Standard Algorithm Name Documentation. 264 * The algorithm for this signature object 268 private String algorithm; field in class:Signature [all...] |
/prebuilts/clang/host/darwin-x86/clang-3859424/lib64/clang/4.0/include/cuda_wrappers/ |
complex | 39 // Next, include our <algorithm> wrapper, to ensure that device overloads of 41 #include <algorithm>
|