/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | Handler.java | 44 private static int indexOfBangSlash(String spec) { in indexOfBangSlash() argument 45 int indexOfBang = spec.length(); in indexOfBangSlash() 46 while((indexOfBang = spec.lastIndexOf('!', indexOfBang)) != -1) { in indexOfBangSlash() 47 if ((indexOfBang != (spec.length() - 1)) && in indexOfBangSlash() 48 (spec.charAt(indexOfBang + 1) == '/')) { in indexOfBangSlash() 127 protected void parseURL(URL url, String spec, in parseURL() argument 132 int refPos = spec.indexOf('#', limit); in parseURL() 135 ref = spec.substring(refPos + 1, spec.length()); in parseURL() 145 if (spec.length() >= 4) { in parseURL() 146 absoluteSpec = spec.substring(0, 4).equalsIgnoreCase("jar:"); in parseURL() [all …]
|
/libcore/ojluni/annotations/flagged_api/java/security/spec/ |
D | MGF1ParameterSpec.annotated.java | 27 package java.security.spec; 30 public class MGF1ParameterSpec implements java.security.spec.AlgorithmParameterSpec { 38 public static final java.security.spec.MGF1ParameterSpec SHA1; 41 public static final java.security.spec.MGF1ParameterSpec SHA224; 44 public static final java.security.spec.MGF1ParameterSpec SHA256; 47 public static final java.security.spec.MGF1ParameterSpec SHA384; 51 public static final java.security.spec.MGF1ParameterSpec SHA3_224; 55 public static final java.security.spec.MGF1ParameterSpec SHA3_256; 59 public static final java.security.spec.MGF1ParameterSpec SHA3_384; 63 public static final java.security.spec.MGF1ParameterSpec SHA3_512; [all …]
|
D | PSSParameterSpec.annotated.java | 27 package java.security.spec; 30 public class PSSParameterSpec implements java.security.spec.AlgorithmParameterSpec { 32 public PSSParameterSpec(java.lang.String mdName, java.lang.String mgfName, java.security.spec.Algor… in PSSParameterSpec() 40 public java.security.spec.AlgorithmParameterSpec getMGFParameters() { throw new RuntimeException("S… in getMGFParameters() 48 public static final java.security.spec.PSSParameterSpec DEFAULT;
|
D | RSAMultiPrimePrivateCrtKeySpec.annotated.java | 27 package java.security.spec; 30 public class RSAMultiPrimePrivateCrtKeySpec extends java.security.spec.RSAPrivateKeySpec { 32 …nteger primeExponentQ, java.math.BigInteger crtCoefficient, java.security.spec.RSAOtherPrimeInfo[]… in RSAMultiPrimePrivateCrtKeySpec() 35 ….math.BigInteger crtCoefficient, java.security.spec.RSAOtherPrimeInfo[] otherPrimeInfo, java.secur… in RSAMultiPrimePrivateCrtKeySpec() 49 public java.security.spec.RSAOtherPrimeInfo[] getOtherPrimeInfo() { throw new RuntimeException("Stu… in getOtherPrimeInfo()
|
/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/ojluni/annotations/hiddenapi/java/security/spec/ |
D | ECParameterSpec.java | 27 package java.security.spec; 32 public class ECParameterSpec implements java.security.spec.AlgorithmParameterSpec { 35 java.security.spec.EllipticCurve curve, in ECParameterSpec() 36 java.security.spec.ECPoint g, in ECParameterSpec() 42 public java.security.spec.EllipticCurve getCurve() { in getCurve() 46 public java.security.spec.ECPoint getGenerator() { in getGenerator() 68 private final java.security.spec.EllipticCurve curve; 76 private final java.security.spec.ECPoint g;
|
/libcore/luni/src/test/java/libcore/java/security/spec/ |
D | EdDSAParameterSpecTest.java | 17 package libcore.java.security.spec; 30 import java.security.spec.EdDSAParameterSpec; 38 EdDSAParameterSpec spec = new EdDSAParameterSpec(true); in testIsPrehash() local 39 assertTrue(spec.isPrehash()); in testIsPrehash() 40 assertEquals(Optional.empty(), spec.getContext()); in testIsPrehash() 46 EdDSAParameterSpec spec = new EdDSAParameterSpec(false, context); in testGetContext() local 47 assertFalse(spec.isPrehash()); in testGetContext() 48 assertArrayEquals(context, spec.getContext().get()); in testGetContext()
|
/libcore/ojluni/annotations/mmodule/java/security/spec/ |
D | ECParameterSpec.annotated.java | 27 package java.security.spec; 31 public class ECParameterSpec implements java.security.spec.AlgorithmParameterSpec { 33 public ECParameterSpec(java.security.spec.EllipticCurve curve, java.security.spec.ECPoint g, java.m… in ECParameterSpec() 35 public java.security.spec.EllipticCurve getCurve() { throw new RuntimeException("Stub!"); } in getCurve() 37 public java.security.spec.ECPoint getGenerator() { throw new RuntimeException("Stub!"); } in getGenerator()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SchemePrefixBenchmark.java | 28 @Override String execute(String spec) { in JAVA() argument 29 int colon = spec.indexOf(':'); in JAVA() 36 char c = spec.charAt(i); in JAVA() 42 return spec.substring(0, colon).toLowerCase(Locale.US); in JAVA() 59 @Override String execute(String spec) { in REGEX() argument 60 Matcher matcher = pattern.matcher(spec); in REGEX() 70 abstract String execute(String spec); in execute() argument
|
D | CipherInputStreamBenchmark.java | 22 import java.security.spec.AlgorithmParameterSpec; 27 import javax.crypto.spec.IvParameterSpec; 55 private AlgorithmParameterSpec spec; field in CipherInputStreamBenchmark 63 spec = new IvParameterSpec(IV); in setUp() 66 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp() 71 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in timeEncrypt()
|
/libcore/ojluni/src/main/java/java/net/ |
D | JarURLConnection.java | 165 String spec = url.getFile(); in parseSpecs() local 167 int separator = spec.indexOf("!/"); in parseSpecs() 172 throw new MalformedURLException("no !/ found in url spec:" + spec); in parseSpecs() 175 jarFileURL = new URL(spec.substring(0, separator++)); in parseSpecs() 190 if (++separator != spec.length()) { in parseSpecs() 191 entryName = spec.substring(separator, spec.length()); in parseSpecs()
|
/libcore/luni/src/test/java/tests/security/spec/ |
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 | 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 | RSAPrivateKeySpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.AlgorithmParameterSpec; 29 import java.security.spec.KeySpec; 30 import java.security.spec.PSSParameterSpec; 31 import java.security.spec.RSAPrivateKeySpec;
|
D | MGF1ParameterSpecTest.java | 23 package tests.security.spec; 27 import java.security.spec.MGF1ParameterSpec; 114 private static void assertToString(MGF1ParameterSpec spec) { in assertToString() argument 115 String name = spec.getDigestAlgorithm(); in assertToString() 117 + "\n but \"" + spec.toString() + "\""; in assertToString() 118 assertTrue(msg, spec.toString().contains(name)); in assertToString()
|
D | RSAPublicKeySpecTest.java | 23 package tests.security.spec; 28 import java.security.spec.AlgorithmParameterSpec; 29 import java.security.spec.KeySpec; 30 import java.security.spec.PSSParameterSpec; 31 import java.security.spec.RSAPublicKeySpec;
|
D | EncodedKeySpecTest.java | 23 package tests.security.spec; 27 import org.apache.harmony.security.tests.support.spec.MyEncodedKeySpec; 29 import java.security.spec.EncodedKeySpec; 124 EncodedKeySpec spec = new MyEncodedKeySpec2(encodedKey, algo); in testGetAlgorithm() local 125 assertEquals(algo, spec.getAlgorithm()); in testGetAlgorithm()
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | TrustManagerFactorySpiImpl.java | 32 private static ManagerFactoryParameters spec = null; field in TrustManagerFactorySpiImpl 39 … public void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException { in engineInit() argument 41 this.spec = spec; in engineInit() 67 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()
|
/libcore/luni/src/test/java/tests/javax/crypto/spec/ |
D | ChaCha20ParameterSpecTest.java | 17 package tests.javax.crypto.spec; 23 import javax.crypto.spec.ChaCha20ParameterSpec; 41 ChaCha20ParameterSpec spec = new ChaCha20ParameterSpec(nonce, counter); in constructor_withValidValues() local 43 assertEquals(counter, spec.getCounter()); in constructor_withValidValues() 44 assertArrayEquals(nonce, spec.getNonce()); in constructor_withValidValues()
|
/libcore/ojluni/src/test/java/security/KeyAgreement/ |
D | KeyAgreementTest.java | 37 import java.security.spec.NamedParameterSpec; 38 import java.security.spec.AlgorithmParameterSpec; 39 import java.security.spec.ECGenParameterSpec; 44 import javax.crypto.spec.DHGenParameterSpec; 60 for (AlgorithmParameterSpec spec : specs) { in testKeyAgreement() 61 testKeyAgreement(providers.get(i), kaAlgos.get(i), kpgAlgos.get(i), spec); in testKeyAgreement() local 113 String kpgAlgo, AlgorithmParameterSpec spec) throws Exception { in testKeyAgreement() argument 116 kpg.initialize(spec); in testKeyAgreement()
|
D | NegativeTest.java | 54 import java.security.spec.InvalidKeySpecException; 55 import java.security.spec.NamedParameterSpec; 56 import java.security.spec.KeySpec; 57 import java.security.spec.PKCS8EncodedKeySpec; 58 import java.security.spec.X509EncodedKeySpec; 59 import java.security.spec.XECPrivateKeySpec; 60 import java.security.spec.XECPublicKeySpec; 256 NamedParameterSpec spec = new NamedParameterSpec(name); in testNamedParameter() local 259 kpg.initialize(spec); in testNamedParameter() 278 NamedParameterSpec spec = new NamedParameterSpec(curve); in testInvalidSpec() local [all …]
|
/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/ojluni/annotations/sdk/nullability/java/security/spec/ |
D | NamedParameterSpec.annotated.java | 26 package java.security.spec; 29 public class NamedParameterSpec implements java.security.spec.AlgorithmParameterSpec { 35 public static final java.security.spec.NamedParameterSpec X25519; 38 public static final java.security.spec.NamedParameterSpec X448;
|
/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;
|