HomeSort by relevance Sort by last modified time
    Searched defs:cipher (Results 1 - 25 of 102) sorted by null

1 2 3 4 5

  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
StreamBlockCipher.java 10 private BlockCipher cipher; field in class:StreamBlockCipher
17 * @param cipher the block cipher to be wrapped.
18 * @exception IllegalArgumentException if the cipher has a block size other than
22 BlockCipher cipher)
24 if (cipher.getBlockSize() != 1)
26 throw new IllegalArgumentException("block cipher block size != 1.");
29 this.cipher = cipher;
33 * initialise the underlying cipher
    [all...]
BufferedBlockCipher.java 9 * Note: in the case where the underlying cipher is either a CFB cipher or an
18 protected BlockCipher cipher; field in class:BufferedBlockCipher
31 * Create a buffered block cipher without padding.
33 * @param cipher the underlying block cipher this buffering object wraps.
36 BlockCipher cipher)
38 this.cipher = cipher;
40 buf = new byte[cipher.getBlockSize()]
    [all...]
BufferedAsymmetricBlockCipher.java 4 * a buffer wrapper for an asymmetric block cipher, allowing input
12 private final AsymmetricBlockCipher cipher; field in class:BufferedAsymmetricBlockCipher
17 * @param cipher the cipher this buffering object wraps.
20 AsymmetricBlockCipher cipher)
22 this.cipher = cipher;
26 * return the underlying cipher for the buffer.
28 * @return the underlying cipher for the buffer.
32 return cipher;
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
BlockCipherMac.java 15 private BlockCipher cipher; field in class:BlockCipherMac
20 * create a standard MAC based on a block cipher. This will produce an
21 * authentication code half the length of the block size of the cipher.
23 * @param cipher the cipher to be used as the basis of the MAC generation.
27 BlockCipher cipher)
29 this(cipher, (cipher.getBlockSize() * 8) / 2);
33 * create a standard MAC based on a block cipher with the size of the
37 * and in general should be less than the size of the block cipher as it reduce
    [all...]
CBCBlockCipherMac.java 10 * standard CBC Block Cipher MAC - if no padding is specified the default of
20 private BlockCipher cipher; field in class:CBCBlockCipherMac
26 * create a standard MAC based on a CBC block cipher. This will produce an
27 * authentication code half the length of the block size of the cipher.
29 * @param cipher the cipher to be used as the basis of the MAC generation.
32 BlockCipher cipher)
34 this(cipher, (cipher.getBlockSize() * 8) / 2, null);
38 * create a standard MAC based on a CBC block cipher. This will produce a
    [all...]
CFBBlockCipherMac.java 11 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.
20 private BlockCipher cipher = null; field in class:MacCFBBlockCipher
25 * @param cipher the block cipher to be used as the basis of the
30 BlockCipher cipher,
33 this.cipher = cipher;
36 this.IV = new byte[cipher.getBlockSize()];
37 this.cfbV = new byte[cipher.getBlockSize()]
175 private MacCFBBlockCipher cipher; field in class:CFBBlockCipherMac
    [all...]
ISO9797Alg3Mac.java 12 * DES based CBC Block Cipher MAC according to ISO9797, algorithm 3 (ANSI X9.19 Retail MAC)
25 private BlockCipher cipher; field in class:ISO9797Alg3Mac
33 * create a Retail-MAC based on a CBC block cipher. This will produce an
34 * authentication code of the length of the block size of the cipher.
36 * @param cipher the cipher to be used as the basis of the MAC generation. This must
40 BlockCipher cipher)
42 this(cipher, cipher.getBlockSize() * 8, null);
46 * create a Retail-MAC based on a CBC block cipher. This will produce a
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
CFBBlockCipher.java 9 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.
19 private BlockCipher cipher = null; field in class:CFBBlockCipher
25 * @param cipher the block cipher to be used as the basis of the
30 BlockCipher cipher,
33 this.cipher = cipher;
36 this.IV = new byte[cipher.getBlockSize()];
37 this.cfbV = new byte[cipher.getBlockSize()]
    [all...]
