Skip to content

Commit

Permalink
Ran ./scripts/format_code.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Sep 20, 2024
1 parent 83db8a6 commit 0e8346b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oqsprov/oqsprov_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,8 @@ static const OQSX_EVP_INFO nids_sig[] = {
};
// These two array need to stay synced:
// note only leading 4 chars of alg name are checked
static const char *OQSX_ECP_NAMES[] = {"p256", "p384", "p521", "SecP256r1", "SecP384r1", "SecP521r1", 0};
static const char *OQSX_ECP_NAMES[] = {
"p256", "p384", "p521", "SecP256r1", "SecP384r1", "SecP521r1", 0};
static const OQSX_EVP_INFO nids_ecp[] = {
{EVP_PKEY_EC, NID_X9_62_prime256v1, 0, 65, 121, 32, 0}, // 128 bit
{EVP_PKEY_EC, NID_secp384r1, 0, 97, 167, 48, 0}, // 192 bit
Expand Down Expand Up @@ -614,7 +615,7 @@ static int oqsx_hybsig_init(int bit_security, OQSX_EVP_CTX *evp_ctx,
static const int oqshybkem_init_ecp(char *tls_name, OQSX_EVP_CTX *evp_ctx) {
int ret = 1;
int idx = 0;

while (idx < OSSL_NELEM(OQSX_ECP_NAMES)) {
if (!strncmp(tls_name, OQSX_ECP_NAMES[idx], (idx < 3) ? 4 : 7))
break;
Expand Down

0 comments on commit 0e8346b

Please sign in to comment.