Searched refs:newkeys (Results 1 – 4 of 4) sorted by relevance
398 kex_free_newkeys(struct newkeys *newkeys) in kex_free_newkeys() argument400 if (newkeys == NULL) in kex_free_newkeys()402 if (newkeys->enc.key) { in kex_free_newkeys()403 explicit_bzero(newkeys->enc.key, newkeys->enc.key_len); in kex_free_newkeys()404 free(newkeys->enc.key); in kex_free_newkeys()405 newkeys->enc.key = NULL; in kex_free_newkeys()407 if (newkeys->enc.iv) { in kex_free_newkeys()408 explicit_bzero(newkeys->enc.iv, newkeys->enc.block_size); in kex_free_newkeys()409 free(newkeys->enc.iv); in kex_free_newkeys()410 newkeys->enc.iv = NULL; in kex_free_newkeys()[all …]
116 struct newkeys { struct127 struct newkeys *newkeys[MODE_MAX]; member165 void kex_free_newkeys(struct newkeys *);
180 struct newkeys *newkeys[MODE_MAX]; member295 state->newkeys[MODE_IN] = state->newkeys[MODE_OUT] = NULL; in ssh_packet_set_connection()491 kex_free_newkeys(state->newkeys[mode]); in ssh_packet_close()940 if (state->newkeys[mode] != NULL) { in ssh_set_newkeys()944 enc = &state->newkeys[mode]->enc; in ssh_set_newkeys()945 mac = &state->newkeys[mode]->mac; in ssh_set_newkeys()946 comp = &state->newkeys[mode]->comp; in ssh_set_newkeys()957 free(state->newkeys[mode]); in ssh_set_newkeys()960 if ((state->newkeys[mode] = ssh->kex->newkeys[mode]) == NULL) in ssh_set_newkeys()962 ssh->kex->newkeys[mode] = NULL; in ssh_set_newkeys()[all …]
90 struct newkeys *mm_newkeys_from_blob(u_char *, int);