Home
last modified time | relevance | path

Searched refs:newbie (Results 1 – 11 of 11) sorted by relevance

/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/
H A Dipsecalgs.c563 struct ipsecalgent newbie; in new_alg() local
600 newbie.a_proto_num = proto_number; in new_alg()
601 newbie.a_alg_num = alg_number; in new_alg()
602 newbie.a_key_increment = increment; in new_alg()
603 newbie.a_mech_name = mech_name; in new_alg()
604 newbie.a_alg_flags = alg_flags; in new_alg()
613 newbie.a_alg_flags |= ALG_FLAG_VALID; in new_alg()
621 newbie.a_alg_flags |= alg_flags; in new_alg()
623 newbie.a_names = NULL; in new_alg()
626 newbie.a_names = realloc(newbie.a_names, in new_alg()
[all …]
/titanic_44/usr/src/uts/common/inet/ip/
H A Dsadb.c374 ipsa_t *newbie; in sadb_makelarvalassoc() local
380 newbie = (ipsa_t *)kmem_zalloc(sizeof (ipsa_t), KM_NOSLEEP); in sadb_makelarvalassoc()
381 if (newbie == NULL) { in sadb_makelarvalassoc()
387 newbie->ipsa_spi = spi; in sadb_makelarvalassoc()
388 newbie->ipsa_netstack = ns; /* No netstack_hold */ in sadb_makelarvalassoc()
394 IPSA_COPY_ADDR(newbie->ipsa_srcaddr, src, addrfam); in sadb_makelarvalassoc()
395 IPSA_COPY_ADDR(newbie->ipsa_dstaddr, dst, addrfam); in sadb_makelarvalassoc()
397 newbie->ipsa_addrfam = addrfam; in sadb_makelarvalassoc()
402 mutex_init(&newbie->ipsa_lock, NULL, MUTEX_DEFAULT, NULL); in sadb_makelarvalassoc()
403 newbie->ipsa_state = IPSA_STATE_LARVAL; in sadb_makelarvalassoc()
[all …]
H A Dipsecah.c1899 ipsa_t *newbie, *target; in ah_getspi() local
1916 newbie = sadb_getspi(ksi, newspi, &diagnostic, in ah_getspi()
1919 if (newbie == NULL) { in ah_getspi()
1923 } else if (newbie == (ipsa_t *)-1) { in ah_getspi()
1935 if (newbie->ipsa_addrfam == AF_INET6) { in ah_getspi()
1937 *(uint32_t *)(newbie->ipsa_dstaddr)); in ah_getspi()
1939 newbie->ipsa_spi); in ah_getspi()
1942 *(uint32_t *)(newbie->ipsa_dstaddr)); in ah_getspi()
1944 newbie->ipsa_spi); in ah_getspi()
1957 target = ipsec_getassocbyspi(outbound, newbie->ipsa_spi, in ah_getspi()
[all …]
H A Dipsecesp.c1364 ipsa_t *newbie, *target; in esp_getspi() local
1381 newbie = sadb_getspi(ksi, newspi, &diagnostic, in esp_getspi()
1384 if (newbie == NULL) { in esp_getspi()
1388 } else if (newbie == (ipsa_t *)-1) { in esp_getspi()
1400 if (newbie->ipsa_addrfam == AF_INET6) { in esp_getspi()
1402 *(uint32_t *)(newbie->ipsa_dstaddr)); in esp_getspi()
1404 newbie->ipsa_spi); in esp_getspi()
1406 ASSERT(newbie->ipsa_addrfam == AF_INET); in esp_getspi()
1408 *(uint32_t *)(newbie->ipsa_dstaddr)); in esp_getspi()
1410 newbie->ipsa_spi); in esp_getspi()
[all …]
H A Dspd.c6033 ipsec_tun_pol_t *newbie, *existing; in create_tunnel_policy() local
6037 newbie = kmem_zalloc(sizeof (*newbie), KM_NOSLEEP); in create_tunnel_policy()
6038 if (newbie == NULL) { in create_tunnel_policy()
6042 if (!ipsec_fragcache_init(&newbie->itp_fragcache)) { in create_tunnel_policy()
6043 kmem_free(newbie, sizeof (*newbie)); in create_tunnel_policy()
6048 (void) strncpy(newbie->itp_name, name, LIFNAMSIZ); in create_tunnel_policy()
6052 newbie, &where); in create_tunnel_policy()
6054 itp_free(newbie, ns); in create_tunnel_policy()
6061 newbie->itp_refcnt = 2; /* One for the caller, one for the tree. */ in create_tunnel_policy()
6062 newbie->itp_next_policy_index = 1; in create_tunnel_policy()
[all …]
/titanic_44/usr/src/lib/libipsecutil/common/
H A Dalgs.c436 ipsecalg_exists(struct ipsecalgent *newbie, ipsec_proto_t *proto) in ipsecalg_exists() argument
446 if (curalg->a_alg_num != newbie->a_alg_num) in ipsecalg_exists()
449 if (curalg->a_key_increment != newbie->a_key_increment) in ipsecalg_exists()
452 if (strcmp(curalg->a_mech_name, newbie->a_mech_name) != 0) in ipsecalg_exists()
456 newbiename = newbie->a_names; in ipsecalg_exists()
466 if (!sizes_match(curalg->a_block_sizes, newbie->a_block_sizes)) in ipsecalg_exists()
469 if (!sizes_match(curalg->a_key_sizes, newbie->a_key_sizes)) in ipsecalg_exists()
484 addipsecalg(struct ipsecalgent *newbie, uint_t flags) in addipsecalg() argument
494 newbie->a_proto_num, B_TRUE)) == NULL) in addipsecalg()
501 if (ipsecalg_exists(newbie, current_proto)) in addipsecalg()
[all …]
/titanic_44/usr/src/common/crypto/blowfish/
H A Dblowfish_impl.c619 keysched_t *newbie = keysched; in blowfish_init_keysched() local
620 uint32_t *P = newbie->ksch_P; in blowfish_init_keysched()
621 uint32_t *S = newbie->ksch_S; in blowfish_init_keysched()
664 (void) blowfish_encrypt_block(newbie, (uint8_t *)tmpblock, in blowfish_init_keysched()
672 (void) blowfish_encrypt_block(newbie, (uint8_t *)tmpblock, in blowfish_init_keysched()
/titanic_44/usr/src/lib/libnsl/ipsec/
H A Dalgs.c695 char **newbie; in duplicate_strarr() local
705 newbie = calloc(swalker - orig + 1, sizeof (char *)); in duplicate_strarr()
707 if (newbie != NULL) { in duplicate_strarr()
710 newbie[i] = strdup(orig[i]); in duplicate_strarr()
711 if (newbie[i] == NULL) { in duplicate_strarr()
712 for (swalker = newbie; *swalker != NULL; in duplicate_strarr()
715 free(newbie); in duplicate_strarr()
721 return (newbie); in duplicate_strarr()
/titanic_44/usr/src/common/crypto/aes/
H A Daes_impl.c1571 aes_key_t *newbie = keysched; in aes_init_keysched() local
1580 newbie->nr = 10; in aes_init_keysched()
1584 newbie->nr = 12; in aes_init_keysched()
1588 newbie->nr = 14; in aes_init_keysched()
1622 aes_setupkeys(newbie, keyarr.ka32, keyBits); in aes_init_keysched()
/titanic_44/usr/src/uts/common/des/
H A Ddes_crypt.c389 init_keysched(crypto_key_t *key, void *newbie, des_strength_t strength) in init_keysched() argument
415 des_init_keysched(corrected_key, strength, newbie); in init_keysched()
/titanic_44/usr/src/uts/common/crypto/io/
H A Daes.c302 init_keysched(crypto_key_t *key, void *newbie) in init_keysched() argument
322 aes_init_keysched(key->ck_data, key->ck_length, newbie); in init_keysched()