Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use ntru_pub_len() to determine length of public key

  • Loading branch information...
commit e6b10a54155e713d5baefbb49d52c2bd27a15369 1 parent f2facf9
@tbuktu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -46,7 +46,7 @@ Run ```make``` to build the library, or ```make test``` to run unit tests.
printf("decrypt fail\n");
/* export key to char array */
- char pub_arr[ntru_enc_len(params.N, params.q)];
+ char pub_arr[ntru_pub_len(params.N, params.q)];
ntru_export_pub(&kp.pub, pub_arr);
/* import key from char array */
Please sign in to comment.
Something went wrong with that request. Please try again.