source: azure_iot_hub/trunk/wolfssl-3.15.7/wolfssl/openssl/ecdsa.h@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 2.5 KB
Line 
1/* ecdsa.h
2 *
3 * Copyright (C) 2006-2017 wolfSSL Inc.
4 *
5 * This file is part of wolfSSL.
6 *
7 * wolfSSL is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * wolfSSL is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20 */
21
22/* ecdsa.h for openssl */
23
24#ifndef WOLFSSL_ECDSA_H_
25#define WOLFSSL_ECDSA_H_
26
27#include <wolfssl/openssl/bn.h>
28
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#ifndef WOLFSSL_ECDSA_TYPE_DEFINED /* guard on redeclaration */
35typedef struct WOLFSSL_ECDSA_SIG WOLFSSL_ECDSA_SIG;
36#define WOLFSSL_ECDSA_TYPE_DEFINED
37#endif
38
39typedef WOLFSSL_ECDSA_SIG ECDSA_SIG;
40
41struct WOLFSSL_ECDSA_SIG {
42 WOLFSSL_BIGNUM *r;
43 WOLFSSL_BIGNUM *s;
44};
45
46WOLFSSL_API void wolfSSL_ECDSA_SIG_free(WOLFSSL_ECDSA_SIG *sig);
47WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_SIG_new(void);
48WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_do_sign(const unsigned char *dgst,
49 int dgst_len,
50 WOLFSSL_EC_KEY *eckey);
51WOLFSSL_API int wolfSSL_ECDSA_do_verify(const unsigned char *dgst,
52 int dgst_len,
53 const WOLFSSL_ECDSA_SIG *sig,
54 WOLFSSL_EC_KEY *eckey);
55
56WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_d2i_ECDSA_SIG(WOLFSSL_ECDSA_SIG **sig,
57 const unsigned char **pp,
58 long len);
59WOLFSSL_API int wolfSSL_i2d_ECDSA_SIG(const WOLFSSL_ECDSA_SIG *sig,
60 unsigned char **pp);
61
62#define ECDSA_SIG_free wolfSSL_ECDSA_SIG_free
63#define ECDSA_SIG_new wolfSSL_ECDSA_SIG_new
64#define ECDSA_do_sign wolfSSL_ECDSA_do_sign
65#define ECDSA_do_verify wolfSSL_ECDSA_do_verify
66#define d2i_ECDSA_SIG wolfSSL_d2i_ECDSA_SIG
67#define i2d_ECDSA_SIG wolfSSL_i2d_ECDSA_SIG
68
69#ifdef __cplusplus
70} /* extern "C" */
71#endif
72
73#endif /* header */
74
Note: See TracBrowser for help on using the repository browser.