Lines Matching refs:RSAref_bn2bin
311 static int RSAref_bn2bin(BIGNUM *from, unsigned char *to, int max)
355 if (!RSAref_bn2bin(from->n, to->modulus, MAX_RSA_MODULUS_LEN))
357 if (!RSAref_bn2bin(from->e, to->exponent, MAX_RSA_MODULUS_LEN))
392 if (!RSAref_bn2bin(from->n, to->modulus, MAX_RSA_MODULUS_LEN))
394 if (!RSAref_bn2bin(from->e, to->publicExponent, MAX_RSA_MODULUS_LEN))
396 if (!RSAref_bn2bin(from->d, to->exponent, MAX_RSA_MODULUS_LEN))
398 if (!RSAref_bn2bin(from->p, to->prime[0], MAX_RSA_PRIME_LEN))
400 if (!RSAref_bn2bin(from->q, to->prime[1], MAX_RSA_PRIME_LEN))
402 if (!RSAref_bn2bin(from->dmp1, to->primeExponent[0], MAX_RSA_PRIME_LEN))
404 if (!RSAref_bn2bin(from->dmq1, to->primeExponent[1], MAX_RSA_PRIME_LEN))
406 if (!RSAref_bn2bin(from->iqmp, to->coefficient, MAX_RSA_PRIME_LEN))