2 * Copyright (c) 2018 Yubico AB. All rights reserved.
3 * Use of this source code is governed by a BSD-style
4 * license that can be found in the LICENSE file.
10 #include <openssl/ec.h>
23 #endif /* __cplusplus */
25 es256_pk_t *es256_pk_new(void);
26 void es256_pk_free(es256_pk_t **);
27 EVP_PKEY *es256_pk_to_EVP_PKEY(const es256_pk_t *);
29 int es256_pk_from_EC_KEY(es256_pk_t *, const EC_KEY *);
30 int es256_pk_from_ptr(es256_pk_t *, const void *, size_t);
33 es256_sk_t *es256_sk_new(void);
34 void es256_sk_free(es256_sk_t **);
35 EVP_PKEY *es256_sk_to_EVP_PKEY(const es256_sk_t *);
37 int es256_derive_pk(const es256_sk_t *, es256_pk_t *);
38 int es256_sk_create(es256_sk_t *);
40 int es256_pk_set_x(es256_pk_t *, const unsigned char *);
41 int es256_pk_set_y(es256_pk_t *, const unsigned char *);
46 #endif /* __cplusplus */
48 #endif /* !_FIDO_ES256_H */