| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <string.h> | |||||
| #include <assert.h> | #include <assert.h> | ||||
| #include "../inc/lc6_crypto.h" | #include "../inc/lc6_crypto.h" | ||||
| LC6_USER* lc6user_create(void) { | LC6_USER* lc6user_create(void) { | ||||
| LC6_USER *user = malloc(sizeof(LC6_USER)); | LC6_USER *user = malloc(sizeof(LC6_USER)); | ||||
| assert(user); | |||||
| memset(user, 0, sizeof(LC6_USER)); | |||||
| return lc6crypto_genuserkey(user); | return lc6crypto_genuserkey(user); | ||||
| } | } |