Home | History | Annotate | Download | only in default

Lines Matching defs:sk

304     unsigned char *sk;
316 sk = (unsigned char *) sodium_malloc(crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES);
329 assert(crypto_box_curve25519xchacha20poly1305_keypair(pk, sk) == 0);
331 pk, sk) == 0);
333 pk, sk) == 0);
336 nonce, small_order_p, sk) == -1);
339 nonce, pk, sk) == -1);
341 (m2, out, 0, nonce, pk, sk) == -1);
344 nonce, pk, sk) == 0);
350 assert(crypto_box_curve25519xchacha20poly1305_beforenm(pc, small_order_p, sk) == -1);
351 assert(crypto_box_curve25519xchacha20poly1305_beforenm(pc, pk, sk) == 0);
370 nonce, small_order_p, sk) == -1);
372 nonce, pk, sk) == 0);
374 (m2, out, mac, m_len, nonce, small_order_p, sk) == -1);
376 (m2, out, mac, m_len, nonce, pk, sk) == 0);
398 crypto_box_curve25519xchacha20poly1305_seed_keypair(pk, sk, seed);
401 sodium_bin2hex(hex, sizeof hex, sk, crypto_box_curve25519xchacha20poly1305_SECRETKEYBYTES);
405 sodium_free(sk);