Lines Matching refs:prekey
768 u_char *prekey; in sshkey_prekey_alloc() local
771 if ((prekey = mmap(NULL, len, PROT_READ|PROT_WRITE, in sshkey_prekey_alloc()
775 (void)madvise(prekey, len, MADV_DONTDUMP); in sshkey_prekey_alloc()
777 *prekeyp = prekey; in sshkey_prekey_alloc()
782 sshkey_prekey_free(void *prekey, size_t len) in sshkey_prekey_free() argument
784 if (prekey == NULL) in sshkey_prekey_free()
786 munmap(prekey, len); in sshkey_prekey_free()
1649 u_char *prekey = NULL, *enc = NULL, keyiv[SSH_DIGEST_MAX_LENGTH]; in sshkey_shield_private() local
1670 if ((r = sshkey_prekey_alloc(&prekey, SSHKEY_SHIELD_PREKEY_LEN)) != 0) in sshkey_shield_private()
1672 arc4random_buf(prekey, SSHKEY_SHIELD_PREKEY_LEN); in sshkey_shield_private()
1674 prekey, SSHKEY_SHIELD_PREKEY_LEN, in sshkey_shield_private()
1732 k->shield_prekey = prekey; in sshkey_shield_private()
1734 enc = prekey = NULL; /* transferred */ in sshkey_shield_private()
1749 sshkey_prekey_free(prekey, SSHKEY_SHIELD_PREKEY_LEN); in sshkey_shield_private()