/base/security/device_auth/services/identity_manager/src/mock/ |
H A D | cert_operation_mock.c | 30 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, in GetAccountAsymSharedSecret() argument 35 (void)peerCertInfo; in GetAccountAsymSharedSecret()
|
/base/security/device_auth/services/creds_manager/src/ |
H A D | creds_manager.c | 213 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert() 215 if (in == NULL || peerCertInfo == NULL || sharedSecret == NULL) { in GetSharedSecretByPeerCert() 225 authIdentityTest->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert() 231 authIdentityTest->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert() 238 return authIdentity->getSharedSecretByPeerCert(in, peerCertInfo, protocolType, sharedSecret); in GetSharedSecretByPeerCert() 212 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
|
/base/security/device_auth/services/identity_manager/src/ |
H A D | cert_operation.c | 279 static int32_t GetPeerPubKeyFromCert(const CertInfo *peerCertInfo, Uint8Buff *peerPkBuff) in GetPeerPubKeyFromCert() argument 281 CJson *pkInfoPeer = CreateJsonFromString((const char *)peerCertInfo->pkInfoStr.val); in GetPeerPubKeyFromCert() 311 const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) in GetSharedSecretForAccountInPake() 325 ret = GetPeerPubKeyFromCert(peerCertInfo, &peerPkBuff); in GetSharedSecretForAccountInPake() 656 int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCertFromPlugin() 674 GOTO_ERR_AND_SET_RET(AddCertInfoToJson(peerCertInfo, input), res); in GetSharedSecretByPeerCertFromPlugin() 700 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, in GetAccountAsymSharedSecret() argument 703 if (peerCertInfo == NULL || sharedSecret == NULL) { in GetAccountAsymSharedSecret() 708 return GetSharedSecretByPeerCertFromPlugin(osAccountId, peerUserId, peerCertInfo, sharedSecret); in GetAccountAsymSharedSecret() 715 int32_t ret = GetSelfDeviceEntryByPeerCert(osAccountId, peerCertInfo, deviceEntr in GetAccountAsymSharedSecret() 310 GetSharedSecretForAccountInPake(int32_t osAccountId, const char *userId, const char *authId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetSharedSecretForAccountInPake() argument 655 GetSharedSecretByPeerCertFromPlugin( int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo, Uint8Buff *sharedSecret) GetSharedSecretByPeerCertFromPlugin() argument [all...] |
H A D | identity_pin.c | 369 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert() 373 (void)peerCertInfo; in GetSharedSecretByPeerCert() 368 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
|
H A D | identity_p2p.c | 334 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert() 338 (void)peerCertInfo; in GetSharedSecretByPeerCert() 333 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
|
H A D | identity_group.c | 909 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByPeerCert() 911 if (in == NULL || peerCertInfo == NULL || sharedSecret == NULL) { in GetSharedSecretByPeerCert() 928 return GetAccountAsymSharedSecret(osAccountId, peerUserId, peerCertInfo, sharedSecret); in GetSharedSecretByPeerCert() 908 GetSharedSecretByPeerCert( const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByPeerCert() argument
|
/base/security/device_auth/services/creds_manager/inc/ |
H A D | creds_manager.h | 33 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
|
/base/security/device_auth/services/identity_manager/inc/ |
H A D | cert_operation.h | 28 int32_t GetAccountAsymSharedSecret(int32_t osAccountId, const char *peerUserId, const CertInfo *peerCertInfo,
|
H A D | identity_manager.h | 49 const CJson *in, const CertInfo *peerCertInfo, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
|
/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | identity_manager_test.cpp | 124 CertInfo peerCertInfo = { { nullptr, 0 }, { nullptr, 0 }, P256 }; in HWTEST_F() local 125 ret = GetAccountAsymSharedSecret(TEST_OS_ACCOUNT_ID, nullptr, &peerCertInfo, nullptr); in HWTEST_F() 204 CertInfo peerCertInfo = { { nullptr, 0 }, { nullptr, 0 }, P256 }; in HWTEST_F() local 205 ret = identity->getSharedSecretByPeerCert(in, &peerCertInfo, ALG_EC_SPEKE, nullptr); in HWTEST_F()
|