I cannot use function crypto_core_ed25519_random in iOS, but I can use other functions like sodium_init #1380
Unanswered
wangfenghappy
asked this question in
Q&A
Replies: 1 comment
-
You should just import How did you build the library? Is it a full build or a minimal build? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#import "sodium.h"
#import "crypto_core_ed25519.h"
static void ecdh(void){
int res = sodium_init();
if (res != -1){
NSLog(@"sodium_init success!");
}
//
unsigned char * kd = calloc(32, sizeof(unsigned char));
crypto_core_ed25519_random(kd);
NSLog(@"sodium_init %s", kd);
}
Undefined symbols for architecture x86_64:
"_crypto_core_ed25519_random", referenced from:
Beta Was this translation helpful? Give feedback.
All reactions