Home
last modified time | relevance | path

Searched refs:tokenFromPeer (Results 1 - 4 of 4) sorted by relevance

/base/security/device_auth/services/protocol/inc/iso_protocol/
H A Diso_protocol_common.h52 int IsoServerGenSessionKeyAndCalToken(IsoBaseParams *params, const Uint8Buff *tokenFromPeer, Uint8Buff *tokenToPeer);
/base/security/device_auth/services/protocol/src/iso_protocol/
H A Diso_protocol_common.c350 int IsoServerGenSessionKeyAndCalToken(IsoBaseParams *params, const Uint8Buff *tokenFromPeer, Uint8Buff *tokenToPeer) in IsoServerGenSessionKeyAndCalToken() argument
356 if (tokenFromPeer == NULL || tokenToPeer == NULL) { in IsoServerGenSessionKeyAndCalToken()
370 if (memcmp(tokenFromPeer->val, outHmac.val, outHmac.length) != 0) { in IsoServerGenSessionKeyAndCalToken()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/iso_protocol_task/
H A Diso_server_protocol_task.c180 Uint8Buff tokenFromPeer = { peerToken, ISO_TOKEN_LEN }; in CalTokenAndGenSessionKey() local
191 res = IsoServerGenSessionKeyAndCalToken(&params->baseParams, &tokenFromPeer, &tokenToPeer); in CalTokenAndGenSessionKey()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Ddeviceauth_interface_test.cpp845 Uint8Buff tokenFromPeer = { 0 }; in HWTEST_F() local
846 res = IsoServerGenSessionKeyAndCalToken(baseParams, &tokenFromPeer, nullptr); in HWTEST_F()
849 res = IsoServerGenSessionKeyAndCalToken(baseParams, &tokenFromPeer, &tokenToPeer); in HWTEST_F()

Completed in 4 milliseconds