Lines Matching refs:kdf
3051 struct sshbuf *encoded = NULL, *encrypted = NULL, *kdf = NULL; in sshkey_private_to_blob2() local
3069 if ((kdf = sshbuf_new()) == NULL || in sshkey_private_to_blob2()
3090 if ((r = sshbuf_put_string(kdf, salt, SALT_LEN)) != 0 || in sshkey_private_to_blob2()
3091 (r = sshbuf_put_u32(kdf, rounds)) != 0) in sshkey_private_to_blob2()
3105 (r = sshbuf_put_stringb(encoded, kdf)) != 0 || in sshkey_private_to_blob2()
3168 sshbuf_free(kdf); in sshkey_private_to_blob2()
3199 struct sshbuf *kdf = NULL, *decrypted = NULL; in sshkey_parse_private2() local
3266 (r = sshbuf_froms(decoded, &kdf)) != 0 || in sshkey_parse_private2()
3312 if ((r = sshbuf_get_string(kdf, &salt, &slen)) != 0 || in sshkey_parse_private2()
3313 (r = sshbuf_get_u32(kdf, &rounds)) != 0) in sshkey_parse_private2()
3401 sshbuf_free(kdf); in sshkey_parse_private2()