Reference implementations of PQC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
527 B

  1. #include <stdio.h>
  2. #include "api.h"
  3. #define PASTER(x, y) x##_##y
  4. #define EVALUATOR(x, y) PASTER(x, y)
  5. #define NAMESPACE(fun) EVALUATOR(PQCLEAN_NAMESPACE, fun)
  6. int main() {
  7. printf("{\n");
  8. printf("\t\"CRYPTO_SECRETKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_SECRETKEYBYTES));
  9. printf("\t\"CRYPTO_PUBLICKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_PUBLICKEYBYTES));
  10. printf("\t\"CRYPTO_CIPHERTEXTBYTES\": %u,\n", NAMESPACE(CRYPTO_CIPHERTEXTBYTES));
  11. printf("\t\"CRYPTO_BYTES\": %u\n}\n", NAMESPACE(CRYPTO_BYTES));
  12. }