s2n_evp_signing.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://aws.amazon.com/apache2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #pragma once
  16. #include "api/s2n.h"
  17. #include "crypto/s2n_hash.h"
  18. #include "crypto/s2n_signature.h"
  19. #include "utils/s2n_blob.h"
  20. bool s2n_evp_signing_supported();
  21. S2N_RESULT s2n_evp_signing_set_pkey_overrides(struct s2n_pkey *pkey);
  22. int s2n_evp_sign(const struct s2n_pkey *priv, s2n_signature_algorithm sig_alg,
  23. struct s2n_hash_state *digest, struct s2n_blob *signature);
  24. int s2n_evp_verify(const struct s2n_pkey *pub, s2n_signature_algorithm sig_alg,
  25. struct s2n_hash_state *digest, struct s2n_blob *signature);