Searched refs:kcopy (Results 1 - 2 of 2) sorted by relevance

/external/vboot_reference/host/lib/
H A Dhost_key.c246 VbPublicKey* kcopy; local
250 kcopy = PublicKeyAlloc(key->key_size, 0, 0);
251 if (!kcopy)
253 if (0 != PublicKeyCopy(kcopy, key)) {
254 free(kcopy);
259 rv = WriteFile(filename, kcopy, kcopy->key_offset + kcopy->key_size);
260 free(kcopy);
/external/openssh/
H A Dkrl.c365 struct sshkey *kcopy; local
368 if ((r = sshkey_from_private(key, &kcopy)) != 0)
370 if (sshkey_is_cert(kcopy)) {
371 if ((r = sshkey_drop_cert(kcopy)) != 0) {
372 sshkey_free(kcopy);
376 r = sshkey_to_blob(kcopy, blob, blen);
377 sshkey_free(kcopy);

Completed in 1034 milliseconds