attribute_in_template
if (attribute_in_template(CKA_EC_POINT, pPublicKeyTemplate,
has_class = attribute_in_template(CKA_CLASS, pPublicKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPublicKeyTemplate,
if (attribute_in_template(CKA_EC_PARAMS, pPrivateKeyTemplate,
attribute_in_template(CKA_VALUE, pPrivateKeyTemplate,
has_class = attribute_in_template(CKA_CLASS, pPrivateKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPrivateKeyTemplate,
if (fixed_len_key && attribute_in_template(CKA_VALUE_LEN,
has_class = attribute_in_template(CKA_CLASS, pTemplate,
if (!attribute_in_template(CKA_MODULUS_BITS, pPublicKeyTemplate,
if (attribute_in_template(CKA_MODULUS, pPublicKeyTemplate,
has_class = attribute_in_template(CKA_CLASS, pPublicKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPublicKeyTemplate,
has_pub_exponent = attribute_in_template(CKA_PUBLIC_EXPONENT,
if (attribute_in_template(CKA_PRIVATE_EXPONENT,
attribute_in_template(CKA_MODULUS,
has_class = attribute_in_template(CKA_CLASS, pPrivateKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPrivateKeyTemplate,
if (attribute_in_template(CKA_VALUE, pPublicKeyTemplate,
has_class = attribute_in_template(CKA_CLASS, pPublicKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPublicKeyTemplate,
if (attribute_in_template(CKA_BASE, pPrivateKeyTemplate,
attribute_in_template(CKA_PRIME, pPrivateKeyTemplate,
attribute_in_template(CKA_VALUE, pPrivateKeyTemplate,
if (attribute_in_template(CKA_VALUE, pPrivateKeyTemplate,
has_class = attribute_in_template(CKA_CLASS, pPrivateKeyTemplate,
has_key_type = attribute_in_template(CKA_KEY_TYPE, pPrivateKeyTemplate,