gnutls_pkcs11_obj_get_pk_algorithm3
Api function
Arguments
- gnutls_pkcs11_obj_t obj
-
The pkcs11 object
- unsigned int * bits
-
Will hold the rsa/dsa bit count or the ecc curve This function given a pkcs11 object with privkey_type initialized, will return the algorithm type on success , and will store the number of bits if the algo type is
GNUTLS_PK_RSAorGNUTLS_PK_DSA, or the curve if the algo type isGNUTLS_PK_ECDSA.
Overview
The return value needs to be checked to determine if bits represents the ecc curve or the number of bits.
Returns
The private key algorithm associated with the object on success or a an error code otherwise.
Since
3.8.13