Home
last modified time | relevance | path

Searched refs:key_bytes (Results 1 – 25 of 25) sorted by relevance

/external/python/oauth2client/tests/
Dtest__pure_python_crypt.py137 key_bytes = self._load_pkcs1_key_bytes()
138 signer = crypt.RsaSigner.from_string(key_bytes)
143 key_bytes = _helpers._from_bytes(self._load_pkcs1_key_bytes())
144 signer = crypt.RsaSigner.from_string(key_bytes)
149 key_bytes = self._load_pkcs8_key_bytes()
150 signer = crypt.RsaSigner.from_string(key_bytes)
155 key_bytes = self._load_pkcs8_key_bytes()
157 six.StringIO(_helpers._from_bytes(key_bytes)),
164 crypt.RsaSigner.from_string(key_bytes)
170 key_bytes = _helpers._from_bytes(self._load_pkcs8_key_bytes())
[all …]
Dtest__pycrypto_crypt.py71 key_bytes = 'definitely-not-pem-format'
73 crypt.PyCryptoSigner.from_string(key_bytes)
/external/rust/crates/ring/src/aead/
Dquic.rs39 let mut key_bytes = [0; super::MAX_KEY_LEN]; in from() localVariable
41 let key_bytes = &mut key_bytes[..algorithm.key_len()]; in from() localVariable
42 okm.fill(key_bytes).unwrap(); in from()
43 Self::new(algorithm, key_bytes).unwrap() in from()
53 key_bytes: &[u8], in new()
56 inner: (algorithm.init)(key_bytes, cpu::features())?, in new()
Dchacha20_poly1305.rs141 let mut key_bytes = [0u8; 2 * BLOCK_LEN]; in derive_poly1305_key() localVariable
142 chacha_key.encrypt_iv_xor_blocks_in_place(iv, &mut key_bytes); in derive_poly1305_key()
143 poly1305::Key::new(key_bytes, cpu_features) in derive_poly1305_key()
/external/python/oauth2client/oauth2client/
D_pure_python_crypt.py121 key_bytes = _bit_list_to_bytes(cert_info['subjectPublicKey'])
122 pubkey = rsa.PublicKey.load_pkcs1(key_bytes, 'DER')
167 marker_id, key_bytes = pem.readPemBlocksFromFile(
171 pkey = rsa.key.PrivateKey.load_pkcs1(key_bytes,
175 key_bytes, asn1Spec=_PKCS8_SPEC)
/external/avb/libavb_aftl/
Davb_aftl_verify.c85 uint8_t* key_bytes, in avb_aftl_verify_image() argument
119 key_bytes, key_num_bytes, image->entries[i])) { in avb_aftl_verify_image()
132 uint8_t* key_bytes, in aftl_slot_verify() argument
143 avb_assert(key_bytes != NULL); in aftl_slot_verify()
183 key_bytes, in aftl_slot_verify()
Davb_aftl_verify.h100 uint8_t* key_bytes,
/external/rust/crates/ring/tests/
Daead_tests.rs125 let key_bytes = test_case.consume_bytes("KEY"); in test_aead() localVariable
145 &key_bytes[..], in test_aead()
232 &key_bytes, in test_aead()
366 let key_bytes = { in aead_chacha20_poly1305_openssh() localVariable
385 let s_key = aead::chacha20_poly1305_openssh::SealingKey::new(&key_bytes); in aead_chacha20_poly1305_openssh()
389 let o_key = aead::chacha20_poly1305_openssh::OpeningKey::new(&key_bytes); in aead_chacha20_poly1305_openssh()
413 let key_bytes = [0; 32]; in test_aead_key_debug() localVariable
416 let key = aead::UnboundKey::new(&aead::AES_256_GCM, &key_bytes).unwrap(); in test_aead_key_debug()
424 &key_bytes, in test_aead_key_debug()
434 &key_bytes, in test_aead_key_debug()
[all …]
Dquic_tests.rs55 let key_bytes = test_case.consume_bytes("KEY"); in test_quic() localVariable
59 let key = quic::HeaderProtectionKey::new(alg, &key_bytes)?; in test_quic()
/external/vboot_reference/firmware/2lib/
D2rsa.c298 uint32_t key_bytes; in vb2_rsa_verify_digest() local
313 key_bytes = key->arrsize * sizeof(uint32_t); in vb2_rsa_verify_digest()
314 if (key_bytes != sig_size) { in vb2_rsa_verify_digest()
319 workbuf32 = vb2_workbuf_alloc(&wblocal, 3 * key_bytes); in vb2_rsa_verify_digest()
325 vb2_workbuf_free(&wblocal, 3 * key_bytes); in vb2_rsa_verify_digest()
342 if (vb2_safe_memcmp(sig + pad_size, digest, key_bytes - pad_size)) { in vb2_rsa_verify_digest()
/external/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c73 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
74 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes || in lws_genec_keypair_import()
75 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes) in lws_genec_keypair_import()
281 el[n].len = curve->key_bytes; in lws_genecdh_new_keypair()
282 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdh_new_keypair()
287 curve->key_bytes)) in lws_genecdh_new_keypair()
355 el[n].len = curve->key_bytes; in lws_genecdsa_new_keypair()
356 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genecdsa_new_keypair()
/external/rust/crates/ring/src/
Dhmac.rs199 let mut key_bytes = [0; digest::MAX_OUTPUT_LEN]; in construct() localVariable
200 let key_bytes = &mut key_bytes[..algorithm.0.output_len]; in construct() localVariable
201 fill(key_bytes)?; in construct()
202 Ok(Self::new(algorithm, key_bytes)) in construct()
Daead.rs413 key_bytes: &[u8], in new()
417 inner: (algorithm.init)(key_bytes, cpu_features)?, in new()
432 let mut key_bytes = [0; MAX_KEY_LEN]; in from() localVariable
433 let key_bytes = &mut key_bytes[..okm.len().key_len]; in from() localVariable
435 okm.fill(key_bytes).unwrap(); in from()
436 Self::new(algorithm, key_bytes).unwrap() in from()
/external/python/cryptography/tests/hazmat/primitives/
Dtest_dh.py472 key_bytes = load_vectors_from_file(
476 key = loader_func(key_bytes, None, backend)
481 assert serialized == key_bytes
512 key_bytes = load_vectors_from_file(
517 key = loader_func(key_bytes, None, backend)
641 key_bytes = load_vectors_from_file(
645 pub_key = loader_func(key_bytes, backend)
650 assert serialized == key_bytes
681 key_bytes = load_vectors_from_file(
686 pub_key = loader_func(key_bytes, backend)
[all …]
Dtest_ec.py691 key_bytes = load_vectors_from_file(
696 key = serialization.load_pem_private_key(key_bytes, None, backend)
735 key_bytes = load_vectors_from_file(
740 key = serialization.load_pem_private_key(key_bytes, None, backend)
781 key_bytes = load_vectors_from_file(
786 key = serialization.load_pem_private_key(key_bytes, None, backend)
818 key_bytes = load_vectors_from_file(
821 key = loader_func(key_bytes, None, backend)
827 assert serialized == key_bytes
951 key_bytes = load_vectors_from_file(
[all …]
Dtest_dsa.py699 key_bytes = load_vectors_from_file(
703 key = serialization.load_pem_private_key(key_bytes, None, backend)
740 key_bytes = load_vectors_from_file(
744 key = serialization.load_pem_private_key(key_bytes, None, backend)
817 key_bytes = load_vectors_from_file(
820 key = loader_func(key_bytes, None, backend)
826 assert serialized == key_bytes
917 key_bytes = load_vectors_from_file(
920 key = loader_func(key_bytes, backend)
924 assert serialized == key_bytes
[all …]
Dtest_rsa.py2159 key_bytes = load_vectors_from_file(
2162 key = loader_func(key_bytes, None, backend)
2168 assert serialized == key_bytes
2251 key_bytes = load_vectors_from_file(
2254 key = loader_func(key_bytes, backend)
2256 assert serialized == key_bytes
2259 key_bytes = load_vectors_from_file(
2263 key = serialization.load_pem_public_key(key_bytes, backend)
/external/tensorflow/tensorflow/lite/kernels/
Dlsh_projection.cc122 const size_t key_bytes = sizeof(float) + input_item_bytes; in RunningSignBit() local
123 std::unique_ptr<char[]> key(new char[key_bytes]); in RunningSignBit()
132 int64_t hash_signature = farmhash::Fingerprint64(key.get(), key_bytes); in RunningSignBit()
/external/libwebsockets/lib/tls/openssl/
Dlws-genec.c192 el[LWS_GENCRYPTO_EC_KEYEL_D].len != curve->key_bytes) || in lws_genec_keypair_import()
193 el[LWS_GENCRYPTO_EC_KEYEL_X].len != curve->key_bytes || in lws_genec_keypair_import()
194 el[LWS_GENCRYPTO_EC_KEYEL_Y].len != curve->key_bytes) in lws_genec_keypair_import()
381 el[n].len = curve->key_bytes; in lws_genec_new_keypair()
382 el[n].buf = lws_malloc(curve->key_bytes, "ec"); in lws_genec_new_keypair()
/external/python/cryptography/tests/hazmat/backends/
Dtest_openssl.py593 key_bytes = load_vectors_from_file(
598 loader_func(key_bytes, None, backend)
615 key_bytes = load_vectors_from_file(
620 loader_func(key_bytes, backend)
/external/boringssl/src/crypto/fipsmodule/cipher/
Dinternal.h122 size_t key_bytes);
De_aes.c282 size_t key_bytes) { in aes_ctr_set_key() argument
284 aes_hw_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
295 vpaes_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
312 aes_nohw_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/cipher/
Dinternal.h122 size_t key_bytes);
De_aes.c280 size_t key_bytes) { in aes_ctr_set_key() argument
282 aes_hw_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
293 vpaes_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
310 aes_nohw_set_encrypt_key(key, key_bytes * 8, aes_key); in aes_ctr_set_key()
/external/libwebsockets/include/libwebsockets/
Dlws-genec.h63 uint16_t key_bytes; member