EVP_PKEY_CTX_new_id function
EVP_PKEY_CTX_new_id allocates a fresh |EVP_PKEY_CTX| for a key of type |id| (e.g. |EVP_PKEY_HMAC|). This can be used for key generation where |EVP_PKEY_CTX_new| can't be used because there isn't an |EVP_PKEY| to pass it. It returns the context or NULL on error.
For key generation, prefer to use |EVP_PKEY_generate_from_alg|.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Pointer<EVP_PKEY_CTX> Function(ffi.Int, ffi.Pointer<ENGINE>)>(
symbol: 'bssl_dart_EVP_PKEY_CTX_new_id',
)
external ffi.Pointer<EVP_PKEY_CTX> EVP_PKEY_CTX_new_id(
int id,
ffi.Pointer<ENGINE> e,
);