Loading demos/engines/ibmca/hw_ibmca.c +920 −918 Original line number Diff line number Diff line Loading @@ -764,10 +764,12 @@ they could cause potential side affects on either the card or the result */ BN_bn2bin(dmq1, pkey); /* Copy over dmq1 */ pkey += qSize; /* move pointer */ pkey += pSize - BN_num_bytes(p); /* set up for zero padding of next field */ /* set up for zero padding of next field */ pkey += pSize - BN_num_bytes(p); BN_bn2bin(p, pkey); pkey += BN_num_bytes(p); /* increment pointer by number of bytes moved */ /* increment pointer by number of bytes moved */ pkey += BN_num_bytes(p); BN_bn2bin(q, pkey); pkey += qSize ; /* move the pointer */ Loading @@ -776,8 +778,8 @@ they could cause potential side affects on either the card or the result */ /* Prepare the argument and response */ outLen = CORRECT_ENDIANNESS(privKey->qLength) * 2; /* Correct endianess is used because the fields were converted above */ /* Correct endianess is used because the fields were converted above */ outLen = CORRECT_ENDIANNESS(privKey->qLength) * 2; if (outLen > 256) { IBMCAerr(IBMCA_F_IBMCA_MOD_EXP_CRT,IBMCA_R_OUTLEN_TO_LARGE); Loading Loading
demos/engines/ibmca/hw_ibmca.c +920 −918 Original line number Diff line number Diff line Loading @@ -764,10 +764,12 @@ they could cause potential side affects on either the card or the result */ BN_bn2bin(dmq1, pkey); /* Copy over dmq1 */ pkey += qSize; /* move pointer */ pkey += pSize - BN_num_bytes(p); /* set up for zero padding of next field */ /* set up for zero padding of next field */ pkey += pSize - BN_num_bytes(p); BN_bn2bin(p, pkey); pkey += BN_num_bytes(p); /* increment pointer by number of bytes moved */ /* increment pointer by number of bytes moved */ pkey += BN_num_bytes(p); BN_bn2bin(q, pkey); pkey += qSize ; /* move the pointer */ Loading @@ -776,8 +778,8 @@ they could cause potential side affects on either the card or the result */ /* Prepare the argument and response */ outLen = CORRECT_ENDIANNESS(privKey->qLength) * 2; /* Correct endianess is used because the fields were converted above */ /* Correct endianess is used because the fields were converted above */ outLen = CORRECT_ENDIANNESS(privKey->qLength) * 2; if (outLen > 256) { IBMCAerr(IBMCA_F_IBMCA_MOD_EXP_CRT,IBMCA_R_OUTLEN_TO_LARGE); Loading