Searched refs:priv_key (Results 1 – 5 of 5) sorted by relevance
/system/security/keystore2/src/crypto/ |
D | crypto.hpp | 54 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);
|
D | crypto.cpp | 222 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()
|
D | lib.rs | 316 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/ |
D | remote_provisioning.rs | 366 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()
|
D | database.rs | 3471 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()
|