/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | symm.rs | 8 //! use openssl::symm::{encrypt, Cipher}; 10 //! let cipher = Cipher::aes_128_cbc(); 30 //! use openssl::symm::Cipher; 34 //! let cipher = Cipher::aes_256_cbc(); 73 pub struct Cipher(*const ffi::EVP_CIPHER); structure names 75 impl Cipher { impls 81 pub fn from_nid(nid: Nid) -> Option<Cipher> { in from_nid() 86 Some(Cipher(ptr)) in from_nid() 100 pub fn aes_128_ecb() -> Cipher { in aes_128_ecb() 101 unsafe { Cipher(ff in aes_128_ecb() [all...] |
H A D | cipher.rs | 48 impl Drop for Cipher { 57 impl ForeignType for Cipher { 63 Cipher(ptr) in from_ptr() 72 impl Deref for Cipher { 83 impl DerefMut for Cipher { 94 impl Deref for Cipher { 103 impl DerefMut for Cipher { 113 pub struct Cipher(Inner); structure names 115 unsafe impl Sync for Cipher {} 116 unsafe impl Send for Cipher {} 118 impl Cipher { global() impls [all...] |
H A D | cipher_ctx.rs | 8 //! use openssl::cipher::Cipher; 11 //! let cipher = Cipher::aes_128_cbc(); 33 //! use openssl::cipher::Cipher; 36 //! let cipher = Cipher::aes_128_cbc(); 724 use crate::{cipher::Cipher, rand::rand_bytes}; 735 let cipher = Cipher::aes_256_cbc(); in seal_open() 796 let cipher = Cipher::fetch(None, "AES-128-CBC", None).unwrap(); in fetched_aes_128_cbc() 802 let cipher = Cipher::aes_128_cbc(); in default_aes_128_cbc() 808 test_stream_cipher(Cipher::aes_192_ctr()); in test_stream_ciphers() 809 test_stream_cipher(Cipher in test_stream_ciphers() [all...] |
H A D | envelope.rs | 9 //! use openssl::symm::Cipher; 14 //! let cipher = Cipher::aes_256_cbc(); 28 use crate::symm::Cipher; 40 pub fn new<T>(cipher: Cipher, pub_keys: &[PKey<T>]) -> Result<Seal, ErrorStack> in new() 77 /// the block size of the cipher (see `Cipher::block_size`), or if 105 cipher: Cipher, in new() 132 /// `block_size` is the block size of the cipher (see `Cipher::block_size`), 156 use crate::symm::Cipher; 164 let cipher = Cipher::aes_256_cbc(); in public_encrypt_private_decrypt()
|
H A D | pkcs7.rs | 11 use crate::symm::Cipher; 104 cipher: Cipher, in encrypt() 290 use crate::symm::Cipher; 301 let cipher = Cipher::des_ede3_cbc(); in encrypt_decrypt_test()
|
H A D | pkcs5.rs | 11 use crate::symm::Cipher; 34 cipher: Cipher, in bytes_to_key() 151 use crate::symm::Cipher; 274 Cipher::aes_256_cbc(), in bytes_to_key()
|
H A D | cms.rs | 17 use crate::symm::Cipher; 214 cipher: Cipher, in encrypt() 316 Cipher::des_ede3_cbc(), in cms_encrypt_decrypt()
|
H A D | pkey.rs | 53 use crate::symm::Cipher; 358 cipher: Cipher, in private_key_to_pkcs8_passphrase() 485 pub fn cmac(cipher: &Cipher, key: &[u8]) -> Result<PKey<Private>, ErrorStack> { in cmac() 879 use crate::symm::Cipher; 891 .private_key_to_pem_pkcs8_passphrase(Cipher::aes_128_cbc(), b"foobar") in test_to_password() 918 .private_key_to_pkcs8_passphrase(Cipher::aes_128_cbc(), b"mypass") in test_encrypted_pkcs8_passphrase()
|
H A D | macros.rs | 57 cipher: crate::symm::Cipher,
|
H A D | pkey_ctx.rs | 31 use openssl::cipher::Cipher; 35 ctx.set_keygen_cipher(Cipher::aes_128_cbc()).unwrap(); 723 use crate::cipher::Cipher; 851 ctx.set_keygen_cipher(Cipher::aes_128_cbc()).unwrap(); in cmac_keygen()
|
H A D | sign.rs | 819 let cipher = crate::symm::Cipher::aes_128_cbc(); in test_cmac()
|
/third_party/node/lib/internal/crypto/ |
H A D | cipher.js | 144 // The Cipher class is part of the legacy Node.js crypto API. It exposes 146 // the Cipher class is defined using the legacy function syntax rather than 149 function Cipher(cipher, password, options) { function 150 if (!(this instanceof Cipher)) 151 return new Cipher(cipher, password, options); 156 ObjectSetPrototypeOf(Cipher.prototype, LazyTransform.prototype); 157 ObjectSetPrototypeOf(Cipher, LazyTransform); class 159 Cipher.prototype._transform = function _transform(chunk, encoding, callback) { 164 Cipher.prototype._flush = function _flush(callback) { 174 Cipher [all...] |
/third_party/node/test/parallel/ |
H A D | test-crypto-cipher-decipher.js | 83 const Cipher = crypto.Cipher; 84 const instance = crypto.Cipher('aes-256-cbc', 'secret'); 85 assert(instance instanceof Cipher, 'Cipher is expected to return a new ' + 157 // Calling Cipher.final() or Decipher.final() twice should error but 171 // string to Cipher#update() should not assert.
|
H A D | test-crypto-classes.js | 25 TEST_CASES.Cipher = ['aes192', 'secret'];
|
H A D | test-tls-dhe.js | 73 assert(stdout.includes(`Cipher : ${expectedCipher}`));
|
/third_party/node/lib/ |
H A D | crypto.js | 90 Cipher, 137 return new Cipher(cipher, password, options); 228 Cipher,
|
/third_party/node/src/crypto/ |
H A D | crypto_cipher.cc | 301 PublicKeyCipher::Cipher<PublicKeyCipher::kPublic, in Initialize() 307 PublicKeyCipher::Cipher<PublicKeyCipher::kPrivate, in Initialize() 313 PublicKeyCipher::Cipher<PublicKeyCipher::kPrivate, in Initialize() 319 PublicKeyCipher::Cipher<PublicKeyCipher::kPublic, in Initialize() 345 registry->Register(PublicKeyCipher::Cipher<PublicKeyCipher::kPublic, in RegisterExternalReferences() 348 registry->Register(PublicKeyCipher::Cipher<PublicKeyCipher::kPrivate, in RegisterExternalReferences() 351 registry->Register(PublicKeyCipher::Cipher<PublicKeyCipher::kPrivate, in RegisterExternalReferences() 354 registry->Register(PublicKeyCipher::Cipher<PublicKeyCipher::kPublic, in RegisterExternalReferences() 982 bool PublicKeyCipher::Cipher( in Init() function in node::crypto::PublicKeyCipher 1041 void PublicKeyCipher::Cipher(cons in Init() function in node::crypto::PublicKeyCipher [all...] |
H A D | crypto_cipher.h | 112 static bool Cipher(Environment* env, 123 static void Cipher(const v8::FunctionCallbackInfo<v8::Value>& args); 154 CHECK(args[1]->IsUint32()); // Cipher Mode in New()
|
/third_party/node/deps/openssl/openssl/crypto/aes/ |
H A D | aes_core.c | 533 static void Cipher(const unsigned char *in, unsigned char *out, in Cipher() function 675 Cipher(in, out, rk, key->rounds); in AES_encrypt()
|
/third_party/openssl/crypto/aes/ |
H A D | aes_core.c | 533 static void Cipher(const unsigned char *in, unsigned char *out, in Cipher() function 675 Cipher(in, out, rk, key->rounds); in AES_encrypt()
|