|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {int} {gnutls_pkcs8_info} (const gnutls_datum_t * @var{data}, gnutls_x509_crt_fmt_t @var{format}, unsigned int * @var{schema}, unsigned int * @var{cipher}, void * @var{salt}, unsigned int * @var{salt_size}, unsigned int * @var{iter_count}, char ** @var{oid})
|
|
Packit |
aea12f |
@var{data}: Holds the PKCS @code{8} data
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{format}: the format of the PKCS @code{8} data
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{schema}: indicate the schema as one of @code{gnutls_pkcs_encrypt_flags_t}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{cipher}: the cipher used as @code{gnutls_cipher_algorithm_t}
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{salt}: PBKDF2 salt (if non-NULL then @code{salt_size} initially holds its size)
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{salt_size}: PBKDF2 salt size
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{iter_count}: PBKDF2 iteration count
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@var{oid}: if non-NULL it will contain an allocated null-terminated variable with the OID
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
This function will provide information on the algorithms used
|
|
Packit |
aea12f |
in a particular PKCS @code{8} structure. If the structure algorithms
|
|
Packit |
aea12f |
are unknown the code @code{GNUTLS_E_UNKNOWN_CIPHER_TYPE} will be returned,
|
|
Packit |
aea12f |
and only @code{oid} , will be set. That is, @code{oid} will be set on encrypted PKCS @code{8}
|
|
Packit |
aea12f |
structures whether supported or not. It must be deinitialized using @code{gnutls_free()} .
|
|
Packit |
aea12f |
The other variables are only set on supported structures.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} @code{GNUTLS_E_INVALID_REQUEST} if the provided structure isn't an encrypted key,
|
|
Packit |
aea12f |
@code{GNUTLS_E_UNKNOWN_CIPHER_TYPE} if the structure's encryption isn't supported, or
|
|
Packit |
aea12f |
another negative error code in case of a failure. Zero on success.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Since:} 3.4.0
|
|
Packit |
aea12f |
@end deftypefun
|