Home
last modified time | relevance | path

Searched refs:Key (Results 1 – 25 of 72) sorted by relevance

123

/libcore/luni/src/test/java/libcore/javax/crypto/
DMockCipherSpi.java22 import java.security.Key;
40 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
104 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
110 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit()
116 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
124 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
130 protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, in engineInit()
136 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
144 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
[all …]
DMockKeyAgreementSpi.java21 import java.security.Key;
35 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
44 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
55 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
59 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
82 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
87 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
DMockMacSpi.java22 import java.security.Key;
38 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
47 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
58 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
67 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java69 CACHE.put(new Key(language, region), base); in createInstance()
86 Key key = new Key(language, script, region, variant); in getInstance()
167 private static final class Key { class in BaseLocale
179 private Key(String language, String region) { in Key() method in BaseLocale.Key
199 public Key(String language, String script, String region, String variant) { in Key() method in BaseLocale.Key
203 private Key(String language, String script, String region, in Key() method in BaseLocale.Key
252 if (obj instanceof Key && this.hash == ((Key)obj).hash) { in equals()
254 String ol = ((Key)obj).lang.get(); in equals()
258 String os = ((Key)obj).scrt.get(); in equals()
262 String or = ((Key)obj).regn.get(); in equals()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DMockKeyAgreementSpi.java21 import java.security.Key;
34 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
43 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
53 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
57 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
80 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
85 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
DMockMacSpi.java21 import java.security.Key;
30 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
39 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
49 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
58 protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, in engineInit()
DKeyAgreementSpiTest.java27 import java.security.Key;
48 protected Key engineDoPhase(Key key, boolean lastPhase) throws InvalidKeyException, in engineDoPhase()
71 protected void engineInit(Key key, SecureRandom random) throws InvalidKeyException { in engineInit()
76 protected void engineInit(Key key, AlgorithmParameterSpec params, SecureRandom random) in engineInit()
107 Key key = null; in testKeyAgreementSpi01()
DExemptionMechanismTest.java24 import java.security.Key;
129 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in testIsCryptoAllowed()
139 Key key1 = new MyExemptionMechanismSpi().new tmpKey("Proba", in testIsCryptoAllowed()
161 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in testGenExemptionBlob()
203 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob()
241 Key key = new Mock_ExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob$B()
281 Key key = new Mock_ExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_genExemptionBlob$BI()
378 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getName()
393 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getOutputSizeI()
416 Key key = new MyExemptionMechanismSpi().new tmpKey("Proba", new byte[0]); in test_getProvider()
[all …]
DExemptionMechanismSpiTest.java29 import java.security.Key;
66 protected void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException { in engineInit()
72 …protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, Inva… in engineInit()
78 …protected void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, Invalid… in engineInit()
98 Key key = null; in testExemptionMechanismSpi01()
DSealedObjectTest.java34 import java.security.Key;
104 Key key = kg.generateKey(); in testSealedObject1()
158 Key key = kg.generateKey(); in testGetAlgorithm()
173 Key key = kg.generateKey(); in testGetAlgorithmAfterSerialization()
203 Key key = kg.generateKey(); in testGetObject1()
222 so.getObject((Key)null); in testGetObject1()
247 Key key = kg.generateKey(); in testGetObject2()
294 Key key = kg.generateKey(); in testGetObject3()
329 Key key = kg.generateKey(); in testDeserialization()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java28 import java.security.Key;
66 protected void engineInit(Key key) throws InvalidKeyException, in engineInit()
77 protected void engineInit(Key key, AlgorithmParameters params) in engineInit()
92 protected void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
107 public class tmpKey implements Key {
125 public class tmp1Key implements Key {
DMyKeyAgreementSpi.java27 import java.security.Key;
45 protected Key engineDoPhase(Key key, boolean lastPhase) in engineDoPhase()
75 protected void engineInit(Key key, SecureRandom random) in engineInit()
81 protected void engineInit(Key key, AlgorithmParameterSpec params, in engineInit()
DMyCipher.java27 import java.security.Key;
83 protected void engineInit(int opmode, Key key, SecureRandom random) in engineInit()
88 protected void engineInit(int opmode, Key key, in engineInit()
94 protected void engineInit(int opmode, Key key, AlgorithmParameters params, in engineInit()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyAgreementSpi.java85 protected abstract void engineInit(Key key, SecureRandom random) in engineInit()
104 protected abstract void engineInit(Key key, AlgorithmParameterSpec params, in engineInit()
127 protected abstract Key engineDoPhase(Key key, boolean lastPhase) in engineDoPhase()
DExemptionMechanismSpi.java28 import java.security.Key;
81 protected abstract void engineInit(Key key) in engineInit()
105 protected abstract void engineInit(Key key, AlgorithmParameterSpec params) in engineInit()
130 protected abstract void engineInit(Key key, AlgorithmParameters params) in engineInit()
DNullCipherSpi.java69 protected void engineInit(int mode, Key key, SecureRandom random) {} in engineInit()
71 protected void engineInit(int mode, Key key, in engineInit()
75 protected void engineInit(int mode, Key key, in engineInit()
109 protected int engineGetKeySize(Key key) in engineGetKeySize()
DExemptionMechanism.java30 import java.security.Key;
70 private Key keyStored = null;
257 public final boolean isCryptoAllowed(Key key) in isCryptoAllowed()
314 public final void init(Key key) in init()
345 public final void init(Key key, AlgorithmParameterSpec params) in init()
377 public final void init(Key key, AlgorithmParameters params) in init()
DKeyAgreement.java372 private void implInit(KeyAgreementSpi spi, int type, Key key, in implInit()
382 private void chooseProvider(int initType, Key key, in chooseProvider()
469 public final void init(Key key) throws InvalidKeyException { in init()
493 public final void init(Key key, SecureRandom random) in init()
540 public final void init(Key key, AlgorithmParameterSpec params) in init()
562 public final void init(Key key, AlgorithmParameterSpec params, in init()
600 public final Key doPhase(Key key, boolean lastPhase) in doPhase()
DCipherSpi.java32 import java.security.Key;
354 protected abstract void engineInit(int opmode, Key key, in engineInit()
409 protected abstract void engineInit(int opmode, Key key, in engineInit()
465 protected abstract void engineInit(int opmode, Key key, in engineInit()
885 protected byte[] engineWrap(Key key) in engineWrap()
923 protected Key engineUnwrap(byte[] wrappedKey, in engineUnwrap()
943 protected int engineGetKeySize(Key key) in engineGetKeySize()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactorySpiTest.java24 import java.security.Key;
62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){ in engineGetKeySpec()
65 protected Key engineTranslateKey(Key key){ in engineTranslateKey()
DKeyFactoryTest.java8 import java.security.Key;
286 Key[] keys = { in testGetKeySpec()
301 Key key = keys[i]; in testGetKeySpec()
315 Key[] keys = { in testGetKeySpec()
337 Key key = keys[i]; in testGetKeySpec()
368 Key[] keys = { in testTranslateKey()
379 Key key = keys[i]; in testTranslateKey()
382 Key translateKey = factory.translateKey(key); in testTranslateKey()
392 Key[] keys = { in testTranslateKey()
403 Key key = keys[i]; in testTranslateKey()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyFactorySpi.java124 T engineGetKeySpec(Key key, Class<T> keySpec) in engineGetKeySpec()
139 protected abstract Key engineTranslateKey(Key key) in engineTranslateKey()
/libcore/luni/src/test/java/libcore/java/security/
DMockSignatureSpi.java21 import java.security.Key;
33 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
42 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
52 public void checkKeyType(Key key) throws InvalidKeyException { in checkKeyType()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DCipher.annotated.java65 public final void init(int opmode, java.security.Key key) throws java.security.InvalidKeyException … in init()
67 public final void init(int opmode, java.security.Key key, java.security.SecureRandom random) throws… in init()
69 public final void init(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec… in init()
71 public final void init(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec… in init()
73 public final void init(int opmode, java.security.Key key, java.security.AlgorithmParameters params)… in init()
75 public final void init(int opmode, java.security.Key key, java.security.AlgorithmParameters params,… in init()
105 public final byte[] wrap(java.security.Key key) throws javax.crypto.IllegalBlockSizeException, java… in wrap()
107 public final java.security.Key unwrap(byte[] wrappedKey, java.lang.String wrappedKeyAlgorithm, int … in unwrap()
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java22 import java.security.Key;
50 Key key = fact.generatePublic(new X509EncodedKeySpec(encoded)); in test_getEncoded()
63 private boolean isEqual(Key key1, Key key2) { in isEqual()

123