HomeSort by relevance Sort by last modified time
    Searched refs:Cipher (Results 1 - 25 of 79) sorted by null

1 2 3 4

  /external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
Cipher_ImplTest.java 31 import javax.crypto.Cipher;
39 * Tests for <code>Cipher</code> class constructors and methods.
88 * Class under test for Cipher getInstance(String)
93 Cipher c = Cipher.getInstance("DES");
98 * Class under test for Cipher getInstance(String)
103 Cipher c = Cipher.getInstance("DES/CBC/PKCS5Padding");
108 c = Cipher.getInstance("DES/CBC/PKCS5Padding");
113 * Class under test for Cipher getInstance(String
    [all...]
Cipher_Impl1Test.java 25 import javax.crypto.Cipher;
46 * @tests javax.crypto.Cipher#getIV()
47 * @tests javax.crypto.Cipher#init(int, java.security.Key,
57 Cipher cipher = null; local
64 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding");
65 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap);
67 byte[] cipherIV = cipher.getIV()
85 Cipher cipher = null; local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherTest.java 42 import javax.crypto.Cipher;
89 * javax.crypto.Cipher#getInstance(java.lang.String)
92 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding"); local
93 assertNotNull("Received a null Cipher instance", cipher);
96 Cipher.getInstance("WrongAlgorithmName");
103 * javax.crypto.Cipher#getInstance(java.lang.String,
109 Provider[] providers = Security.getProviders("Cipher.DES")
114 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); local
148 Cipher cipher = Cipher.getInstance("DES", providers[i]); local
176 Cipher cipher = Cipher.getInstance("AES", provider.getName()); local
190 Cipher cipher = Cipher.getInstance(algorithm); local
201 Cipher cipher = Cipher.getInstance(algorithm); local
210 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local
233 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local
250 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local
268 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/CBC\/PKCS5Padding"); local
297 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/CBC\/PKCS5Padding"); local
369 Cipher cipher = Cipher.getInstance("DESEDE\/CBC\/PKCS5Padding"); local
1119 Cipher cipher = Cipher.getInstance("DESEDE\/CBC\/PKCS5Padding"); local
    [all...]
CipherOutputStreamTest.java 21 import javax.crypto.Cipher;
32 new CipherOutputStream((OutputStream) null, Cipher
41 new CipherOutputStream(ch, Cipher
SealedObjectTest.java 39 import javax.crypto.Cipher;
53 public Mock_SealedObject(Serializable object, Cipher c)
91 * SealedObject(Serializable object, Cipher c) method testing. Tests if the
92 * NullPointerException is thrown in the case of null cipher.
99 + "of null cipher.");
109 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); local
110 cipher.init(Cipher.ENCRYPT_MODE, key, ips)
138 Cipher cipher = new NullCipher(); local
160 Cipher cipher = Cipher.getInstance(algorithm); local
180 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
224 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
268 Cipher cipher = Cipher.getInstance("DES"); local
302 Cipher cipher = Cipher.getInstance("DES"); local
    [all...]
CipherInputStreamTest.java 26 import javax.crypto.Cipher;
53 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
60 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
  /external/openssh/
cipher.h 1 /* $OpenBSD: cipher.h,v 1.37 2009/01/26 09:58:15 markus Exp $ */
42 * Cipher types for SSH-1. New types can be added, but old types should not
46 #define SSH_CIPHER_INVALID -2 /* No valid cipher selected. */
61 typedef struct Cipher Cipher;
64 struct Cipher;
68 Cipher *cipher; member in struct:CipherContext
72 Cipher *cipher_by_name(const char *);
73 Cipher *cipher_by_number(int)
    [all...]
cipher.c 1 /* $OpenBSD: cipher.c,v 1.82 2009/01/26 09:58:15 markus Exp $ */
49 #include "cipher.h"
60 struct Cipher {
99 cipher_blocksize(const Cipher *c)
105 cipher_keylen(const Cipher *c)
111 cipher_get_number(const Cipher *c)
117 cipher_is_cbc(const Cipher *c)
134 Cipher *
137 Cipher *c;
144 Cipher *
    [all...]
  /libcore/support/src/test/java/tests/security/
CipherAsymmetricCryptHelper.java 20 import javax.crypto.Cipher;
27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
28 Cipher.DECRYPT_MODE);
CipherSymmetricCryptHelper.java 19 import javax.crypto.Cipher;
27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
28 Cipher.DECRYPT_MODE);
CipherHelper.java 23 import javax.crypto.Cipher;
43 Cipher cipher = null; local
45 cipher = Cipher.getInstance(algorithmName);
52 cipher.init(mode1, encryptKey);
57 byte[] encrypted = crypt(cipher, plainData.getBytes());
60 cipher.init(mode2, decryptKey);
65 byte[] decrypted = crypt(cipher, encrypted);
73 public byte[] crypt(Cipher cipher, byte[] input)
    [all...]
