Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
crys_srp.h File Reference
This file contains all of the enums and definitions that are used for the CRYS SRP APIs, as well as the APIs themselves. More...
Go to the source code of this file.
Data Structures | |
struct | CRYS_SRP_GroupParam_t |
struct | CRYS_SRP_Context_t |
Typedefs | |
typedef uint8_t | CRYS_SRP_Modulus_t [CRYS_SRP_MAX_MODULUS] |
typedef uint8_t | CRYS_SRP_Digest_t [CRYS_SRP_MAX_DIGEST] |
typedef uint8_t | CRYS_SRP_Secret_t [2 *CRYS_SRP_MAX_DIGEST] |
typedef struct CRYS_SRP_GroupParam_t | CRYS_SRP_GroupParam_t |
typedef struct CRYS_SRP_Context_t | CRYS_SRP_Context_t |
Enumerations | |
enum | CRYS_SRP_Version_t { CRYS_SRP_VER_3 = 0, CRYS_SRP_VER_6 = 1, CRYS_SRP_VER_6A = 2, CRYS_SRP_VER_HK = 3, CRYS_SRP_NumOfVersions, CRYS_SRP_VersionLast = 0x7FFFFFFF } |
enum | CRYS_SRP_Entity_t { CRYS_SRP_HOST = 1, CRYS_SRP_USER = 2, CRYS_SRP_NumOfEntityType, CRYS_SRP_EntityLast = 0x7FFFFFFF } |
Functions | |
CIMPORT_C CRYSError_t | CRYS_SRP_Init (CRYS_SRP_Entity_t srpType, CRYS_SRP_Version_t srpVer, CRYS_SRP_Modulus_t srpModulus, uint8_t srpGen, size_t modSizeInBits, CRYS_HASH_OperationMode_t hashMode, uint8_t *pUserName, size_t userNameSize, uint8_t *pPwd, size_t pwdSize, void *pRndState, SaSiRndGenerateVectWorkFunc_t rndGenerateVectFunc, CRYS_SRP_Context_t *pCtx) |
This function initiates the SRP context. | |
CIMPORT_C CRYSError_t | CRYS_SRP_PwdVerCreate (size_t saltSize, uint8_t *pSalt, CRYS_SRP_Modulus_t pwdVerifier, CRYS_SRP_Context_t *pCtx) |
This function calculates pSalt & password verifier. | |
CIMPORT_C CRYSError_t | CRYS_SRP_Clear (CRYS_SRP_Context_t *pCtx) |
Clears the SRP context. | |
CIMPORT_C CRYSError_t | CRYS_SRP_HostPubKeyCreate (size_t ephemPrivSize, CRYS_SRP_Modulus_t pwdVerifier, CRYS_SRP_Modulus_t hostPubKeyB, CRYS_SRP_Context_t *pCtx) |
This function generates host public & private ephemeral key, known as B & b in RFC. | |
CIMPORT_C CRYSError_t | CRYS_SRP_HostProofVerifyAndCalc (size_t saltSize, uint8_t *pSalt, CRYS_SRP_Modulus_t pwdVerifier, CRYS_SRP_Modulus_t userPubKeyA, CRYS_SRP_Modulus_t hostPubKeyB, CRYS_SRP_Digest_t userProof, CRYS_SRP_Digest_t hostProof, CRYS_SRP_Secret_t sharedSecret, CRYS_SRP_Context_t *pCtx) |
Verifies the user Proof and calculates the Host message proof. | |
CIMPORT_C CRYSError_t | CRYS_SRP_UserPubKeyCreate (size_t ephemPrivSize, CRYS_SRP_Modulus_t userPubKeyA, CRYS_SRP_Context_t *pCtx) |
This function generates user public & private ephemeral key, known as A & a in RFC. | |
CIMPORT_C CRYSError_t | CRYS_SRP_UserProofCalc (size_t saltSize, uint8_t *pSalt, CRYS_SRP_Modulus_t userPubKeyA, CRYS_SRP_Modulus_t hostPubKeyB, CRYS_SRP_Digest_t userProof, CRYS_SRP_Secret_t sharedSecret, CRYS_SRP_Context_t *pCtx) |
This function calculates the user proof. | |
CIMPORT_C CRYSError_t | CRYS_SRP_UserProofVerify (CRYS_SRP_Secret_t sharedSecret, CRYS_SRP_Modulus_t userPubKeyA, CRYS_SRP_Digest_t userProof, CRYS_SRP_Digest_t hostProof, CRYS_SRP_Context_t *pCtx) |
This function verifies the host proof. |
Detailed Description
This file contains all of the enums and definitions that are used for the CRYS SRP APIs, as well as the APIs themselves.
Definition in file crys_srp.h.
Generated on Tue Jul 12 2022 13:55:06 by
