Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 241) sorted by relevance

12345678910

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/
DGCMParameterSpecTest.java17 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/
DJarHandler.java57 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/
DURLStreamHandler.java85 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/
DSchemePrefixBenchmark.java29 @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
DCipherInputStreamBenchmark.java26 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()
DCipherBenchmark.java23 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/
DTrustManagerFactorySpiImpl.java15 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()
DMyKeyManagerFactorySpi.java49 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()
DMyTrustManagerFactorySpi.java41 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/
DAlgorithmParametersTestOAEP.java16 package libcore.javax.crypto.spec;
18 import java.security.spec.MGF1ParameterSpec;
19 import javax.crypto.spec.OAEPParameterSpec;
20 import javax.crypto.spec.PSource;
DKeyFactoryTestDH.java16 package libcore.javax.crypto.spec;
19 import javax.crypto.spec.DHPrivateKeySpec;
20 import javax.crypto.spec.DHPublicKeySpec;
DKeyFactoryTestDSA.java16 package libcore.javax.crypto.spec;
19 import java.security.spec.DSAPrivateKeySpec;
20 import java.security.spec.DSAPublicKeySpec;
DKeyFactoryTestRSA.java16 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/
DECPrivateKeySpecTest.java17 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;
DECPublicKeySpecTest.java17 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;
DECParameterSpecTest.java17 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;
DX509EncodedKeySpecTest.java23 package tests.security.spec;
27 import java.security.spec.EncodedKeySpec;
28 import java.security.spec.PKCS8EncodedKeySpec;
29 import java.security.spec.X509EncodedKeySpec;
DRSAPrivateKeySpecTest.java23 package tests.security.spec;
28 import java.security.spec.KeySpec;
29 import java.security.spec.RSAPrivateKeySpec;
DRSAKeyGenParameterSpecTest.java23 package tests.security.spec;
28 import java.security.spec.AlgorithmParameterSpec;
29 import java.security.spec.RSAKeyGenParameterSpec;
DDSAParameterSpecTest.java23 package tests.security.spec;
28 import java.security.spec.AlgorithmParameterSpec;
29 import java.security.spec.DSAParameterSpec;
DRSAPublicKeySpecTest.java23 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/
DSecretKeyFactoryThread.java18 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/
DUtil.java19 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/
DMyTrustManagerFactorySpi.java41 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/
DDefaultKeys.java22 import java.security.spec.InvalidKeySpecException;
23 import java.security.spec.KeySpec;
24 import java.security.spec.PKCS8EncodedKeySpec;
25 import java.security.spec.X509EncodedKeySpec;

12345678910