/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
D | GCMParameterSpecTest.java | 17 package org.apache.harmony.crypto.tests.javax.crypto.spec; 21 import javax.crypto.spec.GCMParameterSpec; 77 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV); in testGetIV_Success() local 79 byte[] actual = spec.getIV(); in testGetIV_Success() 88 Arrays.equals(spec.getIV(), actual)); in testGetIV_Success() 89 assertEquals(Arrays.toString(TEST_IV), Arrays.toString(spec.getIV())); in testGetIV_Success() 93 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV, 2, 4); in testGetIV_Subarray_Success() local 95 Arrays.toString(spec.getIV())); in testGetIV_Subarray_Success() 99 GCMParameterSpec spec = new GCMParameterSpec(8, TEST_IV); in testGetTLen_Success() local 100 assertEquals(8, spec.getTLen()); in testGetTLen_Success()
|
/libcore/luni/src/main/java/libcore/net/url/ |
D | JarHandler.java | 57 protected void parseURL(URL url, String spec, int start, int limit) { in parseURL() argument 63 spec = spec.substring(start, limit); in parseURL() 65 spec = ""; in parseURL() 67 if (spec.indexOf("!/") == -1 && (file.indexOf("!/") == -1)) { in parseURL() 71 file = spec; in parseURL() 72 } else if (spec.charAt(0) == '/') { in parseURL() 73 file = file.substring(0, file.indexOf('!') + 1) + spec; in parseURL() 76 String tmpFile = file.substring(idx + 1, file.lastIndexOf('/') + 1) + spec; in parseURL()
|
/libcore/luni/src/main/java/java/net/ |
D | URLStreamHandler.java | 85 protected void parseURL(URL url, String spec, int start, int end) { in parseURL() argument 90 throw new StringIndexOutOfBoundsException(spec, start, end - start); in parseURL() 101 if (spec.regionMatches(start, "//", 0, 2)) { in parseURL() 104 fileStart = UrlUtils.findFirstOf(spec, "/?#", authorityStart, end); in parseURL() 105 authority = spec.substring(authorityStart, fileStart); in parseURL() 106 int userInfoEnd = UrlUtils.findFirstOf(spec, "@", authorityStart, fileStart); in parseURL() 109 userInfo = spec.substring(authorityStart, userInfoEnd); in parseURL() 122 int ipv6End = UrlUtils.findFirstOf(spec, "]", hostStart, fileStart); in parseURL() 124 if (UrlUtils.findFirstOf(spec, ":", hostStart, ipv6End) == ipv6End) { in parseURL() 126 + spec.substring(hostStart, ipv6End + 1)); in parseURL() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SchemePrefixBenchmark.java | 29 @Override String execute(String spec) { in JAVA() argument 30 int colon = spec.indexOf(':'); in JAVA() 37 char c = spec.charAt(i); in JAVA() 43 return spec.substring(0, colon).toLowerCase(Locale.US); in JAVA() 60 @Override String execute(String spec) { in REGEX() argument 61 Matcher matcher = pattern.matcher(spec); in REGEX() 71 abstract String execute(String spec); in execute() argument
|
D | CipherInputStreamBenchmark.java | 26 import java.security.spec.AlgorithmParameterSpec; 36 import javax.crypto.spec.IvParameterSpec; 64 private AlgorithmParameterSpec spec; field in CipherInputStreamBenchmark 71 spec = new IvParameterSpec(IV); in setUp() 74 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp() 79 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in timeEncrypt()
|
D | CipherBenchmark.java | 23 import java.security.spec.AlgorithmParameterSpec; 31 import javax.crypto.spec.IvParameterSpec; 100 private AlgorithmParameterSpec spec; field in CipherBenchmark 127 spec = new IvParameterSpec(IV); in setUp() 131 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp() 134 cipherDecrypt.init(Cipher.DECRYPT_MODE, key, spec); in setUp()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | TrustManagerFactorySpiImpl.java | 15 private static ManagerFactoryParameters spec = null; field in TrustManagerFactorySpiImpl 22 … public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException { in engineInit() argument 24 this.spec = spec; in engineInit() 50 return spec; in getSpec()
|
D | MyKeyManagerFactorySpi.java | 49 protected void engineInit(ManagerFactoryParameters spec) in engineInit() argument 51 if (spec == null) { in engineInit() 54 if (spec instanceof Parameters) { in engineInit() 56 engineInit(((Parameters)spec).getKeyStore(), in engineInit() 57 ((Parameters)spec).getPassword()); in engineInit()
|
D | MyTrustManagerFactorySpi.java | 41 protected void engineInit(ManagerFactoryParameters spec) in engineInit() argument 43 if (spec == null) { in engineInit() 46 if (spec instanceof Parameters) { in engineInit() 48 engineInit(((Parameters)spec).getKeyStore()); in engineInit()
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
D | AlgorithmParametersTestOAEP.java | 16 package libcore.javax.crypto.spec; 18 import java.security.spec.MGF1ParameterSpec; 19 import javax.crypto.spec.OAEPParameterSpec; 20 import javax.crypto.spec.PSource;
|
D | KeyFactoryTestDH.java | 16 package libcore.javax.crypto.spec; 19 import javax.crypto.spec.DHPrivateKeySpec; 20 import javax.crypto.spec.DHPublicKeySpec;
|
D | KeyFactoryTestDSA.java | 16 package libcore.javax.crypto.spec; 19 import java.security.spec.DSAPrivateKeySpec; 20 import java.security.spec.DSAPublicKeySpec;
|
D | KeyFactoryTestRSA.java | 16 package libcore.javax.crypto.spec; 19 import java.security.spec.RSAPrivateKeySpec; 20 import java.security.spec.RSAPublicKeySpec;
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | ECPrivateKeySpecTest.java | 17 package tests.security.spec; 22 import java.security.spec.ECFieldF2m; 23 import java.security.spec.ECParameterSpec; 24 import java.security.spec.ECPoint; 25 import java.security.spec.ECPrivateKeySpec; 26 import java.security.spec.EllipticCurve;
|
D | ECPublicKeySpecTest.java | 17 package tests.security.spec; 22 import java.security.spec.ECFieldF2m; 23 import java.security.spec.ECParameterSpec; 24 import java.security.spec.ECPoint; 25 import java.security.spec.ECPublicKeySpec; 26 import java.security.spec.EllipticCurve;
|
D | ECParameterSpecTest.java | 17 package tests.security.spec; 22 import java.security.spec.ECFieldF2m; 23 import java.security.spec.ECParameterSpec; 24 import java.security.spec.ECPoint; 25 import java.security.spec.EllipticCurve;
|
D | X509EncodedKeySpecTest.java | 23 package tests.security.spec; 27 import java.security.spec.EncodedKeySpec; 28 import java.security.spec.PKCS8EncodedKeySpec; 29 import java.security.spec.X509EncodedKeySpec;
|
D | RSAPrivateKeySpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.KeySpec; 29 import java.security.spec.RSAPrivateKeySpec;
|
D | RSAKeyGenParameterSpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.AlgorithmParameterSpec; 29 import java.security.spec.RSAKeyGenParameterSpec;
|
D | DSAParameterSpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.AlgorithmParameterSpec; 29 import java.security.spec.DSAParameterSpec;
|
D | RSAPublicKeySpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.KeySpec; 29 import java.security.spec.RSAPublicKeySpec;
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | SecretKeyFactoryThread.java | 18 import java.security.spec.KeySpec; 21 import javax.crypto.spec.DESKeySpec; 22 import javax.crypto.spec.DESedeKeySpec; 23 import javax.crypto.spec.PBEKeySpec;
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | Util.java | 19 import java.security.spec.ECFieldFp; 20 import java.security.spec.ECParameterSpec; 21 import java.security.spec.ECPoint; 22 import java.security.spec.EllipticCurve; 23 import java.security.spec.RSAPrivateCrtKeySpec;
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyTrustManagerFactorySpi.java | 41 protected void engineInit(ManagerFactoryParameters spec) in engineInit() argument 43 if (spec == null) { in engineInit() 46 if (spec instanceof Parameters) { in engineInit() 48 engineInit(((Parameters)spec).getKeyStore()); in engineInit()
|
/libcore/support/src/test/java/tests/security/ |
D | DefaultKeys.java | 22 import java.security.spec.InvalidKeySpecException; 23 import java.security.spec.KeySpec; 24 import java.security.spec.PKCS8EncodedKeySpec; 25 import java.security.spec.X509EncodedKeySpec;
|