/libcore/luni/src/test/java/libcore/javax/crypto/ |
D | MockCipherSpi.java | 22 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 …]
|
D | MockKeyAgreementSpi.java | 21 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()
|
D | MockMacSpi.java | 22 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/ |
D | BaseLocale.java | 69 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/ |
D | MockKeyAgreementSpi.java | 21 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()
|
D | MockMacSpi.java | 21 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()
|
D | KeyAgreementSpiTest.java | 27 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()
|
D | ExemptionMechanismTest.java | 24 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 …]
|
D | ExemptionMechanismSpiTest.java | 29 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()
|
D | SealedObjectTest.java | 34 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/ |
D | MyExemptionMechanismSpi.java | 28 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 {
|
D | MyKeyAgreementSpi.java | 27 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()
|
D | MyCipher.java | 27 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/ |
D | KeyAgreementSpi.java | 85 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()
|
D | ExemptionMechanismSpi.java | 28 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()
|
D | NullCipherSpi.java | 69 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()
|
D | ExemptionMechanism.java | 30 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()
|
D | KeyAgreement.java | 372 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()
|
D | CipherSpi.java | 32 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/ |
D | KeyFactorySpiTest.java | 24 import java.security.Key; 62 protected KeySpec engineGetKeySpec(Key key, Class keySpec){ in engineGetKeySpec() 65 protected Key engineTranslateKey(Key key){ in engineTranslateKey()
|
D | KeyFactoryTest.java | 8 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/luni/src/test/java/libcore/java/security/ |
D | MockSignatureSpi.java | 21 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/src/main/java/java/security/ |
D | KeyFactorySpi.java | 124 T engineGetKeySpec(Key key, Class<T> keySpec) in engineGetKeySpec() 139 protected abstract Key engineTranslateKey(Key key) in engineTranslateKey()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestKeyStoreSpi.java | 8 import java.security.Key; 37 public static final Key KEY = new SecretKey() { 108 public Key engineGetKey(String alias, char[] password) in engineGetKey() 119 return (Key) aliases.get(alias); in engineGetKey() 138 Key k = (Key) aliases.get(alias); in engineIsKeyEntry() 197 public void engineSetKeyEntry(String alias, Key key, char[] password, in engineSetKeyEntry()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpec2Test.java | 22 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()
|