- fix for 2048 bit keys on cflex

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@984 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2003-04-11 10:31:33 +00:00
parent c07de5157a
commit 4f60d849c6
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ filesystem {
DF PKCS15-AppDF {
DF keydir-1 {
file-id = 4B01;
size = 750; # Sufficient for a 1024-bit key
size = 1370; # Sufficient for a 2048-bit key
EF pinfile-1 {
file-id = 0000;
size = 23;
@ -45,7 +45,7 @@ filesystem {
}
DF keydir-2 {
file-id = 4B02;
size = 750; # Sufficient for a 1024-bit key
size = 1370; # Sufficient for a 2048-bit key
EF pinfile-2 {
file-id = 0000;
size = 23;

View File

@ -206,7 +206,7 @@ static int bn2cf(sc_pkcs15_bignum_t *num, u8 *buf)
static int cflex_encode_private_key(struct sc_pkcs15_prkey_rsa *rsa, u8 *key, size_t *keysize, int key_num)
{
u8 buf[512], *p = buf;
u8 buf[5 * 128 + 6], *p = buf;
u8 bnbuf[256];
int base = 0;
int r;
@ -283,7 +283,7 @@ static int cflex_encode_private_key(struct sc_pkcs15_prkey_rsa *rsa, u8 *key, si
static int cflex_encode_public_key(struct sc_pkcs15_prkey_rsa *rsa, u8 *key, size_t *keysize, int key_num)
{
u8 buf[512], *p = buf;
u8 buf[5 * 128 + 10], *p = buf;
u8 bnbuf[256];
int base = 0;
int r;