1#ifndef VANETZA_SECURITY_PERSISTENCE_HPP
2#define VANETZA_SECURITY_PERSISTENCE_HPP
4#include <vanetza/security/ecdsa256.hpp>
5#include <vanetza/security/v2/certificate.hpp>
6#include <vanetza/security/v2/public_key.hpp>
17
18
19
20
21ecdsa256::
KeyPair load_private_key_from_file(
const std::string& key_path);
24
25
26
27
28
29bool save_private_key_pkcs8_der(std::ostream& os,
const ecdsa256::
KeyPair& key_pair);
32
33
34
35
36PublicKey load_public_key_from_file(
const std::string& key_path);
39
40
41
42
43void save_public_key_to_file(
const std::string& key_path,
const PublicKey& public_key);
46
47
48
49
50Certificate load_certificate_from_file(
const std::string& certificate_path);
53
54
55
56
57void save_certificate_to_file(
const std::string& certificate_path,
const Certificate& certificate);
described in TS 103 097 v1.2.1 (2015-06), section 6.1