OFBBlockCipher.java 9 * implements a Output-FeedBack (OFB) mode on top of a simple cipher.
19 private final BlockCipher cipher; field in class:OFBBlockCipher
24 * @param cipher the block cipher to be used as the basis of the
29 BlockCipher cipher,
32 this.cipher = cipher;
35 this.IV = new byte[cipher.getBlockSize()];
36 this.ofbV = new byte[cipher.getBlockSize()];
37 this.ofbOutV = new byte[cipher.getBlockSize()]
    [all...]
SICBlockCipher.java 10 * block cipher. This mode is also known as CTR mode.
14 private final BlockCipher cipher; field in class:SICBlockCipher
25 * @param c the block cipher to be used.
29 this.cipher = c;
30 this.blockSize = cipher.getBlockSize();
38 * return the underlying block cipher that we are wrapping.
40 * @return the underlying block cipher that we are wrapping.
44 return cipher;
60 cipher.init(true, ivParam.getParameters());
66 return cipher.getAlgorithmName() + "/SIC"
    [all...]
CBCBlockCipher.java 9 * implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher.
19 private BlockCipher cipher = null; field in class:CBCBlockCipher
25 * @param cipher the block cipher to be used as the basis of chaining.
28 BlockCipher cipher)
30 this.cipher = cipher;
31 this.blockSize = cipher.getBlockSize();
39 * return the underlying block cipher that we are wrapping
    [all...]
GOFBBlockCipher.java 19 private final BlockCipher cipher; field in class:GOFBBlockCipher
31 * @param cipher the block cipher to be used as the basis of the
35 BlockCipher cipher)
37 this.cipher = cipher;
38 this.blockSize = cipher.getBlockSize();
45 this.IV = new byte[cipher.getBlockSize()];
46 this.ofbV = new byte[cipher.getBlockSize()];
47 this.ofbOutV = new byte[cipher.getBlockSize()]
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
JCEStreamCipher.java 10 import javax.crypto.Cipher;
54 private StreamCipher cipher; field in class:JCEStreamCipher
65 cipher = engine;
74 cipher = new StreamBlockCipher(engine);
189 param = PBE.Util.makePBEParameters(k, params, cipher.getAlgorithmName());
225 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE))
241 case Cipher.ENCRYPT_MODE:
242 case Cipher.WRAP_MODE:
243 cipher.init(true, param)
    [all...]
JDKDigestSignature.java 46 private AsymmetricBlockCipher cipher; field in class:JDKDigestSignature
53 AsymmetricBlockCipher cipher)
58 this.cipher = cipher;
74 cipher.init(false, param);
90 cipher.init(true, param);
131 return cipher.processBlock(bytes, 0, bytes.length);
156 sig = cipher.processBlock(sigBytes, 0, sigBytes.length);
BrokenJCEBlockCipher.java 17 import javax.crypto.Cipher;
61 private BufferedBlockCipher cipher; field in class:BrokenJCEBlockCipher
76 cipher = new PaddedBufferedBlockCipher(engine);
86 cipher = new PaddedBufferedBlockCipher(engine);
96 return cipher.getBlockSize();
113 return cipher.getOutputSize(inputLen);
122 String name = cipher.getUnderlyingCipher().getAlgorithmName();
152 cipher = new PaddedBufferedBlockCipher(cipher.getUnderlyingCipher());
156 ivLength = cipher.getUnderlyingCipher().getBlockSize()
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/
IESEngine.java 25 BufferedBlockCipher cipher; field in class:IESEngine
49 this.cipher = null;
53 * set up for use in conjunction with a block cipher to handle the
59 * @param cipher the cipher to used for encrypting the message
65 BufferedBlockCipher cipher)
71 this.cipher = cipher;
110 if (cipher == null) // stream mode
130 cipher.init(false, new KeyParameter(buf, 0, (cipherKeySize / 8)))
    [all...]
  /dalvik/libcore/crypto/src/main/java/javax/crypto/
