/prebuilts/go/darwin-x86/src/crypto/cipher/ |
xor_test.go | 5 package cipher package
|
cipher.go | 5 // Package cipher implements standard block cipher modes that can be wrapped 6 // around low-level block cipher implementations. 9 package cipher package 11 // A Block represents an implementation of block cipher 16 // BlockSize returns the cipher's block size. 28 // A Stream represents a stream cipher. 31 // cipher's key stream. Dst and src may point to the same memory. 38 // A BlockMode represents a block cipher running in a block-based mode (CBC,
|
ofb.go | 7 package cipher package 11 cipher []byte 16 // NewOFB returns a Stream that encrypts or decrypts using the block cipher b 30 cipher: make([]byte, blockSize), 35 copy(x.cipher, iv) 48 x.b.Encrypt(x.cipher, x.cipher) 49 copy(x.out[remain:], x.cipher)
|
cfb.go | 5 // CFB (Cipher Feedback) Mode. 7 package cipher package 42 // NewCFBEncrypter returns a Stream which encrypts with cipher feedback mode, 49 // NewCFBDecrypter returns a Stream which decrypts with cipher feedback mode, 60 panic("cipher.newCFB: IV length must equal block size")
|
ctr.go | 7 // CTR converts a block cipher into a stream cipher by 13 package cipher package 38 panic("cipher.NewCTR: IV length must equal block size")
|
io.go | 5 package cipher package
|
xor.go | 5 package cipher package
|
/prebuilts/go/linux-x86/src/crypto/cipher/ |
xor_test.go | 5 package cipher package
|
cipher.go | 5 // Package cipher implements standard block cipher modes that can be wrapped 6 // around low-level block cipher implementations. 9 package cipher package 11 // A Block represents an implementation of block cipher 16 // BlockSize returns the cipher's block size. 28 // A Stream represents a stream cipher. 31 // cipher's key stream. Dst and src may point to the same memory. 38 // A BlockMode represents a block cipher running in a block-based mode (CBC,
|
ofb.go | 7 package cipher package 11 cipher []byte 16 // NewOFB returns a Stream that encrypts or decrypts using the block cipher b 30 cipher: make([]byte, blockSize), 35 copy(x.cipher, iv) 48 x.b.Encrypt(x.cipher, x.cipher) 49 copy(x.out[remain:], x.cipher)
|
cfb.go | 5 // CFB (Cipher Feedback) Mode. 7 package cipher package 42 // NewCFBEncrypter returns a Stream which encrypts with cipher feedback mode, 49 // NewCFBDecrypter returns a Stream which decrypts with cipher feedback mode, 60 panic("cipher.newCFB: IV length must equal block size")
|
ctr.go | 7 // CTR converts a block cipher into a stream cipher by 13 package cipher package 38 panic("cipher.NewCTR: IV length must equal block size")
|
io.go | 5 package cipher package
|
xor.go | 5 package cipher package
|
/external/boringssl/src/tool/ |
ciphers.cc | 28 fprintf(stderr, "Usage: bssl ciphers <cipher suite string>\n"); 36 fprintf(stderr, "Failed to parse cipher suite config.\n"); 47 const SSL_CIPHER *cipher = sk_SSL_CIPHER_value(ciphers, i); local 55 printf("%s\n", SSL_CIPHER_get_name(cipher));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/ |
OFBBlockCipher.java | 10 * implements a Output-FeedBack (OFB) mode on top of a simple cipher. 21 private final BlockCipher cipher; field in class:OFBBlockCipher 26 * @param cipher the block cipher to be used as the basis of the 31 BlockCipher cipher, 34 super(cipher); 36 this.cipher = cipher; 39 this.IV = new byte[cipher.getBlockSize()]; 40 this.ofbV = new byte[cipher.getBlockSize()] [all...] |
CFBBlockCipher.java | 11 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher. 22 private BlockCipher cipher = null; field in class:CFBBlockCipher 29 * @param cipher the block cipher to be used as the basis of the 34 BlockCipher cipher, 37 super(cipher); 39 this.cipher = cipher; 42 this.IV = new byte[cipher.getBlockSize()] [all...] |
CBCBlockCipher.java | 10 * implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher. 20 private BlockCipher cipher = null; field in class:CBCBlockCipher 26 * @param cipher the block cipher to be used as the basis of chaining. 29 BlockCipher cipher) 31 this.cipher = cipher; 32 this.blockSize = cipher.getBlockSize(); 40 * return the underlying block cipher that we are wrapping [all...] |
/libcore/support/src/test/java/tests/security/ |
AlgorithmParameterAsymmetricHelper.java | 27 import javax.crypto.Cipher; 47 Cipher cipher = Cipher.getInstance(algorithmName); local 48 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters); 49 byte[] bs = cipher.doFinal(plainData.getBytes()); 51 cipher.init(Cipher.DECRYPT_MODE, keyPair.getPrivate(), parameters); 52 byte[] decrypted = cipher.doFinal(bs) [all...] |
CipherHelper.java | 23 import javax.crypto.Cipher; 43 Cipher cipher = Cipher.getInstance(algorithmName); local 44 cipher.init(mode1, encryptKey); 45 byte[] encrypted = cipher.doFinal(plainData.getBytes()); 47 cipher.init(mode2, decryptKey); 48 byte[] decrypted = cipher.doFinal(encrypted);
|
AlgorithmParameterSymmetricHelper.java | 26 import javax.crypto.Cipher; 61 Cipher cipher = Cipher.getInstance(transformation); local 62 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); 63 byte[] bs = cipher.doFinal(plainData.getBytes()); 65 cipher.init(Cipher.DECRYPT_MODE, key, parameters); 66 byte[] decrypted = cipher.doFinal(bs) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
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...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
BaseStreamCipher.java | 11 import javax.crypto.Cipher; 47 private StreamCipher cipher; field in class:BaseStreamCipher 70 cipher = engine; 177 param = PBE.Util.makePBEParameters(k.getEncoded(), PKCS12, digest, keySizeInBits, ivLength * 8, pbeSpec, cipher.getAlgorithmName()); 199 param = PBE.Util.makePBEParameters(k, params, cipher.getAlgorithmName()); 239 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) 257 case Cipher.ENCRYPT_MODE: 258 case Cipher.WRAP_MODE: 259 cipher.init(true, param) [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherOutputStreamTest.java | 28 import javax.crypto.Cipher; 40 Cipher cipher; local 42 cipher = Cipher.getInstance("AES/GCM/NoPadding", provider); 60 cipher.init(Cipher.ENCRYPT_MODE, key); 62 cipher.init(Cipher.ENCRYPT_MODE, key, params); 64 byte[] encrypted = cipher.doFinal(unencrypted) [all...] |