Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
keygen.h File Reference

SSH keygen API. More...

#include <zephyr/kernel.h>

Go to the source code of this file.

Enumerations

enum  ssh_host_key_type { SSH_HOST_KEY_TYPE_RSA }
 Types of host keys that can be generated. More...
enum  ssh_host_key_format { SSH_HOST_KEY_FORMAT_DER , SSH_HOST_KEY_FORMAT_PEM }
 Formats that SSH host keys can be exported/imported in. More...

Functions

int ssh_keygen (int key_index, enum ssh_host_key_type key_type, size_t key_size_bits)
 Generate a new SSH host key.
int ssh_keygen_export (int key_index, bool private_key, enum ssh_host_key_format fmt, void *buf, size_t buf_len)
 Export a generated SSH host key.
int ssh_keygen_import (int key_index, bool private_key, enum ssh_host_key_format fmt, const void *buf, size_t buf_len)
 Import an SSH host key.
int ssh_keygen_free (int key_index)
 Free a generated SSH host key.

Detailed Description

SSH keygen API.