ecdsa.py 709 B

1234567891011121314151617181920212223242526272829
  1. # This file is dual licensed under the terms of the Apache License, Version
  2. # 2.0, and the BSD License. See the LICENSE file in the root of this repository
  3. # for complete details.
  4. from __future__ import absolute_import, division, print_function
  5. INCLUDES = """
  6. #include <openssl/ecdsa.h>
  7. """
  8. TYPES = """
  9. typedef ... ECDSA_SIG;
  10. typedef ... CRYPTO_EX_new;
  11. typedef ... CRYPTO_EX_dup;
  12. typedef ... CRYPTO_EX_free;
  13. """
  14. FUNCTIONS = """
  15. int ECDSA_sign(int, const unsigned char *, int, unsigned char *,
  16. unsigned int *, EC_KEY *);
  17. int ECDSA_verify(int, const unsigned char *, int, const unsigned char *, int,
  18. EC_KEY *);
  19. int ECDSA_size(const EC_KEY *);
  20. """
  21. CUSTOMIZATIONS = """
  22. """