Home
last modified time | relevance | path

Searched refs:priv_key (Results 1 – 5 of 5) sorted by relevance

/system/security/keystore2/src/crypto/
Dcrypto.hpp54 int ECDHComputeKey(void *out, const EC_POINT *pub_key, const EC_KEY *priv_key);
58 size_t ECKEYMarshalPrivateKey(const EC_KEY *priv_key, uint8_t *buf, size_t len);
Dcrypto.cpp222 int ECDHComputeKey(void* out, const EC_POINT* pub_key, const EC_KEY* priv_key) { in ECDHComputeKey() argument
223 return ECDH_compute_key(out, EC_MAX_BYTES, pub_key, priv_key, nullptr); in ECDHComputeKey()
239 size_t ECKEYMarshalPrivateKey(const EC_KEY* priv_key, uint8_t* buf, size_t len) { in ECKEYMarshalPrivateKey() argument
243 !EC_KEY_marshal_private_key(&cbb, priv_key, EC_PKEY_NO_PARAMETERS | EC_PKEY_NO_PUBKEY) || in ECKEYMarshalPrivateKey()
Dlib.rs316 pub fn ecdh_compute_key(pub_key: &EC_POINT, priv_key: &ECKey) -> Result<ZVec, Error> { in ecdh_compute_key()
322 unsafe { ECDHComputeKey(buf.as_mut_ptr() as *mut std::ffi::c_void, pub_key, priv_key.0) }; in ecdh_compute_key()
/system/security/keystore2/src/
Dremote_provisioning.rs366 let priv_key = in generate_key_pair() localVariable
383 db.create_attestation_key_entry(&maced_key.macedKey, &raw_key, &priv_key, &uuid) in generate_key_pair()
Ddatabase.rs3471 assert_eq!(cert_chain.private_key.to_vec(), loaded_values.priv_key); in test_store_signed_attestation_certificate_chain()
3568 assert_eq!(entry_values.priv_key, value.private_key.to_vec()); in test_remove_expired_certs()
4985 priv_key: Vec<u8>, field
4997 let priv_key: Vec<u8> = vec![0x05 * base_byte, 0x06 * base_byte]; in load_attestation_key_pool() localVariable
5000 db.create_attestation_key_entry(&public_key, &raw_public_key, &priv_key, &KEYSTORE_UUID)?; in load_attestation_key_pool()
5009 Ok(RemoteProvValues { cert_chain, priv_key, batch_cert }) in load_attestation_key_pool()