Home | History | Annotate | Download | only in crypto

Lines Matching defs:algorithm

44  * @v algorithm		Public key algorithm to fill in
49 struct asn1_cursor *algorithm,
71 /* Locate algorithm */
72 memcpy ( algorithm, &cursor, sizeof ( *algorithm ) );
73 rc = ( asn1_enter ( algorithm, ASN1_SEQUENCE ) /* algorithm */ );
75 DBG ( "Cannot locate algorithm in:\n" );
82 rc = ( asn1_skip ( pubkey, ASN1_SEQUENCE ), /* algorithm */
106 struct asn1_cursor algorithm;
112 /* First, extract the public key algorithm and key data */
113 if ( ( rc = x509_public_key ( certificate, &algorithm,
117 /* Check that algorithm is RSA */
118 rc = ( asn1_enter ( &algorithm, ASN1_OID ) /* algorithm */ );
120 DBG ( "Cannot locate algorithm:\n" );
124 if ( ( algorithm.len != sizeof ( oid_rsa_encryption ) ) ||
125 ( memcmp ( algorithm.data, &oid_rsa_encryption,
127 DBG ( "algorithm is not rsaEncryption in:\n" );