Home | History | Annotate | Download | only in evp

Lines Matching refs:pkey

26 static void ed25519_free(EVP_PKEY *pkey) {
27 OPENSSL_free(pkey->pkey.ptr);
28 pkey->pkey.ptr = NULL;
31 static int set_pubkey(EVP_PKEY *pkey, const uint8_t pubkey[32]) {
40 ed25519_free(pkey);
41 pkey->pkey.ptr = key;
45 static int set_privkey(EVP_PKEY *pkey, const uint8_t privkey[64]) {
54 ed25519_free(pkey);
55 pkey->pkey.ptr = key;
72 static int ed25519_pub_encode(CBB *out, const EVP_PKEY *pkey) {
73 const ED25519_KEY *key = pkey->pkey.ptr;
93 const ED25519_KEY *a_key = a->pkey.ptr;
94 const ED25519_KEY *b_key = b->pkey.ptr;
119 static int ed25519_priv_encode(CBB *out, const EVP_PKEY *pkey) {
120 ED25519_KEY *key = pkey->pkey.ptr;
146 static int ed25519_size(const EVP_PKEY *pkey) { return 64; }
148 static int ed25519_bits(const EVP_PKEY *pkey) { return 256; }