Path: blob/main/contrib/libfido2/examples/extern.h
39483 views
/*1* Copyright (c) 2018-2022 Yubico AB. All rights reserved.2* Use of this source code is governed by a BSD-style3* license that can be found in the LICENSE file.4* SPDX-License-Identifier: BSD-2-Clause5*/67#ifndef _EXTERN_H_8#define _EXTERN_H_910#include <openssl/ec.h>11#include <openssl/evp.h>12#include <openssl/rsa.h>1314/* util.c */15EC_KEY *read_ec_pubkey(const char *);16RSA *read_rsa_pubkey(const char *);17EVP_PKEY *read_eddsa_pubkey(const char *);18int base10(const char *, long long *);19int read_blob(const char *, unsigned char **, size_t *);20int write_blob(const char *, const unsigned char *, size_t);21int write_es256_pubkey(const char *, const void *, size_t);22int write_es384_pubkey(const char *, const void *, size_t);23int write_rs256_pubkey(const char *, const void *, size_t);24int write_eddsa_pubkey(const char *, const void *, size_t);2526#endif /* _EXTERN_H_ */272829