Searched refs:encryptToken (Results 1 - 2 of 2) sorted by relevance
/developtools/hdc/src/daemon/ |
H A D | daemon.h | 101 bool AuthVerify(HSession hSession, const string &encryptToken, const string &token, const string &pubkey); 104 bool AuthVerifyRsa(HSession hSession, const string &encryptToken, const string &token, RSA *rsa);
|
H A D | daemon.cpp | 576 bool HdcDaemon::AuthVerify(HSession hSession, const string &encryptToken, const string &token, const string &pubkey) in InitMod() argument 600 verifyResult = AuthVerifyRsaSign(hSession, encryptToken, token, rsa); in InitMod() 602 verifyResult = AuthVerifyRsa(hSession, encryptToken, token, rsa); in InitMod() 616 bool HdcDaemon::AuthVerifyRsa(HSession hSession, const string &encryptToken, const string &token, RSA *rsa) in InitMod() argument 618 const unsigned char *tokenp = reinterpret_cast<const unsigned char *>(encryptToken.c_str()); in InitMod() 622 // for rsa encrypt, the length of encryptToken can't bigger than BUF_SIZE_DEFAULT in InitMod() 623 if (encryptToken.length() > BUF_SIZE_DEFAULT2) { in InitMod() 624 WRITE_LOG(LOG_FATAL, "invalid encryptToken, length is %zd", encryptToken.length()); in InitMod() 627 int tbytes = EVP_DecodeBlock(tokenDecode, tokenp, encryptToken in InitMod() [all...] |
Completed in 2 milliseconds