| Index: host/include/host_key.h
|
| diff --git a/host/include/host_key.h b/host/include/host_key.h
|
| index e7b18155f415ab73142af6b8479c09d79dfb9d5e..018c25d359fc8a546440b07d8fa7d501f980a0cd 100644
|
| --- a/host/include/host_key.h
|
| +++ b/host/include/host_key.h
|
| @@ -30,6 +30,16 @@ VbPrivateKey* PrivateKeyReadPem(const char* filename, uint64_t algorithm);
|
| /* Free a private key. */
|
| void PrivateKeyFree(VbPrivateKey* key);
|
|
|
| +/* Write a private key to a file in .vbprivk format. */
|
| +int PrivateKeyWrite(const char* filename, const VbPrivateKey* key);
|
| +
|
| +/* Read a privake key from a .vbprivk file. Caller owns the returned
|
| + * pointer, and must free it with PrivateKeyFree().
|
| + *
|
| + * Returns NULL if error. */
|
| +VbPrivateKey* PrivateKeyRead(const char* filename);
|
| +
|
| +
|
|
|
| /* Allocate a new public key with space for a [key_size] byte key. */
|
| VbPublicKey* PublicKeyAlloc(uint64_t key_size, uint64_t algorithm,
|
|
|