sm2_recover.h 692 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the License); you may
  5. * not use this file except in compliance with the License.
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. */
  9. #ifndef GMSSL_SM2_RECOVER_H
  10. #define GMSSL_SM2_RECOVER_H
  11. #include <stdio.h>
  12. #include <stdint.h>
  13. #include <stdlib.h>
  14. #include <gmssl/sm3.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. int sm2_signature_to_public_key_points(const SM2_SIGNATURE *sig, const uint8_t dgst[32],
  19. SM2_POINT points[4], size_t *points_cnt);
  20. int sm2_signature_conjugate(const SM2_SIGNATURE *sig, SM2_SIGNATURE *new_sig);
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif