Backport hw_ibmca.c from master due to failed merge
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
f7b36402d6
commit
3b0e0d1231
@ -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 */
|
||||
@ -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…
x
Reference in New Issue
Block a user