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.
16 lines
393 B
16 lines
393 B
#include <stdio.h> |
|
#include "../src/secure_channel.h" |
|
|
|
int main() { |
|
struct SC_MYKEYS keys; |
|
sc_generate_keypair(&keys); |
|
|
|
printf("Public key generated: "); |
|
for(int i=0; i<8; i++) printf("%02x ", keys.public_key[i]); |
|
printf("...\n"); |
|
|
|
int valid = uECC_valid_public_key(keys.public_key, uECC_secp256r1()); |
|
printf("Key valid: %d\n", valid); |
|
|
|
return 0; |
|
}
|
|
|