EVP_PKEY_get0_poly1305

Return a pointer to the Poly1305 key material inside an EVP_PKEY (deprecated).

Synopsis

Declared in <openssl/evp.h>

[[deprecated]]
unsigned char const*
EVP_PKEY_get0_poly1305(
    EVP_PKEY const* pkey,
    size_t* len);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Pointer to the internal key bytes (do not free), or NULL on error.

Parameters

NameDescription
pkeyKey of type EVP_PKEY_POLY1305.
lenReceives the key length in bytes.