Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose committed Mar 14, 2024
1 parent 24afd67 commit 62f5cfb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
9 changes: 9 additions & 0 deletions crypto/s2n_ecc_evp.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,15 @@ int s2n_is_evp_apis_supported()
return EVP_APIS_SUPPORTED;
}

bool s2n_libcrypto_supports_ec_key_check_fips()
{
#ifdef S2N_LIBCRYPTO_SUPPORTS_EC_KEY_CHECK_FIPS
return true;
#else
return false;
#endif
}

#if EVP_APIS_SUPPORTED
static int s2n_ecc_evp_generate_key_x25519(const struct s2n_ecc_named_curve *named_curve, EVP_PKEY **evp_pkey)
{
Expand Down
1 change: 1 addition & 0 deletions crypto/s2n_ecc_evp.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,4 @@ int s2n_ecc_evp_parse_params(struct s2n_connection *conn,
int s2n_ecc_evp_find_supported_curve(struct s2n_connection *conn, struct s2n_blob *iana_ids, const struct s2n_ecc_named_curve **found);
int s2n_ecc_evp_params_free(struct s2n_ecc_evp_params *ecc_evp_params);
int s2n_is_evp_apis_supported();
bool s2n_libcrypto_supports_ec_key_check_fips();
9 changes: 0 additions & 9 deletions tests/unit/s2n_ecc_evp_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@

extern const struct s2n_ecc_named_curve s2n_unsupported_curve;

bool s2n_libcrypto_supports_ec_key_check_fips()
{
#ifdef S2N_LIBCRYPTO_SUPPORTS_EC_KEY_CHECK_FIPS
return true;
#else
return false;
#endif
}

int main(int argc, char** argv)
{
BEGIN_TEST();
Expand Down

0 comments on commit 62f5cfb

Please sign in to comment.