mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
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:
parent
db8f08ddee
commit
badbce91d4
@ -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 );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user