ARM Shanghai IoT Team (Internal) / newMiniTLS-GPL

Fork of MiniTLS-GPL by Donatien Garnier

Embed: (wiki syntax)

« Back to documentation index

ltc_ecc_mul2add.c File Reference

ltc_ecc_mul2add.c File Reference

ECC Crypto, Shamir's Trick, Tom St Denis. More...

Go to the source code of this file.

Functions

int ltc_ecc_mul2add (ecc_point *A, void *kA, ecc_point *B, void *kB, ecc_point *C, void *modulus)
 Computes kA*A + kB*B = C using Shamir's Trick.

Detailed Description

ECC Crypto, Shamir's Trick, Tom St Denis.

Definition in file ltc_ecc_mul2add.c.


Function Documentation

int ltc_ecc_mul2add ( ecc_point A,
void *  kA,
ecc_point B,
void *  kB,
ecc_point C,
void *  modulus 
)

Computes kA*A + kB*B = C using Shamir's Trick.

Parameters:
AFirst point to multiply
kAWhat to multiple A by
BSecond point to multiply
kBWhat to multiple B by
C[out] Destination point (can overlap with A or B
modulusModulus for curve
Returns:
CRYPT_OK on success

Definition at line 55 of file ltc_ecc_mul2add.c.