My Project
Loading...
Searching...
No Matches
srp.h
1
33WOLFSSL_API int wc_SrpInit(Srp* srp, SrpType type, SrpSide side);
34
54WOLFSSL_API void wc_SrpTerm(Srp* srp);
55
89WOLFSSL_API int wc_SrpSetUsername(Srp* srp, const byte* username, word32 size);
90
136WOLFSSL_API int wc_SrpSetParams(Srp* srp, const byte* N, word32 nSz,
137 const byte* g, word32 gSz,
138 const byte* salt, word32 saltSz);
139
187WOLFSSL_API int wc_SrpSetPassword(Srp* srp, const byte* password, word32 size);
188
230WOLFSSL_API int wc_SrpSetVerifier(Srp* srp, const byte* verifier, word32 size);
231
281WOLFSSL_API int wc_SrpGetVerifier(Srp* srp, byte* verifier, word32* size);
282
331WOLFSSL_API int wc_SrpSetPrivate(Srp* srp, const byte* priv, word32 size);
332
386WOLFSSL_API int wc_SrpGetPublic(Srp* srp, byte* pub, word32* size);
387
437WOLFSSL_API int wc_SrpComputeKey(Srp* srp,
438 byte* clientPubKey, word32 clientPubKeySz,
439 byte* serverPubKey, word32 serverPubKeySz);
440
471WOLFSSL_API int wc_SrpGetProof(Srp* srp, byte* proof, word32* size);
472
507WOLFSSL_API int wc_SrpVerifyPeersProof(Srp* srp, byte* proof, word32 size);
WOLFSSL_API void wc_SrpTerm(Srp *srp)
Releases the Srp struct resources after usage.
Definition srp.c:267
WOLFSSL_API int wc_SrpInit(Srp *srp, SrpType type, SrpSide side)
Initializes the Srp struct for usage.
Definition srp.c:191
WOLFSSL_API int wc_SrpGetVerifier(Srp *srp, byte *verifier, word32 *size)
Gets the verifier. The client calculates the verifier with v = g ^ x % N. This function MAY be called...
Definition srp.c:424
WOLFSSL_API int wc_SrpGetPublic(Srp *srp, byte *pub, word32 *size)
Gets the public ephemeral value. The public ephemeral value is known as: A at the client side....
Definition srp.c:494
WOLFSSL_API int wc_SrpSetPrivate(Srp *srp, const byte *priv, word32 size)
Sets the private ephemeral value. The private ephemeral value is known as: a at the client side....
Definition srp.c:458
WOLFSSL_API int wc_SrpSetPassword(Srp *srp, const byte *password, word32 size)
Sets the password. Setting the password does not persists the clear password data in the srp structur...
Definition srp.c:388
WOLFSSL_API int wc_SrpVerifyPeersProof(Srp *srp, byte *proof, word32 size)
Verifies the peers proof. This function MUST be called before wc_SrpGetSessionKey.
Definition srp.c:730
WOLFSSL_API int wc_SrpSetVerifier(Srp *srp, const byte *verifier, word32 size)
Sets the verifier. This function MUST be called after wc_SrpSetParams and is SERVER SIDE ONLY.
Definition srp.c:450
WOLFSSL_API int wc_SrpSetUsername(Srp *srp, const byte *username, word32 size)
Sets the username. This function MUST be called after wc_SrpInit.
Definition srp.c:289
WOLFSSL_API int wc_SrpComputeKey(Srp *srp, byte *clientPubKey, word32 clientPubKeySz, byte *serverPubKey, word32 serverPubKeySz)
Computes the session key. The key can be accessed at srp->key after success.
Definition srp.c:590
WOLFSSL_API int wc_SrpGetProof(Srp *srp, byte *proof, word32 *size)
Gets the proof. This function MUST be called after wc_SrpComputeKey.
Definition srp.c:704
Definition srp.h:103
SrpType
Definition srp.h:74