1 .\" Copyright (c) 2019 Yubico AB. All rights reserved.
2 .\" Use of this source code is governed by a BSD-style
3 .\" license that can be found in the LICENSE file.
5 .Dd $Mdocdate: May 15 2019 $
11 .Nm eddsa_pk_from_EVP_PKEY ,
12 .Nm eddsa_pk_from_ptr ,
13 .Nm eddsa_pk_to_EVP_PKEY
14 .Nd FIDO2 COSE EDDSA API
19 .Fn eddsa_pk_new "void"
21 .Fn eddsa_pk_free "eddsa_pk_t **pkp"
23 .Fn eddsa_pk_from_EVP_PKEY "eddsa_pk_t *pk" "const EVP_PKEY *pkey"
25 .Fn eddsa_pk_from_ptr "eddsa_pk_t *pk" "const void *ptr" "size_t len"
27 .Fn eddsa_pk_to_EVP_PKEY "const eddsa_pk_t *pk"
29 EDDSA is the name given in the CBOR Object Signing and Encryption
30 (COSE) RFC to EDDSA over Curve25519 with SHA-512.
33 is an auxiliary API with routines to convert between the different
34 EDDSA public key types used in
41 EDDSA public keys are abstracted by the
47 function returns a pointer to a newly allocated, empty
50 If memory cannot be allocated, NULL is returned.
54 function releases the memory backing
58 must have been previously allocated by
67 may be NULL, in which case
72 .Fn eddsa_pk_from_EVP_PKEY
97 .Fn eddsa_pk_to_EVP_PKEY
102 type with a reference count of 1.
103 No internal references to the returned pointer are kept.
105 .Fn eddsa_pk_to_EVP_PKEY
109 .Fn eddsa_pk_from_EVP_PKEY
111 .Fn eddsa_pk_from_ptr
115 On error, a different error code defined in
120 .Xr fido_assert_verify 3 ,
121 .Xr fido_cred_pubkey_ptr 3 ,