Home
last modified time | relevance | path

Searched refs:newkeys (Results 1 – 4 of 4) sorted by relevance

/external/openssh/
Dkex.c398 kex_free_newkeys(struct newkeys *newkeys) in kex_free_newkeys() argument
400 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 …]
Dkex.h116 struct newkeys { struct
127 struct newkeys *newkeys[MODE_MAX]; member
165 void kex_free_newkeys(struct newkeys *);
Dpacket.c180 struct newkeys *newkeys[MODE_MAX]; member
295 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 …]
Dmonitor_wrap.h90 struct newkeys *mm_newkeys_from_blob(u_char *, int);