Home
last modified time | relevance | path

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

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