Skip to content

Commit

Permalink
Fix formatting with run_astyle.sh --no-dry-run
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Jan 15, 2025
1 parent b7c1084 commit 5dfe440
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/kem/ml_kem/kem_ml_kem_1024.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern int ml_kem_1024_cupqc_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *

OQS_API OQS_STATUS OQS_KEM_ml_kem_1024_keypair(uint8_t *public_key, uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_1024_cupqc)
return (OQS_STATUS) ml_kem_1024_cupqc_keypair(public_key, secret_key);
return (OQS_STATUS) ml_kem_1024_cupqc_keypair(public_key, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_1024_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_1024_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -69,7 +69,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_1024_keypair(uint8_t *public_key, uint8_t *sec

OQS_API OQS_STATUS OQS_KEM_ml_kem_1024_encaps(uint8_t *ciphertext, uint8_t *shared_secret, const uint8_t *public_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_1024_cupqc)
return (OQS_STATUS) ml_kem_1024_cupqc_enc(ciphertext, shared_secret, public_key);
return (OQS_STATUS) ml_kem_1024_cupqc_enc(ciphertext, shared_secret, public_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_1024_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_1024_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -88,7 +88,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_1024_encaps(uint8_t *ciphertext, uint8_t *shar

OQS_API OQS_STATUS OQS_KEM_ml_kem_1024_decaps(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_1024_cupqc)
return (OQS_STATUS) ml_kem_1024_cupqc_dec(shared_secret, ciphertext, secret_key);
return (OQS_STATUS) ml_kem_1024_cupqc_dec(shared_secret, ciphertext, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_1024_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_1024_avx2)
#if defined(OQS_DIST_BUILD)
Expand Down
6 changes: 3 additions & 3 deletions src/kem/ml_kem/kem_ml_kem_512.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern int ml_kem_512_cupqc_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *s

OQS_API OQS_STATUS OQS_KEM_ml_kem_512_keypair(uint8_t *public_key, uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_512_cupqc)
return (OQS_STATUS) ml_kem_512_cupqc_keypair(public_key, secret_key);
return (OQS_STATUS) ml_kem_512_cupqc_keypair(public_key, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_512_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_512_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -69,7 +69,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_512_keypair(uint8_t *public_key, uint8_t *secr

OQS_API OQS_STATUS OQS_KEM_ml_kem_512_encaps(uint8_t *ciphertext, uint8_t *shared_secret, const uint8_t *public_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_512_cupqc)
return (OQS_STATUS) ml_kem_512_cupqc_enc(ciphertext, shared_secret, public_key);
return (OQS_STATUS) ml_kem_512_cupqc_enc(ciphertext, shared_secret, public_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_512_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_512_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -88,7 +88,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_512_encaps(uint8_t *ciphertext, uint8_t *share

OQS_API OQS_STATUS OQS_KEM_ml_kem_512_decaps(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_512_cupqc)
return (OQS_STATUS) ml_kem_512_cupqc_dec(shared_secret, ciphertext, secret_key);
return (OQS_STATUS) ml_kem_512_cupqc_dec(shared_secret, ciphertext, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_512_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_512_avx2)
#if defined(OQS_DIST_BUILD)
Expand Down
6 changes: 3 additions & 3 deletions src/kem/ml_kem/kem_ml_kem_768.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extern int ml_kem_768_cupqc_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *s

OQS_API OQS_STATUS OQS_KEM_ml_kem_768_keypair(uint8_t *public_key, uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_768_cupqc)
return (OQS_STATUS) ml_kem_768_cupqc_keypair(public_key, secret_key);
return (OQS_STATUS) ml_kem_768_cupqc_keypair(public_key, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_768_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_768_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -69,7 +69,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_768_keypair(uint8_t *public_key, uint8_t *secr

OQS_API OQS_STATUS OQS_KEM_ml_kem_768_encaps(uint8_t *ciphertext, uint8_t *shared_secret, const uint8_t *public_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_768_cupqc)
return (OQS_STATUS) ml_kem_768_cupqc_enc(ciphertext, shared_secret, public_key);
return (OQS_STATUS) ml_kem_768_cupqc_enc(ciphertext, shared_secret, public_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_768_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_768_avx2)
#if defined(OQS_DIST_BUILD)
Expand All @@ -88,7 +88,7 @@ OQS_API OQS_STATUS OQS_KEM_ml_kem_768_encaps(uint8_t *ciphertext, uint8_t *share

OQS_API OQS_STATUS OQS_KEM_ml_kem_768_decaps(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
#if defined(OQS_USE_CUPQC) && defined(OQS_ENABLE_KEM_ml_kem_768_cupqc)
return (OQS_STATUS) ml_kem_768_cupqc_dec(shared_secret, ciphertext, secret_key);
return (OQS_STATUS) ml_kem_768_cupqc_dec(shared_secret, ciphertext, secret_key);
#endif /* OQS_USE_CUPQC && OQS_ENABLE_KEM_ml_kem_768_cupqc */
#if defined(OQS_ENABLE_KEM_ml_kem_768_avx2)
#if defined(OQS_DIST_BUILD)
Expand Down

0 comments on commit 5dfe440

Please sign in to comment.