Home | History | Annotate | Download | only in openssh

Lines Matching refs:rsa

1 /* $OpenBSD: rsa.c,v 1.29 2006/11/06 21:25:28 markus Exp $ */
37 * Description of the RSA algorithm can be found e.g. from the following
54 * The RSA Frequently Asked Questions document by RSA Data Security,
57 * RSA in 3 lines of perl by Adam Back <aba@atlax.ex.ac.uk>, 1995, as
71 #include "rsa.h"
75 rsa_public_encrypt(BIGNUM *out, BIGNUM *in, RSA *key)
104 rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key)
132 rsa_generate_additional_parameters(RSA *rsa)
142 if ((BN_sub(aux, rsa->q, BN_value_one()) == 0) ||
143 (BN_mod(rsa->dmq1, rsa->d, aux, ctx) == 0) ||
144 (BN_sub(aux, rsa->p, BN_value_one()) == 0) ||
145 (BN_mod(rsa->dmp1, rsa->d, aux, ctx) == 0))