source: UsbWattMeter/trunk/wolfssl-3.7.0/wolfssl/openssl/ecdsa.h@ 164

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

TOPPERS/ECNLサンプルアプリ「USB充電器電力計」を追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 1.1 KB
Line 
1/* ecdsa.h for openssl */
2
3#ifndef WOLFSSL_ECDSA_H_
4#define WOLFSSL_ECDSA_H_
5
6#include <wolfssl/openssl/ssl.h>
7#include <wolfssl/openssl/bn.h>
8
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct WOLFSSL_ECDSA_SIG {
15 WOLFSSL_BIGNUM *r;
16 WOLFSSL_BIGNUM *s;
17};
18
19WOLFSSL_API void wolfSSL_ECDSA_SIG_free(WOLFSSL_ECDSA_SIG *sig);
20WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_SIG_new(void);
21WOLFSSL_API WOLFSSL_ECDSA_SIG *wolfSSL_ECDSA_do_sign(const unsigned char *dgst,
22 int dgst_len,
23 WOLFSSL_EC_KEY *eckey);
24WOLFSSL_API int wolfSSL_ECDSA_do_verify(const unsigned char *dgst,
25 int dgst_len,
26 const WOLFSSL_ECDSA_SIG *sig,
27 WOLFSSL_EC_KEY *eckey);
28
29#define ECDSA_SIG_free wolfSSL_ECDSA_SIG_free
30#define ECDSA_SIG_new wolfSSL_ECDSA_SIG_new
31#define ECDSA_do_sign wolfSSL_ECDSA_do_sign
32#define ECDSA_do_verify wolfSSL_ECDSA_do_verify
33
34#ifdef __cplusplus
35} /* extern "C" */
36#endif
37
38#endif /* header */
39
Note: See TracBrowser for help on using the repository browser.