23 #ifndef NOISE_KEYS_LOADER_H
24 #define NOISE_KEYS_LOADER_H
44 const void *passphrase,
size_t passphrase_len);
47 const void *passphrase,
size_t passphrase_len);
61 const void *passphrase,
size_t passphrase_len,
62 const char *protect_name);
65 const void *passphrase,
size_t passphrase_len,
66 const char *protect_name);
int noise_save_certificate_to_buffer(const Noise_Certificate *cert, NoiseProtobuf *pbuf)
Saves a certificate to a protobuf.
int noise_load_certificate_chain_from_buffer(Noise_CertificateChain **chain, NoiseProtobuf *pbuf)
Loads a certificate chain from a protobuf.
int noise_save_private_key_to_file(const Noise_PrivateKey *key, const char *filename, const void *passphrase, size_t passphrase_len, const char *protect_name)
Saves a private key in encrypted form to a file.
int noise_load_private_key_from_file(Noise_PrivateKey **key, const char *filename, const void *passphrase, size_t passphrase_len)
Loads a private key from a file.
int noise_load_certificate_from_file(Noise_Certificate **cert, const char *filename)
Loads a certificate from a file.
int noise_load_certificate_from_buffer(Noise_Certificate **cert, NoiseProtobuf *pbuf)
Loads a certificate from a protobuf.
int noise_save_certificate_chain_to_buffer(const Noise_CertificateChain *chain, NoiseProtobuf *pbuf)
Saves a certificate chain to a protobuf.
int noise_save_private_key_to_buffer(const Noise_PrivateKey *key, NoiseProtobuf *pbuf, const void *passphrase, size_t passphrase_len, const char *protect_name)
Saves a private key in encrypted form to a protobuf.
int noise_save_certificate_chain_to_file(const Noise_CertificateChain *chain, const char *filename)
Saves a certificate chain to a file.
int noise_load_private_key_from_buffer(Noise_PrivateKey **key, NoiseProtobuf *pbuf, const void *passphrase, size_t passphrase_len)
Loads a private key from a protobuf.
int noise_save_certificate_to_file(const Noise_Certificate *cert, const char *filename)
Saves a certificate to a file.
int noise_load_certificate_chain_from_file(Noise_CertificateChain **chain, const char *filename)
Loads a certificate chain from a file.