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