Searched refs:epid_status (Results 1 – 2 of 2) sorted by relevance
/external/epid-sdk/epid/common/math/src/ |
D | ecdsa_sign.c | 50 EpidStatus epid_status = kEpidNoErr; in EcdsaSignBuffer() local 86 epid_status = NewBigNum(sizeof(secp256r1_r), &bn_ec_order); in EcdsaSignBuffer() 87 if (kEpidMemAllocErr == epid_status) { in EcdsaSignBuffer() 91 if (kEpidNoErr != epid_status) break; in EcdsaSignBuffer() 92 epid_status = ReadBigNum(secp256r1_r, sizeof(secp256r1_r), bn_ec_order); in EcdsaSignBuffer() 93 if (kEpidNoErr != epid_status) break; in EcdsaSignBuffer() 100 epid_status = NewBigNum(sizeof(hash), &bn_hash); in EcdsaSignBuffer() 101 if (kEpidMemAllocErr == epid_status) { in EcdsaSignBuffer() 105 if (kEpidNoErr != epid_status) break; in EcdsaSignBuffer() 106 epid_status = ReadBigNum(hash, sizeof(hash), bn_hash); in EcdsaSignBuffer() [all …]
|
D | ecdsa_verify.c | 72 EpidStatus epid_status = kEpidNoErr; in EcdsaVerifyBuffer() local 76 epid_status = NewBigNum(sizeof(sig->x), &bn_sig_x); in EcdsaVerifyBuffer() 77 if (kEpidNoErr != epid_status) break; in EcdsaVerifyBuffer() 79 epid_status = ReadBigNum(&sig->x, sizeof(sig->x), bn_sig_x); in EcdsaVerifyBuffer() 80 if (kEpidNoErr != epid_status) break; in EcdsaVerifyBuffer() 82 epid_status = NewBigNum(sizeof(sig->y), &bn_sig_y); in EcdsaVerifyBuffer() 83 if (kEpidNoErr != epid_status) break; in EcdsaVerifyBuffer() 85 epid_status = ReadBigNum(&sig->y, sizeof(sig->y), bn_sig_y); in EcdsaVerifyBuffer() 86 if (kEpidNoErr != epid_status) break; in EcdsaVerifyBuffer() 89 epid_status = ValidateSignature(bn_sig_x, bn_sig_y); in EcdsaVerifyBuffer() [all …]
|