CipherInputStream.java 27 * This class wraps an {@code InputStream} and a cipher so that {@code read()}
29 * processed by the cipher.
31 * The cipher must be initialized for the requested operation before being used
32 * by a {@code CipherInputStream}. For example, if a cipher initialized for
38 private final Cipher cipher; field in class:CipherInputStream
47 * InputStream} and a cipher.
52 * the cipher to process the data with.
54 public CipherInputStream(InputStream is, Cipher c) {
56 this.cipher = c
    [all...]
SealedObject.java 39 * instance and encrypts it using a cryptographic cipher.
46 * object itself keeps track of the cipher and corresponding parameters.
70 * and sealing it using the specified cipher.
72 * The cipher must be fully initialized.
77 * the cipher to encrypt the object.
81 * if the specified cipher is a block cipher and the length of
85 * if the cipher is {@code null}.
87 public SealedObject(Serializable object, Cipher c)
103 // should be never thrown because the cipher
160 Cipher cipher = Cipher.getInstance(sealAlg); local
256 Cipher cipher = Cipher.getInstance(sealAlg, provider); local
    [all...]
CipherOutputStream.java 26 * This class wraps an output stream and a cipher so that {@code write} methods
27 * send the data through the cipher before writing them to the underlying output
30 * The cipher must be initialized for the requested operation before being used
31 * by a {@code CipherOutputStream}. For example, if a cipher initialized for
37 private final Cipher cipher; field in class:CipherOutputStream
42 * OutputStream} and a {@code Cipher}.
47 * the cipher to process the data with.
49 public CipherOutputStream(OutputStream os, Cipher c) {
51 cipher = c
    [all...]
EncryptedPrivateKeyInfo.java 233 * 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
237 * @param cipher
238 * the cipher initialized for decrypting the encrypted data.
241 * if the specified cipher is not suited to decrypt the
244 * if {@code cipher} is {@code null}.
246 public PKCS8EncodedKeySpec getKeySpec(Cipher cipher)
248 if (cipher == null)
292 Cipher cipher = Cipher.getInstance(algName); local
353 Cipher cipher = Cipher.getInstance(algName, providerName); local
408 Cipher cipher = Cipher.getInstance(algName, provider); local
    [all...]
  /external/openssl/crypto/pkcs7/
enc.c 77 const EVP_CIPHER *cipher=NULL; local
91 if(!(cipher = EVP_get_cipherbyname(argv[2]))) {
92 fprintf(stderr, "Unknown cipher %s\n", argv[2]);
130 if(!cipher) {
132 cipher = EVP_des_ede3_cbc();
134 fprintf(stderr, "No cipher selected\n");
139 if (!PKCS7_set_cipher(p7,cipher)) goto err;
  /dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
SealedObjectTest.java 42 import javax.crypto.Cipher;
55 public Mock_SealedObject(Serializable object, Cipher c)
99 * SealedObject(Serializable object, Cipher c) method testing. Tests if the
100 * NullPointerException is thrown in the case of null cipher.
105 args = {java.io.Serializable.class, javax.crypto.Cipher.class}
112 + "of null cipher.");
122 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); local
123 cipher.init(Cipher.ENCRYPT_MODE, key, ips)
157 Cipher cipher = new NullCipher(); local
185 Cipher cipher = Cipher.getInstance(algorithm); local
211 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
261 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local
311 Cipher cipher = Cipher.getInstance("DES"); local
    [all...]
  /dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/signers/
PSSSigner.java 26 private AsymmetricBlockCipher cipher; field in class:PSSSigner
40 * @param cipher the assymetric cipher to use.
45 AsymmetricBlockCipher cipher,
49 this(cipher, digest, sLen, TRAILER_IMPLICIT);
53 AsymmetricBlockCipher cipher,
58 this.cipher = cipher;
89 cipher.init(forSigning, kParam);
180 byte[] b = cipher.processBlock(block, 0, block.length)
    [all...]
  /dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DigitalSignature.java 30 import javax.crypto.Cipher;
62 private final Cipher cipher; field in class:DigitalSignature
81 cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
87 cipher = null;
90 cipher = null;
111 } else if (cipher != null) {
112 cipher.init(Cipher.ENCRYPT_MODE, key)
    [all...]
  /external/openssl/crypto/evp/
evp_pbe.c 68 /* Setup a cipher context from a PBE algorithm */
72 const EVP_CIPHER *cipher; member in struct:__anon3957
98 i = (*pbetmp->keygen)(ctx, pass, passlen, param, pbetmp->cipher,
116 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
126 pbe_tmp->cipher = cipher;

Completed in 293 milliseconds

1 2 3 4 5