AlgorithmParameterAsymmetricHelper.java 27 import javax.crypto.Cipher;
56 Cipher cipher = null; local
58 cipher = Cipher.getInstance(algorithmName);
66 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters);
75 bs = cipher.doFinal(plainData.getBytes());
83 cipher.init(Cipher.DECRYPT_MODE, keyPair.getPrivate(), parameters)
    [all...]
AlgorithmParameterSymmetricHelper.java 26 import javax.crypto.Cipher;
64 Cipher cipher = null; local
71 cipher = Cipher.getInstance(transformation);
79 cipher.init(Cipher.ENCRYPT_MODE, key, parameters);
88 bs = cipher.doFinal(plainData.getBytes());
96 cipher.init(Cipher.DECRYPT_MODE, key, parameters)
    [all...]
  /libcore/luni/src/main/java/javax/crypto/
NullCipher.java 32 * This class provides an identity cipher that does not transform the input data
35 public class NullCipher extends Cipher {
43 this.init(Cipher.ENCRYPT_MODE, (Key)null, (SecureRandom)null);
SealedObject.java 35 * instance and encrypts it using a cryptographic cipher.
42 * object itself keeps track of the cipher and corresponding parameters.
49 * The cipher's {@link AlgorithmParameters} in encoded format.
50 * Equivalent to {@code cipher.getParameters().getEncoded()},
51 * or null if the cipher did not use any parameters.
72 * and sealing it using the specified cipher.
74 * The cipher must be fully initialized.
79 * the cipher to encrypt the object.
83 * if the specified cipher is a block cipher and the length o
159 Cipher cipher = Cipher.getInstance(sealAlg); local
254 Cipher cipher = Cipher.getInstance(sealAlg, provider); local
    [all...]
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherInputStreamTest.java 24 import javax.crypto.Cipher;
42 Cipher cipher = Cipher.getInstance("DES"); local
43 cipher.init(Cipher.ENCRYPT_MODE, key);
45 new ByteArrayInputStream(plainText.getBytes("UTF-8")), cipher);
51 Cipher cipher = Cipher.getInstance("DES") local
59 Cipher cipher = Cipher.getInstance("DES"); local
    [all...]
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
CipherTest.java 33 import javax.crypto.Cipher;
62 * @tests javax.crypto.Cipher#getInstance(java.lang.String)
65 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding"); local
66 assertNotNull("Received a null Cipher instance", cipher);
70 * @tests javax.crypto.Cipher#getInstance(java.lang.String,
76 Provider[] providers = Security.getProviders("Cipher.DES");
78 assertNotNull("No installed providers support Cipher.DES", providers)
81 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); local
122 Cipher cipher = Cipher.getInstance("DES", providers[i]); local
138 Cipher cipher = Cipher.getInstance("AES", provider.getName()); local
152 Cipher cipher = Cipher.getInstance(algorithm); local
163 Cipher cipher = Cipher.getInstance(algorithm); local
173 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local
189 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local
200 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local
211 Cipher cipher = null; local
237 Cipher cipher = null; local
    [all...]
CipherOutputStreamTest.java 21 import javax.crypto.Cipher;
32 new CipherOutputStream((OutputStream) null, Cipher
41 new CipherOutputStream(ch, Cipher
CipherInputStreamTest.java 26 import javax.crypto.Cipher;
53 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
60 Cipher.getInstance("DES/CBC/PKCS5Padding")).close();
  /external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
SealedObjectTest.java 31 import javax.crypto.Cipher;
71 * SealedObject(Serializable object, Cipher c) method testing. Tests if the
72 * NullPointerException is thrown in the case of null cipher.
79 + "of null cipher.");
97 Cipher cipher = new NullCipher(); local
98 SealedObject so1 = new SealedObject(secret, cipher);
103 .getObject(cipher));
111 * corresponding value of Cipher object.
119 Cipher cipher = Cipher.getInstance(algorithm) local
139 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
174 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
212 Cipher cipher = Cipher.getInstance("DES"); local
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherWrapThread.java 22 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);
CipherSymmetricKeyThread.java 23 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);
CipherPBEThread.java 22 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);
CipherRSAThread.java 22 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());
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
ConnectionState.java 20 import javax.crypto.Cipher;
29 * The cipher used for encode operations
31 protected Cipher encCipher;
34 * The cipher used for decode operations
36 protected Cipher decCipher;
39 * The block size, or zero if not a block cipher
64 * Generic[Stream|Generic]Cipher structure under this
73 * Returns the size of the Generic[Stream|Generic]Cipher structure
82 * into the Generic[Stream|Generic]Cipher structure of specified size.

Completed in 319 milliseconds

1 2 3 4