Lines Matching refs:skck
53 struct skck { struct
73 #define SKCK_LEN(keylen) ALIGN8(sizeof (struct skck) + KEYLEN(keylen))
861 struct skck *skck; in cache_insert_ch() local
871 if (common.deskeyarray_len > sizeof (skck->common)/sizeof (des_block) || in cache_insert_ch()
891 skck = MOVE_ADDR(&(cd->public), DHKEYSIZE(pk)); in cache_insert_ch()
893 skck->common[i] = common.deskeyarray_val[i]; in cache_insert_ch()
895 skck->verifier = key; in cache_insert_ch()
896 memcpy(&(skck->secret), sk, DHKEYSIZE(sk)); in cache_insert_ch()
900 err = cbc_crypt(key.c, (char *)skck, SKCK_LEN(newch->keylen), in cache_insert_ch()
925 struct skck *skck, *skck_cd; in copy_cl_item() local
935 if ((skck = malloc(SKCK_LEN(ch->keylen))) == 0) { in copy_cl_item()
942 memcpy(skck, skck_cd, SKCK_LEN(ch->keylen)); in copy_cl_item()
944 err = cbc_crypt(key.c, (char *)skck, SKCK_LEN(ch->keylen), in copy_cl_item()
948 free(skck); in copy_cl_item()
951 if (memcmp(key.c, skck->verifier.c, sizeof (skck->verifier.c)) != 0) { in copy_cl_item()
953 free(skck); in copy_cl_item()
970 bin2hex(skck->secret.key, (u_char *)cl->secret->keybuf3_val, in copy_cl_item()
971 skck->secret.length); in copy_cl_item()
972 cl->secret->keybuf3_len = skck->secret.length*2+1; in copy_cl_item()
973 cl->deskey.deskeyarray_len = sizeof (skck->common)/sizeof (des_block); in copy_cl_item()
975 cl->deskey.deskeyarray_val[i] = skck->common[i]; in copy_cl_item()
981 free(skck); in copy_cl_item()