Skip to content

Instantly share code, notes, and snippets.

View jmcph4's full-sized avatar

Jack McPherson jmcph4

View GitHub Profile
#include <stdio.h>
#include <gcrypt.h>
int main(void) {
gcry_control(GCRYCTL_DISABLE_SECMEM, 0);
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);
gcry_ctx_t ctx;
gcry_mpi_ec_new(&ctx, NULL, "sm2p256v1");