hsm_bignum

git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@106 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
kubodera_yuichi 2009-12-27 05:25:22 +00:00
parent db8f08ddee
commit badbce91d4

View File

@ -118,12 +118,12 @@ int my_bignumformatupcall(struct NFast_Application *app,
return Status_OK;
}
NFast_BignumUpcalls sbn_upcalls = {
sbn_bignumreceiveupcall,
sbn_bignumsendlenupcall,
sbn_bignumsendupcall,
sbn_bignumfreeupcall,
sbn_bignumformatupcall
NFast_BignumUpcalls my_upcalls = {
my_bignumreceiveupcall,
my_bignumsendlenupcall,
my_bignumsendupcall,
my_bignumfreeupcall,
my_bignumformatupcall
};
/* --------------------- */
@ -286,7 +286,7 @@ void my_printbignum ( FILE *f, const char *prefix, const struct NFast_Bignum *pB
char buf[MAXBIGNUMBITS/4+1];
int rc;
rc=sbn_bignum2char(buf, sizeof(buf), pBN, NULL, NULL, NULL);
rc = my_bignum2char(buf, sizeof(buf), pBN, NULL, NULL, NULL);
if ( rc != Status_OK ) strcpy(buf, "<invalid length>");
fprintf( f, "%s=\n %s\n", prefix, buf );
}