HomeSort by relevance Sort by last modified time
    Searched refs:Cipher (Results 1 - 25 of 88) 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);
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherInputStreamTest.java 24 import javax.crypto.Cipher;
43 Cipher cipher = Cipher.getInstance("DES"); local
44 cipher.init(Cipher.ENCRYPT_MODE, key);
46 new ByteArrayInputStream(plainText.getBytes("UTF-8")), cipher);
52 Cipher cipher = Cipher.getInstance("DES") local
60 Cipher cipher = Cipher.getInstance("DES"); local
77 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local
    [all...]
CipherTest.java 50 import javax.crypto.Cipher;
81 Cipher.getInstance(algorithm).init(getEncryptMode(algorithm),
149 return Cipher.WRAP_MODE;
151 return Cipher.ENCRYPT_MODE;
156 return Cipher.UNWRAP_MODE;
158 return Cipher.DECRYPT_MODE;
344 setExpectedBlockSize("RSA", Cipher.ENCRYPT_MODE, 256);
345 setExpectedBlockSize("RSA/ECB/NoPadding", Cipher.ENCRYPT_MODE, 256);
346 setExpectedBlockSize("RSA/ECB/PKCS1Padding", Cipher.ENCRYPT_MODE, 245);
349 setExpectedBlockSize("RSA", Cipher.ENCRYPT_MODE, "BC", 255)
1046 Cipher cipher = Cipher.getInstance("RSA"); local
    [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...]
  /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());
  /external/chromium_org/third_party/tlslite/tlslite/utils/
PyCrypto_RC4.py 7 import Crypto.Cipher.ARC4
16 self.context = Crypto.Cipher.ARC4.new(key)
PyCrypto_AES.py 7 import Crypto.Cipher.AES
16 self.context = Crypto.Cipher.AES.new(key, mode, IV)
  /libcore/benchmarks/src/benchmarks/regression/
CipherBenchmark.java 30 import javax.crypto.Cipher;
34 * Cipher benchmarks. Only runs on AES currently because of the combinatorial
96 private Cipher cipherEncrypt;
98 private Cipher cipherDecrypt;
130 cipherEncrypt = Cipher.getInstance(cipherAlgorithm, providerName);
131 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec);
133 cipherDecrypt = Cipher.getInstance(cipherAlgorithm, providerName);
134 cipherDecrypt.init(Cipher.DECRYPT_MODE, key, spec);

Completed in 327 milliseconds

1 2 3 4