Searched refs:Cipher (Results 1 - 25 of 45) sorted by relevance

12

/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DNullCipher.java36 public class NullCipher extends Cipher {
44 this.init(Cipher.ENCRYPT_MODE, (Key)null, (SecureRandom)null);
H A DSealedObject.java87 public SealedObject(Serializable object, Cipher c)
160 Cipher cipher = Cipher.getInstance(sealAlg);
165 cipher.init(Cipher.DECRYPT_MODE, key, params);
167 cipher.init(Cipher.DECRYPT_MODE, key);
214 public final Object getObject(Cipher c)
256 Cipher cipher = Cipher.getInstance(sealAlg, provider);
261 cipher.init(Cipher.DECRYPT_MODE, key, params);
263 cipher.init(Cipher
[all...]
H A DEncryptedPrivateKeyInfo.java233 * The cipher must be initialize in either {@code Cipher.DECRYPT_MODE} or
234 * {@code Cipher.UNWRAP_MODE} with the same parameters and key used for
246 public PKCS8EncodedKeySpec getKeySpec(Cipher cipher)
292 Cipher cipher = Cipher.getInstance(algName);
294 cipher.init(Cipher.DECRYPT_MODE, decryptKey);
296 cipher.init(Cipher.DECRYPT_MODE, decryptKey, algParameters);
353 Cipher cipher = Cipher.getInstance(algName, providerName);
355 cipher.init(Cipher
[all...]
H A DCipherOutputStream.java37 private final Cipher cipher;
42 * OutputStream} and a {@code Cipher}.
49 public CipherOutputStream(OutputStream os, Cipher c) {
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipherTest.java56 import javax.crypto.Cipher;
66 @TestTargetClass(Cipher.class)
97 * @tests javax.crypto.Cipher#getInstance(java.lang.String)
122 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
123 assertNotNull("Received a null Cipher instance", cipher);
126 Cipher.getInstance("WrongAlgorithmName");
135 * @tests javax.crypto.Cipher#getInstance(java.lang.String,
163 Provider[] providers = Security.getProviders("Cipher.DES");
165 assertNotNull("No installed providers support Cipher
[all...]
H A DSealedObjectTest.java42 import javax.crypto.Cipher;
55 public Mock_SealedObject(Serializable object, Cipher c)
99 * SealedObject(Serializable object, Cipher c) method testing. Tests if the
105 args = {java.io.Serializable.class, javax.crypto.Cipher.class}
122 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding");
123 cipher.init(Cipher.ENCRYPT_MODE, key, ips);
127 cipher = Cipher.getInstance("DES/CBC/NoPadding");
128 cipher.init(Cipher.ENCRYPT_MODE, key, ips);
157 Cipher ciphe
[all...]
H A DCipherOutputStreamTest.java26 import javax.crypto.Cipher;
44 new CipherOutputStream((OutputStream) null, Cipher
53 new CipherOutputStream(ch, Cipher
H A DCipherInputStreamTest.java31 import javax.crypto.Cipher;
71 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
78 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
H A DCipherOutputStream1Test.java44 import javax.crypto.Cipher;
68 * CipherOutputStream uses NullCipher if Cipher is not specified
85 fail("NullCipher should be used " + "if Cipher is not specified.");
193 Cipher cf = Cipher.getInstance("DES/CBC/PKCS5Padding");
252 args = {java.io.OutputStream.class, javax.crypto.Cipher.class}
262 Cipher c = Cipher.getInstance("DES/CBC/NoPadding");
263 c.init(Cipher.ENCRYPT_MODE, key);
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherWrapThread.java22 import javax.crypto.Cipher;
37 Cipher cip = Cipher.getInstance(getAlgName());
39 cip.init(Cipher.WRAP_MODE, key);
41 cip.init(Cipher.UNWRAP_MODE, key);
42 Key decrypted = cip.unwrap(output, getAlgName(), Cipher.SECRET_KEY);
H A DCipherSymmetricKeyThread.java23 import javax.crypto.Cipher;
46 Cipher cip = Cipher.getInstance(getAlgName() + "/" + getMode() + "/" +
56 cip.init(Cipher.ENCRYPT_MODE, key, ivspec);
61 cip.init(Cipher.DECRYPT_MODE, key, ivspec);
64 cip.init(Cipher.ENCRYPT_MODE, key);
67 cip.init(Cipher.DECRYPT_MODE, key);
H A DCipherPBEThread.java22 import javax.crypto.Cipher;
46 Cipher cip = Cipher.getInstance(getAlgName() + "/" + getMode() + "/" +
52 cip.init(Cipher.ENCRYPT_MODE, key, parSpec);
55 cip.init(Cipher.DECRYPT_MODE, key, parSpec);
H A DCipherRSAThread.java22 import javax.crypto.Cipher;
40 Cipher cip = Cipher.getInstance(getAlgName() + "/" + getMode() + "/" +
42 cip.init(Cipher.ENCRYPT_MODE, kp.getPublic());
45 cip.init(Cipher.DECRYPT_MODE, kp.getPrivate());
H A DCipherAesWrapTest.java24 import targets.Cipher;
27 @TestTargetClass(Cipher.AESWrap.class)
H A DCipherDESedeWrapTest.java24 import targets.Cipher;
26 @TestTargetClass(Cipher.DESedeWrap.class)
H A DCipherAesTest.java24 import targets.Cipher;
26 @TestTargetClass(Cipher.AES.class)
H A DCipherDESedeTest.java24 import targets.Cipher;
26 @TestTargetClass(Cipher.DESede.class)
H A DCipherDesTest.java24 import targets.Cipher;
26 @TestTargetClass(Cipher.DES.class)
H A DCipherRSATest.java25 import targets.Cipher;
27 @TestTargetClass(Cipher.RSA.class)
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCEIESCipher.java12 import javax.crypto.Cipher;
93 if (state == Cipher.ENCRYPT_MODE || state == Cipher.WRAP_MODE)
97 else if (state == Cipher.DECRYPT_MODE || state == Cipher.UNWRAP_MODE)
155 if (params == null && (opmode == Cipher.ENCRYPT_MODE || opmode == Cipher.WRAP_MODE))
209 case Cipher.ENCRYPT_MODE:
210 case Cipher.WRAP_MODE:
213 case Cipher
[all...]
H A DJCEStreamCipher.java10 import javax.crypto.Cipher;
225 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE))
241 case Cipher.ENCRYPT_MODE:
242 case Cipher.WRAP_MODE:
245 case Cipher.DECRYPT_MODE:
246 case Cipher.UNWRAP_MODE:
/dalvik/libcore/support/src/test/java/targets/
H A DCipher.java8 public interface Cipher { interface
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DConnectionState.java22 import javax.crypto.Cipher;
33 protected Cipher encCipher;
38 protected Cipher decCipher;
66 * Generic[Stream|Generic]Cipher structure under this
75 * Returns the size of the Generic[Stream|Generic]Cipher structure
84 * into the Generic[Stream|Generic]Cipher structure of specified size.
H A DDigitalSignature.java30 import javax.crypto.Cipher;
62 private final Cipher cipher;
81 cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
112 cipher.init(Cipher.ENCRYPT_MODE, key);
129 cipher.init(Cipher.DECRYPT_MODE, cert);
/dalvik/libcore/security/src/test/java/tests/targets/security/
H A DCipherHelper.java36 import javax.crypto.Cipher;
72 Cipher cipher = null;
74 cipher = Cipher.getInstance(algorithmName);
102 byte[] crypt(Cipher cipher, byte[] input) {
120 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
121 Cipher.DECRYPT_MODE);
136 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
137 Cipher.DECRYPT_MODE);
275 Cipher cipher = null;
277 cipher = Cipher
[all...]

Completed in 197 milliseconds

12