/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 54 int32_t ECC_Mutiply(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char x1[], char y1[], char *k, char x2[], … 812 static ECC_CURVE * get_curve(E_ECC_CURVE ecc_curve); 813 static int32_t ecc_init_curve(CRPT_T *crpt, E_ECC_CURVE ecc_curve); 979 static int32_t ecc_init_curve(CRPT_T *crpt, E_ECC_CURVE ecc_curve) in ecc_init_curve() argument 983 pCurve = get_curve(ecc_curve); in ecc_init_curve() 986 CRPT_DBGMSG("Cannot find curve %d!!\n", ecc_curve); in ecc_init_curve() 1064 int ECC_IsPrivateKeyValid(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char private_k[]) in ECC_IsPrivateKeyValid() argument 1069 pCurve = get_curve(ecc_curve); in ECC_IsPrivateKeyValid() 1111 int32_t ECC_GeneratePublicKey(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1… in ECC_GeneratePublicKey() argument 1116 if(ecc_init_curve(crpt, ecc_curve) != 0) in ECC_GeneratePublicKey() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | crypto.h | 523 int ECC_IsPrivateKeyValid(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char private_k[]); 524 int32_t ECC_GenerateSecretZ(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1[]… 525 int32_t ECC_GeneratePublicKey(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1… 526 int32_t ECC_GenerateSignature(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, char *d, char *k… 527 int32_t ECC_VerifySignature(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, char *public_k1, c… 539 int32_t ECC_GeneratePublicKey_KS(CRPT_T *crpt, E_ECC_CURVE ecc_curve, KS_MEM_Type mem, int32_t i32… 540 int32_t ECC_GenerateSignature_KS(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, KS_MEM_Type m… 541 int32_t ECC_VerifySignature_KS(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, KS_MEM_Type mem… 542 int32_t ECC_GenerateSecretZ_KS(CRPT_T *crpt, E_ECC_CURVE ecc_curve, KS_MEM_Type mem, int32_t i32Ke… 546 int32_t ECC_GetCurve(CRPT_T *crpt, E_ECC_CURVE ecc_curve, ECC_CURVE *curve);
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | crypto.h | 373 int ECC_IsPrivateKeyValid(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char private_k[]); 374 int32_t ECC_GenerateSecretZ(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1[]… 375 int32_t ECC_GeneratePublicKey(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1… 376 int32_t ECC_GenerateSignature(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, char *d, char *k… 377 int32_t ECC_VerifySignature(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *message, char *public_k1, c…
|
D | mkromlib.h | 587 int32_t XECC_IsPrivateKeyValid(XCRPT_T *xcrpt, E_ECC_CURVE ecc_curve, char private_k[]); 601 int32_t XECC_GeneratePublicKey(XCRPT_T *xcrpt, E_ECC_CURVE ecc_curve, char *private_k, char public_… 617 int32_t XECC_GenerateSignature(XCRPT_T *xcrpt, E_ECC_CURVE ecc_curve, char *message, char *d, char … 634 int32_t XECC_VerifySignature(XCRPT_T *xcrpt, E_ECC_CURVE ecc_curve, char *message, char *public_k1,… 649 int32_t XECC_GenerateSecretZ(XCRPT_T *xcrpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1…
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | crypto.c | 759 static ECC_CURVE * get_curve(E_ECC_CURVE ecc_curve); 760 static int32_t ecc_init_curve(CRPT_T *crpt, E_ECC_CURVE ecc_curve); 899 static int32_t ecc_init_curve(CRPT_T *crpt, E_ECC_CURVE ecc_curve) in ecc_init_curve() argument 903 pCurve = get_curve(ecc_curve); in ecc_init_curve() 906 CRPT_DBGMSG("Cannot find curve %d!!\n", ecc_curve); in ecc_init_curve() 984 int ECC_IsPrivateKeyValid(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char private_k[]) in ECC_IsPrivateKeyValid() argument 989 pCurve = get_curve(ecc_curve); in ECC_IsPrivateKeyValid() 1031 int32_t ECC_GeneratePublicKey(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1… in ECC_GeneratePublicKey() argument 1036 if(ecc_init_curve(crpt, ecc_curve) != 0) in ECC_GeneratePublicKey() 1090 int32_t ECC_GenerateSecretZ(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char *private_k, char public_k1[]… in ECC_GenerateSecretZ() argument [all …]
|