Home
last modified time | relevance | path

Searched refs:Cipher (Results 1 - 20 of 20) sorted by relevance

/third_party/rust/crates/rust-openssl/openssl/src/
H A Dsymm.rs8 //! 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 Dcipher.rs48 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 Dcipher_ctx.rs8 //! 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 Denvelope.rs9 //! 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 Dpkcs7.rs11 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 Dpkcs5.rs11 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 Dcms.rs17 use crate::symm::Cipher;
214 cipher: Cipher, in encrypt()
316 Cipher::des_ede3_cbc(), in cms_encrypt_decrypt()
H A Dpkey.rs53 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 Dmacros.rs57 cipher: crate::symm::Cipher,
H A Dpkey_ctx.rs31 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 Dsign.rs819 let cipher = crate::symm::Cipher::aes_128_cbc(); in test_cmac()
/third_party/node/lib/internal/crypto/
H A Dcipher.js144 // 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 Dtest-crypto-cipher-decipher.js83 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 Dtest-crypto-classes.js25 TEST_CASES.Cipher = ['aes192', 'secret'];
H A Dtest-tls-dhe.js73 assert(stdout.includes(`Cipher : ${expectedCipher}`));
/third_party/node/lib/
H A Dcrypto.js90 Cipher,
137 return new Cipher(cipher, password, options);
228 Cipher,
/third_party/node/src/crypto/
H A Dcrypto_cipher.cc301 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 Dcrypto_cipher.h112 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 Daes_core.c533 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 Daes_core.c533 static void Cipher(const unsigned char *in, unsigned char *out, in Cipher() function
675 Cipher(in, out, rk, key->rounds); in AES_encrypt()

Completed in 18 milliseconds