Lines Matching defs:pk
303 unsigned char *pk;
315 pk = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES);
329 assert(crypto_box_curve25519xchacha20poly1305_keypair(pk, sk) == 0);
331 pk, sk) == 0);
333 pk, sk) == 0);
339 nonce, pk, sk) == -1);
341 (m2, out, 0, nonce, pk, sk) == -1);
344 nonce, pk, sk) == 0);
351 assert(crypto_box_curve25519xchacha20poly1305_beforenm(pc, pk, sk) == 0);
372 nonce, pk, sk) == 0);
376 (m2, out, mac, m_len, nonce, pk, sk) == 0);
398 crypto_box_curve25519xchacha20poly1305_seed_keypair(pk, sk, seed);
399 sodium_bin2hex(hex, sizeof hex, pk, crypto_box_curve25519xchacha20poly1305_PUBLICKEYBYTES);
406 sodium_free(pk);