Home
last modified time | relevance | path

Searched refs:KeyAgreeBlob (Results 1 – 5 of 5) sorted by relevance

/base/security/device_auth/services/key_agree_sdk/inc/
Dkey_agree_sdk.h91 } KeyAgreeBlob; typedef
97 KeyAgreeResult KeyAgreeStartSession(KeyAgreeSession *session, const KeyAgreeBlob *sharedSecret,
98 const KeyAgreeBlob *deviceId, const char *extras);
99 KeyAgreeResult KeyAgreeGenerateNextMessage(KeyAgreeSession *session, const KeyAgreeBlob *messageRec…
100 KeyAgreeBlob *messageToTransmit);
102 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey);
Dkey_agree_session.h87 …ocessProtocolAgree)(struct SpekeSessionT *spekeSession, const KeyAgreeBlob *in, KeyAgreeBlob *out);
88 …t (*processSession)(struct SpekeSessionT *spekeSession, const KeyAgreeBlob *in, KeyAgreeBlob *out);
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_sdk.c33 static int32_t CheckKeyAgreeStartSessionParams(const KeyAgreeBlob *sharedSecret, in CheckKeyAgreeStartSessionParams()
34 const KeyAgreeBlob *deviceId, const char *extras) in CheckKeyAgreeStartSessionParams()
59 static void BuildErrorMessage(KeyAgreeResult errorCode, KeyAgreeBlob *out) in BuildErrorMessage()
86 static bool IsErrorMessage(const KeyAgreeBlob *in) in IsErrorMessage()
107 static int32_t InitKeyAgreeStartSessionParams(SpekeSession *spekeSession, const KeyAgreeBlob *share… in InitKeyAgreeStartSessionParams()
108 const KeyAgreeBlob *deviceId, const char *extras) in InitKeyAgreeStartSessionParams()
190 KeyAgreeResult KeyAgreeStartSession(KeyAgreeSession *session, const KeyAgreeBlob *sharedSecret, in KeyAgreeStartSession()
191 const KeyAgreeBlob *deviceId, const char *extras) in KeyAgreeStartSession()
216 KeyAgreeResult KeyAgreeGenerateNextMessage(KeyAgreeSession *session, const KeyAgreeBlob *messageRec… in KeyAgreeGenerateNextMessage()
217 KeyAgreeBlob *messageToTransmit) in KeyAgreeGenerateNextMessage()
[all …]
Dkey_agree_session.c521 static int32_t BuildAndPutOutMessage(SpekeSession *spekeSession, KeyAgreeBlob *out, PackageExtraDat… in BuildAndPutOutMessage()
551 static int32_t PakeResponse(SpekeSession *spekeSession, KeyAgreeBlob *out) in PakeResponse()
588 static int32_t PakeConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) in PakeConfirm()
624 static int32_t PakeServerConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) in PakeServerConfirm()
650 static int32_t PakeClientVerifyConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *o… in PakeClientVerifyConfirm()
668 …32_t ProcessStep(ProtocolStep step, SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) in ProcessStep()
709 static int32_t ProcessSpekeSession(SpekeSession *spekeSession, const KeyAgreeBlob *in, KeyAgreeBlob in ProcessSpekeSession()
782 static int32_t ProcessProtocolInitial(SpekeSession *spekeSession, KeyAgreeBlob *out) in ProcessProtocolInitial()
826 …t32_t ProcessProtocolConfirm(SpekeSession *spekeSession, const KeyAgreeBlob *in, KeyAgreeBlob *out) in ProcessProtocolConfirm()
877 …int32_t ProcessProtocolAgree(SpekeSession *spekeSession, const KeyAgreeBlob *in, KeyAgreeBlob *out) in ProcessProtocolAgree()
/base/security/device_auth/test/unittest/deviceauth/source/
Dkey_agree_sdk_test.cpp34 static KeyAgreeBlob g_sharedSecret = { NULL, 0 };
35 static KeyAgreeBlob g_deviceId = { NULL, 0 };
36 static KeyAgreeBlob g_deviceId_s = { NULL, 0 };
37 static KeyAgreeBlob g_messageToTransmit1 = { NULL, 0 };
38 static KeyAgreeBlob g_messageToTransmit2 = { NULL, 0 };
39 static KeyAgreeBlob g_messageToTransmit3 = { NULL, 0 };
40 static KeyAgreeBlob g_messageToTransmit4 = { NULL, 0 };
41 static KeyAgreeBlob g_messageToTransmit5 = { NULL, 0 };
42 static KeyAgreeBlob g_sessionKey_s = { NULL, 0 };
43 static KeyAgreeBlob g_sessionKey = { NULL, 0 };