Home
last modified time | relevance | path

Searched refs:pubkey (Results 1 - 5 of 5) sorted by relevance

/developtools/hdc/src/daemon/
H A Ddaemon.h29 string pubkey; member
74 bool GetHostPubkeyInfo(const string& buf, string& hostname, string& pubkey);
82 UserPermit PostUIConfirm(string hostname, string pubkey);
96 uint32_t channelId, uint32_t sessionid, string pubkey, string token);
101 bool AuthVerify(HSession hSession, const string &encryptToken, const string &token, const string &pubkey);
108 void UpdateSessionAuthPubkey(uint32_t sessionid, string pubkey);
H A Ddaemon.cpp283 UserPermit HdcDaemon::PostUIConfirm(string hostname, string pubkey) in InitMod() argument
298 if (SHA256(reinterpret_cast<const uint8_t *>(pubkey.c_str()), pubkey.length(), sha256Result) == nullptr) { in InitMod()
299 WRITE_LOG(LOG_FATAL, "sha256 pubkey failed"); in InitMod()
305 WRITE_LOG(LOG_DEBUG, "Failed to set pubkey prop."); in InitMod()
331 bool HdcDaemon::GetHostPubkeyInfo(const string& buf, string& hostname, string& pubkey) in InitMod() argument
337 pubkey = buf.substr(buf.find(separator) + 1); in InitMod()
338 WRITE_LOG(LOG_INFO, "hostname is [%s], pubkey is [%s]", hostname.c_str(), in InitMod()
339 pubkey.substr(0, pubkey in InitMod()
448 string hostname, pubkey; InitMod() local
576 AuthVerify(HSession hSession, const string &encryptToken, const string &token, const string &pubkey) InitMod() argument
655 string pubkey = GetSessionAuthPubkey(hSession->sessionId); InitMod() local
1020 UpdateSessionAuthPubkey(uint32_t sessionid, string pubkey) InitMod() argument
1113 SendAuthSignMsg(SessionHandShake &handshake, uint32_t channelId, uint32_t sessionid, string pubkey, string token) InitMod() argument
[all...]
/developtools/hdc/hdc_rust/src/daemon_lib/
H A Dauth.rs43 Pubk(String, String, String), // with (plain, pubkey, confirm msg)
367 if let Some((hostname, pubkey)) = buf.split_once(HDC_HOST_DAEMON_BUF_SEPARATOR) { in get_host_pubkey_info()
368 (hostname.to_string(), pubkey.to_string()) in get_host_pubkey_info()
410 let (hostname, pubkey) = get_host_pubkey_info(buf.trim());
411 if pubkey.is_empty() {
433 if known_hosts.contains(&pubkey) {
434 crate::info!("pubkey matches known host({})", hostname);
437 AuthStatus::Pubk(token.clone(), pubkey, "".to_string()),
455 AuthStatus::Pubk(token.clone(), pubkey.clone(), confirmmsg.to_string()),
476 if write_known_hosts_pubkey(&pubkey)
[all...]
/developtools/hdc/src/common/
H A Dauth.cpp596 bool LoadPublicKey(const string& pubkey_filename, string &pubkey) in LoadPublicKey() argument
611 WRITE_LOG(LOG_FATAL, "read pubkey from %s failed", pubkey_filename.c_str()); in LoadPublicKey()
629 pubkey = string(buf, len); in LoadPublicKey()
631 WRITE_LOG(LOG_INFO, "load pubkey from file(%s) success", pubkey_filename.c_str()); in LoadPublicKey()
649 bool TryLoadPublicKey(string &pubkey) in TryLoadPublicKey() argument
664 if (!LoadPublicKey(pubkey_filename, pubkey)) { in TryLoadPublicKey()
669 WRITE_LOG(LOG_INFO, "load pubkey success"); in TryLoadPublicKey()
700 string pubkey; in GetPublicKeyinfo() local
701 if (!HdcAuth::TryLoadPublicKey(pubkey)) { in GetPublicKeyinfo()
707 pubkey_info.append(pubkey); in GetPublicKeyinfo()
[all...]
/developtools/hdc/hdc_rust/src/host/
H A Dauth.rs206 if let Ok(pubkey) = rsa.public_key_to_pem() { in get_pubkey_pem()
207 if let Ok(buf) = String::from_utf8(pubkey) { in get_pubkey_pem()

Completed in 5 milliseconds