Skip to content

Commit

Permalink
end libjade_kyber*/api.c files with newline
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Apr 23, 2024
1 parent 47556b3 commit d0296d7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions scripts/copy_from_upstream/patches/libjade-kyber-api.patch
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
diff --git a/src/crypto_kem/kyber/kyber512/amd64/avx2/api.c b/src/crypto_kem/kyber/kyber512/amd64/avx2/api.c
new file mode 100644
index 0000000..028d5ef
index 0000000..78436e7
--- /dev/null
+++ b/src/crypto_kem/kyber/kyber512/amd64/avx2/api.c
@@ -0,0 +1,19 @@
@@ -0,0 +1,20 @@
+#include <oqs/rand.h>
+#include "api.h"
+
Expand All @@ -23,7 +23,7 @@ index 0000000..028d5ef
+int libjade_kyber512_avx2_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
+ return jade_kem_kyber_kyber512_amd64_avx2_dec( shared_secret, ciphertext, secret_key);
+}
\ No newline at end of file
+
diff --git a/src/crypto_kem/kyber/kyber512/amd64/avx2/include/api.h b/src/crypto_kem/kyber/kyber512/amd64/avx2/include/api.h
index 5148fd5..419112e 100644
--- a/src/crypto_kem/kyber/kyber512/amd64/avx2/include/api.h
Expand Down Expand Up @@ -76,10 +76,10 @@ index 5148fd5..419112e 100644
#endif
diff --git a/src/crypto_kem/kyber/kyber512/amd64/ref/api.c b/src/crypto_kem/kyber/kyber512/amd64/ref/api.c
new file mode 100644
index 0000000..97a698d
index 0000000..e06e406
--- /dev/null
+++ b/src/crypto_kem/kyber/kyber512/amd64/ref/api.c
@@ -0,0 +1,19 @@
@@ -0,0 +1,20 @@
+#include <oqs/rand.h>
+#include "api.h"
+
Expand All @@ -99,7 +99,7 @@ index 0000000..97a698d
+int libjade_kyber512_ref_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
+ return jade_kem_kyber_kyber512_amd64_ref_dec(shared_secret, ciphertext, secret_key);
+}
\ No newline at end of file
+
diff --git a/src/crypto_kem/kyber/kyber512/amd64/ref/include/api.h b/src/crypto_kem/kyber/kyber512/amd64/ref/include/api.h
index 38127cf..fcce52b 100644
--- a/src/crypto_kem/kyber/kyber512/amd64/ref/include/api.h
Expand Down Expand Up @@ -153,10 +153,10 @@ index 38127cf..fcce52b 100644
#endif
diff --git a/src/crypto_kem/kyber/kyber768/amd64/avx2/api.c b/src/crypto_kem/kyber/kyber768/amd64/avx2/api.c
new file mode 100644
index 0000000..130027f
index 0000000..9eeab1d
--- /dev/null
+++ b/src/crypto_kem/kyber/kyber768/amd64/avx2/api.c
@@ -0,0 +1,19 @@
@@ -0,0 +1,20 @@
+#include <oqs/rand.h>
+#include "api.h"
+
Expand All @@ -176,7 +176,7 @@ index 0000000..130027f
+int libjade_kyber768_avx2_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
+ return jade_kem_kyber_kyber768_amd64_avx2_dec(shared_secret, ciphertext, secret_key);
+}
\ No newline at end of file
+
diff --git a/src/crypto_kem/kyber/kyber768/amd64/avx2/include/api.h b/src/crypto_kem/kyber/kyber768/amd64/avx2/include/api.h
index d3b3500..ac36577 100644
--- a/src/crypto_kem/kyber/kyber768/amd64/avx2/include/api.h
Expand Down Expand Up @@ -229,10 +229,10 @@ index d3b3500..ac36577 100644
#endif
diff --git a/src/crypto_kem/kyber/kyber768/amd64/ref/api.c b/src/crypto_kem/kyber/kyber768/amd64/ref/api.c
new file mode 100644
index 0000000..c2473e8
index 0000000..b9a29b6
--- /dev/null
+++ b/src/crypto_kem/kyber/kyber768/amd64/ref/api.c
@@ -0,0 +1,19 @@
@@ -0,0 +1,20 @@
+#include <oqs/rand.h>
+#include "api.h"
+
Expand All @@ -252,7 +252,7 @@ index 0000000..c2473e8
+int libjade_kyber768_ref_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
+ return jade_kem_kyber_kyber768_amd64_ref_dec(shared_secret, ciphertext, secret_key);
+}
\ No newline at end of file
+
diff --git a/src/crypto_kem/kyber/kyber768/amd64/ref/include/api.h b/src/crypto_kem/kyber/kyber768/amd64/ref/include/api.h
index e23e1bf..0c453e0 100644
--- a/src/crypto_kem/kyber/kyber768/amd64/ref/include/api.h
Expand Down
2 changes: 1 addition & 1 deletion src/kem/kyber/libjade_kyber512_avx2/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int libjade_kyber512_avx2_enc(uint8_t *ciphertext, uint8_t *shared_secret, const

int libjade_kyber512_avx2_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
return jade_kem_kyber_kyber512_amd64_avx2_dec( shared_secret, ciphertext, secret_key);
}
}
2 changes: 1 addition & 1 deletion src/kem/kyber/libjade_kyber512_ref/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int libjade_kyber512_ref_enc(uint8_t *ciphertext, uint8_t *shared_secret, const

int libjade_kyber512_ref_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
return jade_kem_kyber_kyber512_amd64_ref_dec(shared_secret, ciphertext, secret_key);
}
}
2 changes: 1 addition & 1 deletion src/kem/kyber/libjade_kyber768_avx2/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int libjade_kyber768_avx2_enc(uint8_t *ciphertext, uint8_t *shared_secret, const

int libjade_kyber768_avx2_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
return jade_kem_kyber_kyber768_amd64_avx2_dec(shared_secret, ciphertext, secret_key);
}
}
2 changes: 1 addition & 1 deletion src/kem/kyber/libjade_kyber768_ref/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ int libjade_kyber768_ref_enc(uint8_t *ciphertext, uint8_t *shared_secret, const

int libjade_kyber768_ref_dec(uint8_t *shared_secret, const uint8_t *ciphertext, const uint8_t *secret_key) {
return jade_kem_kyber_kyber768_amd64_ref_dec(shared_secret, ciphertext, secret_key);
}
}

0 comments on commit d0296d7

Please sign in to comment.