milagro-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-milagro-crypto-c] kealan commented on issue #38: Python wrappers
Date Wed, 14 Aug 2019 13:48:45 GMT
kealan commented on issue #38: Python wrappers
URL: https://github.com/apache/incubator-milagro-crypto-c/issues/38#issuecomment-521253357
 
 
   For the constants you may have to write a c function which you wrap with CFFI. Something
like this in C.
   
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
   #include <time.h>
   #include <amcl/pair_BLS381.h>
   
   int main()
   {
     BIG_384_58 q2;
     BIG_384_58 r2;
   
     printf("BLS381\n");  
     BIG_384_58_rcopy(q2,Modulus_BLS381);
     printf("q (381) = 0x");
     BIG_384_58_output(q2);  
     printf("\n");  
     BIG_384_58_rcopy(r2,CURVE_Order_BLS381);
     printf("r (257) = 0x");
   }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@milagro.apache.org
For additional commands, e-mail: issues-help@milagro.apache.org


Mime
View raw message