/src/sys/external/isc/libsodium/dist/test/default/ |
box_seed.c | 15 unsigned char sk[32]; local in function:main 18 crypto_box_seed_keypair(pk, sk, seed); 25 printf(",0x%02x", (unsigned int) sk[i]);
|
box_seal.c | 9 unsigned char sk[crypto_box_SECRETKEYBYTES]; local in function:main 16 crypto_box_keypair(pk, sk); 27 if (crypto_box_seal_open(m2, c, c_len, pk, sk) != 0) { 33 printf("%d\n", crypto_box_seal_open(m, c, 0U, pk, sk)); 34 printf("%d\n", crypto_box_seal_open(m, c, c_len - 1U, pk, sk)); 35 printf("%d\n", crypto_box_seal_open(m, c, c_len, sk, pk));
|
sign.c | 11 const unsigned char sk[crypto_sign_SEEDBYTES]; member in struct:TestData_ 1077 unsigned char sk[crypto_sign_SECRETKEYBYTES]; local in function:main [all...] |
xchacha20.c | 304 unsigned char *sk; local in function:tv_box_xchacha20poly1305 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) [all...] |
/src/lib/libtelnet/ |
pk.c | 182 BIGNUM *sk = BN_new(); local in function:genkeys 193 (void)BN_zero(sk); 202 BN_mul(sk, tmp, sk, ctx); 203 BN_add(sk, tmp, sk); 207 BN_div(tmp, sk, sk, modulus, ctx); 208 BN_mod_exp(pk, root, sk, modulus, ctx); 210 xkey = BN_bn2hex(sk); [all...] |
/src/sys/net/npf/ |
npf_connkey.c | 203 const uint32_t *sk = skey->ck_key; local in function:npf_connkey_copy 210 dk[0] = sk[1]; 211 dk[1] = (sk[1] >> 16) | (sk[1] << 16); 212 memcpy(&dk[2], &sk[2 + nwords], alen); 213 memcpy(&dk[2 + nwords], &sk[2], alen); 215 memcpy(dk, sk, klen);
|
/src/sys/dist/pf/net/ |
if_pfsync.c | 250 struct pf_state_key *sk = NULL; local in function:pfsync_insert_net_state 289 if ((sk = pf_alloc_state_key(st)) == NULL) { 302 pool_put(&pf_state_key_pl, sk); 313 pf_state_host_ntoh(&sp->lan, &sk->lan); 314 pf_state_host_ntoh(&sp->gwy, &sk->gwy); 315 pf_state_host_ntoh(&sp->ext, &sk->ext); 324 sk->af = sp->af; 325 sk->proto = sp->proto; 326 sk->direction = sp->direction; 357 struct pf_state_key *sk; local in function:pfsync_input 1129 struct pf_state_key *sk = st->state_key; local in function:pfsync_pack_state [all...] |
pf_ioctl.c | 1089 pf_state_export(struct pfsync_state *sp, struct pf_state_key *sk, 1096 sp->lan.addr = sk->lan.addr; 1097 sp->lan.port = sk->lan.port; 1098 sp->gwy.addr = sk->gwy.addr; 1099 sp->gwy.port = sk->gwy.port; 1100 sp->ext.addr = sk->ext.addr; 1101 sp->ext.port = sk->ext.port; 1102 sp->proto = sk->proto; 1103 sp->af = sk->af; 1104 sp->direction = sk->direction 1179 struct pf_state_key *sk; local in function:pf_state_add 1896 struct pf_state_key *sk; local in function:pfioctl 2079 struct pf_state_key *sk; local in function:pfioctl [all...] |
pf.c | 292 #define STATE_TRANSLATE(sk) \ 293 (sk)->lan.addr.addr32[0] != (sk)->gwy.addr.addr32[0] || \ 294 ((sk)->af == AF_INET6 && \ 295 ((sk)->lan.addr.addr32[1] != (sk)->gwy.addr.addr32[1] || \ 296 (sk)->lan.addr.addr32[2] != (sk)->gwy.addr.addr32[2] || \ 297 (sk)->lan.addr.addr32[3] != (sk)->gwy.addr.addr32[3])) || 586 struct pf_state_key *sk; local in function:pf_find_state 616 struct pf_state_key *sk; local in function:pf_find_state_all 734 struct pf_state_key *sk; local in function:pf_src_connlimit 843 struct pf_state_key *sk = s->state_key; local in function:pf_stateins_err 1262 struct pf_state_key *sk = s->state_key; local in function:pf_print_state 3037 struct pf_state_key *sk = s->state_key; local in function:pf_detach_state 3058 struct pf_state_key *sk; local in function:pf_alloc_state_key 3483 struct pf_state_key *sk = NULL; local in function:pf_test_rule 5718 struct pf_state_key *sk = NULL; local in function:pf_test 6078 struct pf_state_key *sk = NULL; local in function:pf_test6 [all...] |
/src/dist/pf/sbin/pfctl/ |
pfctl_optimize.c | 1008 struct pf_skip_step *sk, *next; local in function:remove_from_skipsteps 1013 sk = TAILQ_FIRST(&block->sb_skipsteps[i]); 1014 if (sk == NULL || sk == active_list || sk->ps_count <= 1) 1018 TAILQ_FOREACH(p2, &sk->ps_rules, por_skip_entry[i]) 1020 TAILQ_REMOVE(&sk->ps_rules, p2, 1023 sk->ps_count--; 1026 } while (!found && (sk = TAILQ_NEXT(sk, ps_entry))) [all...] |
/src/sbin/cgdconfig/ |
cgdconfig.c | 454 struct sharedkey *sk = NULL; local in function:getkey 465 LIST_FOREACH(sk, &sharedkeys, list) { 466 if (kg->kg_sharedalg == sk->alg && 467 kg->kg_sharedlen == bits_len(sk->key) && 468 strcmp(id, string_tocharstar(sk->id)) == 0) 471 if (sk) { 472 tmp = sk->key; 514 assert(sk == NULL); 515 sk = ecalloc(1, sizeof(*sk)); 834 struct sharedkey *sk, *sk1; local in function:configure [all...] |