Home | History | Annotate | Download | only in crypto

Lines Matching refs:modulus

94  * Identify X.509 certificate RSA modulus and public exponent
102 * the RSA modulus and exponent.
108 struct asn1_cursor modulus;
144 /* Pick out the modulus and exponent */
151 memcpy ( &modulus, &pubkey, sizeof ( modulus ) );
152 rc = ( asn1_enter ( &modulus, ASN1_INTEGER ) /* modulus */ );
154 DBG ( "Cannot locate modulus in:\n" );
159 rc = ( asn1_skip ( &exponent, ASN1_INTEGER ), /* modulus */
167 /* Allocate space and copy out modulus and exponent */
168 rsa_pubkey->modulus = malloc ( modulus.len + exponent.len );
169 if ( ! rsa_pubkey->modulus )
171 rsa_pubkey->exponent = ( rsa_pubkey->modulus + modulus.len );
172 memcpy ( rsa_pubkey->modulus, modulus.data, modulus.len );
173 rsa_pubkey->modulus_len = modulus.len;
177 DBG2 ( "RSA modulus:\n" );
178 DBG2_HDA ( 0, rsa_pubkey->modulus, rsa_pubkey->modulus_len );