Noise-C
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
certificate.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Southern Storm Software, Pty Ltd.
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included
12  * in all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20  * DEALINGS IN THE SOFTWARE.
21  */
22 
23 #ifndef __NOISE_CERTIFICATE_H__
24 #define __NOISE_CERTIFICATE_H__
25 
26 #include <noise/protobufs.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
42 
45 int Noise_Certificate_write(NoiseProtobuf *pbuf, int tag, const Noise_Certificate *obj);
46 int Noise_Certificate_read(NoiseProtobuf *pbuf, int tag, Noise_Certificate **obj);
50 int Noise_Certificate_set_version(Noise_Certificate *obj, uint32_t value);
61 
72 
75 int Noise_SubjectInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_SubjectInfo *obj);
76 int Noise_SubjectInfo_read(NoiseProtobuf *pbuf, int tag, Noise_SubjectInfo **obj);
79 const char *Noise_SubjectInfo_get_id(const Noise_SubjectInfo *obj);
81 int Noise_SubjectInfo_set_id(Noise_SubjectInfo *obj, const char *value, size_t size);
84 const char *Noise_SubjectInfo_get_name(const Noise_SubjectInfo *obj);
86 int Noise_SubjectInfo_set_name(Noise_SubjectInfo *obj, const char *value, size_t size);
89 const char *Noise_SubjectInfo_get_role(const Noise_SubjectInfo *obj);
91 int Noise_SubjectInfo_set_role(Noise_SubjectInfo *obj, const char *value, size_t size);
103 int Noise_SubjectInfo_insert_meta(Noise_SubjectInfo *obj, size_t index, Noise_MetaInfo *value);
104 
107 int Noise_PublicKeyInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_PublicKeyInfo *obj);
113 int Noise_PublicKeyInfo_set_algorithm(Noise_PublicKeyInfo *obj, const char *value, size_t size);
116 const void *Noise_PublicKeyInfo_get_key(const Noise_PublicKeyInfo *obj);
118 int Noise_PublicKeyInfo_set_key(Noise_PublicKeyInfo *obj, const void *value, size_t size);
119 
122 int Noise_MetaInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_MetaInfo *obj);
123 int Noise_MetaInfo_read(NoiseProtobuf *pbuf, int tag, Noise_MetaInfo **obj);
126 const char *Noise_MetaInfo_get_name(const Noise_MetaInfo *obj);
128 int Noise_MetaInfo_set_name(Noise_MetaInfo *obj, const char *value, size_t size);
131 const char *Noise_MetaInfo_get_value(const Noise_MetaInfo *obj);
133 int Noise_MetaInfo_set_value(Noise_MetaInfo *obj, const char *value, size_t size);
134 
137 int Noise_Signature_write(NoiseProtobuf *pbuf, int tag, const Noise_Signature *obj);
138 int Noise_Signature_read(NoiseProtobuf *pbuf, int tag, Noise_Signature **obj);
141 const char *Noise_Signature_get_id(const Noise_Signature *obj);
143 int Noise_Signature_set_id(Noise_Signature *obj, const char *value, size_t size);
146 const char *Noise_Signature_get_name(const Noise_Signature *obj);
148 int Noise_Signature_set_name(Noise_Signature *obj, const char *value, size_t size);
157 int Noise_Signature_set_hash_algorithm(Noise_Signature *obj, const char *value, size_t size);
164 const void *Noise_Signature_get_signature(const Noise_Signature *obj);
166 int Noise_Signature_set_signature(Noise_Signature *obj, const void *value, size_t size);
167 
170 int Noise_ExtraSignedInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_ExtraSignedInfo *obj);
176 int Noise_ExtraSignedInfo_set_nonce(Noise_ExtraSignedInfo *obj, const void *value, size_t size);
181 int Noise_ExtraSignedInfo_set_valid_from(Noise_ExtraSignedInfo *obj, const char *value, size_t size);
186 int Noise_ExtraSignedInfo_set_valid_to(Noise_ExtraSignedInfo *obj, const char *value, size_t size);
193 
206 int Noise_EncryptedPrivateKey_set_algorithm(Noise_EncryptedPrivateKey *obj, const char *value, size_t size);
211 int Noise_EncryptedPrivateKey_set_salt(Noise_EncryptedPrivateKey *obj, const void *value, size_t size);
220 int Noise_EncryptedPrivateKey_set_encrypted_data(Noise_EncryptedPrivateKey *obj, const void *value, size_t size);
221 
224 int Noise_PrivateKey_write(NoiseProtobuf *pbuf, int tag, const Noise_PrivateKey *obj);
225 int Noise_PrivateKey_read(NoiseProtobuf *pbuf, int tag, Noise_PrivateKey **obj);
228 const char *Noise_PrivateKey_get_id(const Noise_PrivateKey *obj);
230 int Noise_PrivateKey_set_id(Noise_PrivateKey *obj, const char *value, size_t size);
233 const char *Noise_PrivateKey_get_name(const Noise_PrivateKey *obj);
235 int Noise_PrivateKey_set_name(Noise_PrivateKey *obj, const char *value, size_t size);
238 const char *Noise_PrivateKey_get_role(const Noise_PrivateKey *obj);
240 int Noise_PrivateKey_set_role(Noise_PrivateKey *obj, const char *value, size_t size);
252 int Noise_PrivateKey_insert_meta(Noise_PrivateKey *obj, size_t index, Noise_MetaInfo *value);
253 
256 int Noise_PrivateKeyInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_PrivateKeyInfo *obj);
262 int Noise_PrivateKeyInfo_set_algorithm(Noise_PrivateKeyInfo *obj, const char *value, size_t size);
265 const void *Noise_PrivateKeyInfo_get_key(const Noise_PrivateKeyInfo *obj);
267 int Noise_PrivateKeyInfo_set_key(Noise_PrivateKeyInfo *obj, const void *value, size_t size);
268 
269 #ifdef __cplusplus
270 };
271 #endif
272 
273 #endif
int Noise_PrivateKey_add_meta(Noise_PrivateKey *obj, Noise_MetaInfo **value)
Definition: certificate.c:2403
const char * Noise_SubjectInfo_get_id(const Noise_SubjectInfo *obj)
Definition: certificate.c:591
size_t Noise_PrivateKey_get_size_name(const Noise_PrivateKey *obj)
Definition: certificate.c:2243
int Noise_SubjectInfo_set_role(Noise_SubjectInfo *obj, const char *value, size_t size)
Definition: certificate.c:689
size_t Noise_Certificate_count_signatures(const Noise_Certificate *obj)
Definition: certificate.c:295
int Noise_PrivateKey_clear_name(Noise_PrivateKey *obj)
Definition: certificate.c:2222
int Noise_PublicKeyInfo_has_algorithm(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:911
const char * Noise_Signature_get_hash_algorithm(const Noise_Signature *obj)
Definition: certificate.c:1395
int Noise_CertificateChain_clear_certs(Noise_CertificateChain *obj)
Definition: certificate.c:405
int Noise_Signature_clear_extra_signed_info(Noise_Signature *obj)
Definition: certificate.c:1423
Noise_Signature * Noise_Certificate_get_at_signatures(const Noise_Certificate *obj, size_t index)
Definition: certificate.c:300
int Noise_CertificateChain_read(NoiseProtobuf *pbuf, int tag, Noise_CertificateChain **obj)
Definition: certificate.c:369
Noise_MetaInfo * Noise_PrivateKey_get_at_meta(const Noise_PrivateKey *obj, size_t index)
Definition: certificate.c:2395
uint32_t Noise_Certificate_get_version(const Noise_Certificate *obj)
Definition: certificate.c:225
const void * Noise_Signature_get_signature(const Noise_Signature *obj)
Definition: certificate.c:1475
int Noise_Signature_has_name(const Noise_Signature *obj)
Definition: certificate.c:1310
int Noise_Signature_has_id(const Noise_Signature *obj)
Definition: certificate.c:1266
int Noise_SubjectInfo_set_name(Noise_SubjectInfo *obj, const char *value, size_t size)
Definition: certificate.c:645
int Noise_EncryptedPrivateKey_read(NoiseProtobuf *pbuf, int tag, Noise_EncryptedPrivateKey **obj)
Definition: certificate.c:1830
const char * Noise_PublicKeyInfo_get_algorithm(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:916
size_t Noise_PrivateKeyInfo_get_size_algorithm(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2524
int Noise_PrivateKeyInfo_set_key(Noise_PrivateKeyInfo *obj, const void *value, size_t size)
Definition: certificate.c:2573
int Noise_PublicKeyInfo_new(Noise_PublicKeyInfo **obj)
Definition: certificate.c:827
int Noise_PrivateKey_set_role(Noise_PrivateKey *obj, const char *value, size_t size)
Definition: certificate.c:2292
int Noise_Certificate_clear_subject(Noise_Certificate *obj)
Definition: certificate.c:239
const void * Noise_EncryptedPrivateKey_get_salt(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1970
int Noise_PrivateKey_has_role(const Noise_PrivateKey *obj)
Definition: certificate.c:2277
int Noise_SubjectInfo_has_meta(const Noise_SubjectInfo *obj)
Definition: certificate.c:782
int Noise_PrivateKey_write(NoiseProtobuf *pbuf, int tag, const Noise_PrivateKey *obj)
Definition: certificate.c:2096
int Noise_SubjectInfo_insert_meta(Noise_SubjectInfo *obj, size_t index, Noise_MetaInfo *value)
Definition: certificate.c:820
int Noise_PrivateKey_set_name(Noise_PrivateKey *obj, const char *value, size_t size)
Definition: certificate.c:2248
const void * Noise_PrivateKeyInfo_get_key(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2563
int Noise_SubjectInfo_read(NoiseProtobuf *pbuf, int tag, Noise_SubjectInfo **obj)
Definition: certificate.c:513
int Noise_MetaInfo_has_value(const Noise_MetaInfo *obj)
Definition: certificate.c:1115
int Noise_PrivateKey_clear_meta(Noise_PrivateKey *obj)
Definition: certificate.c:2370
int Noise_Signature_get_new_signing_key(Noise_Signature *obj, Noise_PublicKeyInfo **value)
Definition: certificate.c:1363
Noise_ExtraSignedInfo * Noise_Signature_get_extra_signed_info(const Noise_Signature *obj)
Definition: certificate.c:1438
uint32_t Noise_EncryptedPrivateKey_get_iterations(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2011
int Noise_Certificate_clear_signatures(Noise_Certificate *obj)
Definition: certificate.c:275
size_t Noise_CertificateChain_count_certs(const Noise_CertificateChain *obj)
Definition: certificate.c:425
int Noise_MetaInfo_free(Noise_MetaInfo *obj)
Definition: certificate.c:997
int Noise_EncryptedPrivateKey_has_version(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1891
int Noise_PublicKeyInfo_read(NoiseProtobuf *pbuf, int tag, Noise_PublicKeyInfo **obj)
Definition: certificate.c:860
int Noise_Signature_set_signature(Noise_Signature *obj, const void *value, size_t size)
Definition: certificate.c:1485
int Noise_MetaInfo_set_name(Noise_MetaInfo *obj, const char *value, size_t size)
Definition: certificate.c:1086
const char * Noise_MetaInfo_get_name(const Noise_MetaInfo *obj)
Definition: certificate.c:1076
size_t Noise_ExtraSignedInfo_get_size_valid_to(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1707
int Noise_Signature_clear_hash_algorithm(Noise_Signature *obj)
Definition: certificate.c:1379
int Noise_PrivateKey_has_id(const Noise_PrivateKey *obj)
Definition: certificate.c:2189
int Noise_EncryptedPrivateKey_has_iterations(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2006
int Noise_EncryptedPrivateKey_has_salt(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1965
int Noise_Certificate_free(Noise_Certificate *obj)
Definition: certificate.c:138
int Noise_ExtraSignedInfo_set_valid_to(Noise_ExtraSignedInfo *obj, const char *value, size_t size)
Definition: certificate.c:1712
int Noise_Signature_clear_name(Noise_Signature *obj)
Definition: certificate.c:1299
int Noise_PrivateKeyInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2450
int Noise_Signature_read(NoiseProtobuf *pbuf, int tag, Noise_Signature **obj)
Definition: certificate.c:1193
const char * Noise_Signature_get_id(const Noise_Signature *obj)
Definition: certificate.c:1271
size_t Noise_PublicKeyInfo_get_size_algorithm(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:921
int Noise_PrivateKey_insert_keys(Noise_PrivateKey *obj, size_t index, Noise_PrivateKeyInfo *value)
Definition: certificate.c:2363
const char * Noise_PrivateKey_get_id(const Noise_PrivateKey *obj)
Definition: certificate.c:2194
int Noise_Signature_get_new_extra_signed_info(Noise_Signature *obj, Noise_ExtraSignedInfo **value)
Definition: certificate.c:1443
int Noise_Signature_write(NoiseProtobuf *pbuf, int tag, const Noise_Signature *obj)
Definition: certificate.c:1172
int Noise_SubjectInfo_clear_role(Noise_SubjectInfo *obj)
Definition: certificate.c:663
Noise_MetaInfo * Noise_SubjectInfo_get_at_meta(const Noise_SubjectInfo *obj, size_t index)
Definition: certificate.c:792
int Noise_PrivateKeyInfo_read(NoiseProtobuf *pbuf, int tag, Noise_PrivateKeyInfo **obj)
Definition: certificate.c:2463
int Noise_Certificate_has_signatures(const Noise_Certificate *obj)
Definition: certificate.c:290
int Noise_ExtraSignedInfo_read(NoiseProtobuf *pbuf, int tag, Noise_ExtraSignedInfo **obj)
Definition: certificate.c:1545
int Noise_ExtraSignedInfo_insert_meta(Noise_ExtraSignedInfo *obj, size_t index, Noise_MetaInfo *value)
Definition: certificate.c:1783
size_t Noise_PrivateKey_count_meta(const Noise_PrivateKey *obj)
Definition: certificate.c:2390
size_t Noise_MetaInfo_get_size_name(const Noise_MetaInfo *obj)
Definition: certificate.c:1081
size_t Noise_Signature_get_size_hash_algorithm(const Noise_Signature *obj)
Definition: certificate.c:1400
int Noise_SubjectInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_SubjectInfo *obj)
Definition: certificate.c:493
int Noise_PrivateKeyInfo_set_algorithm(Noise_PrivateKeyInfo *obj, const char *value, size_t size)
Definition: certificate.c:2529
size_t Noise_PublicKeyInfo_get_size_key(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:965
int Noise_CertificateChain_insert_certs(Noise_CertificateChain *obj, size_t index, Noise_Certificate *value)
Definition: certificate.c:458
int Noise_Certificate_clear_version(Noise_Certificate *obj)
Definition: certificate.c:211
size_t Noise_PrivateKeyInfo_get_size_key(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2568
Noise_PublicKeyInfo * Noise_Signature_get_signing_key(const Noise_Signature *obj)
Definition: certificate.c:1358
size_t Noise_SubjectInfo_count_keys(const Noise_SubjectInfo *obj)
Definition: certificate.c:727
int Noise_Signature_has_extra_signed_info(const Noise_Signature *obj)
Definition: certificate.c:1433
int Noise_PrivateKey_new(Noise_PrivateKey **obj)
Definition: certificate.c:2068
int Noise_PublicKeyInfo_has_key(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:955
int Noise_ExtraSignedInfo_clear_valid_to(Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1686
size_t Noise_PrivateKey_get_size_role(const Noise_PrivateKey *obj)
Definition: certificate.c:2287
int Noise_PrivateKey_set_id(Noise_PrivateKey *obj, const char *value, size_t size)
Definition: certificate.c:2204
int Noise_SubjectInfo_insert_keys(Noise_SubjectInfo *obj, size_t index, Noise_PublicKeyInfo *value)
Definition: certificate.c:760
int Noise_PrivateKey_has_name(const Noise_PrivateKey *obj)
Definition: certificate.c:2233
size_t Noise_Signature_get_size_signature(const Noise_Signature *obj)
Definition: certificate.c:1480
int Noise_Signature_clear_signature(Noise_Signature *obj)
Definition: certificate.c:1459
int Noise_EncryptedPrivateKey_set_iterations(Noise_EncryptedPrivateKey *obj, uint32_t value)
Definition: certificate.c:2016
int Noise_PrivateKeyInfo_free(Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2440
int Noise_EncryptedPrivateKey_set_encrypted_data(Noise_EncryptedPrivateKey *obj, const void *value, size_t size)
Definition: certificate.c:2051
Noise_SubjectInfo * Noise_Certificate_get_subject(const Noise_Certificate *obj)
Definition: certificate.c:254
int Noise_ExtraSignedInfo_add_meta(Noise_ExtraSignedInfo *obj, Noise_MetaInfo **value)
Definition: certificate.c:1763
int Noise_SubjectInfo_clear_id(Noise_SubjectInfo *obj)
Definition: certificate.c:575
uint32_t Noise_EncryptedPrivateKey_get_version(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1896
int Noise_Signature_free(Noise_Signature *obj)
Definition: certificate.c:1158
int Noise_ExtraSignedInfo_set_valid_from(Noise_ExtraSignedInfo *obj, const char *value, size_t size)
Definition: certificate.c:1668
int Noise_PrivateKey_insert_meta(Noise_PrivateKey *obj, size_t index, Noise_MetaInfo *value)
Definition: certificate.c:2423
int Noise_PublicKeyInfo_clear_key(Noise_PublicKeyInfo *obj)
Definition: certificate.c:944
const char * Noise_Signature_get_name(const Noise_Signature *obj)
Definition: certificate.c:1315
int Noise_ExtraSignedInfo_has_valid_to(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1697
int Noise_PublicKeyInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_PublicKeyInfo *obj)
Definition: certificate.c:847
int Noise_SubjectInfo_has_id(const Noise_SubjectInfo *obj)
Definition: certificate.c:586
int Noise_EncryptedPrivateKey_clear_salt(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1954
int Noise_SubjectInfo_clear_meta(Noise_SubjectInfo *obj)
Definition: certificate.c:767
int Noise_EncryptedPrivateKey_has_encrypted_data(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2036
size_t Noise_ExtraSignedInfo_get_size_nonce(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1620
int Noise_Certificate_insert_signatures(Noise_Certificate *obj, size_t index, Noise_Signature *value)
Definition: certificate.c:328
size_t Noise_Signature_get_size_name(const Noise_Signature *obj)
Definition: certificate.c:1320
const char * Noise_ExtraSignedInfo_get_valid_from(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1658
int Noise_EncryptedPrivateKey_clear_iterations(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1997
int Noise_CertificateChain_free(Noise_CertificateChain *obj)
Definition: certificate.c:345
int Noise_EncryptedPrivateKey_free(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1800
int Noise_EncryptedPrivateKey_clear_version(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1882
int Noise_CertificateChain_add_certs(Noise_CertificateChain *obj, Noise_Certificate **value)
Definition: certificate.c:438
int Noise_Certificate_has_version(const Noise_Certificate *obj)
Definition: certificate.c:220
int Noise_PrivateKey_add_keys(Noise_PrivateKey *obj, Noise_PrivateKeyInfo **value)
Definition: certificate.c:2343
int Noise_MetaInfo_has_name(const Noise_MetaInfo *obj)
Definition: certificate.c:1071
int Noise_SubjectInfo_has_name(const Noise_SubjectInfo *obj)
Definition: certificate.c:630
int Noise_PublicKeyInfo_clear_algorithm(Noise_PublicKeyInfo *obj)
Definition: certificate.c:900
size_t Noise_MetaInfo_get_size_value(const Noise_MetaInfo *obj)
Definition: certificate.c:1125
int Noise_Certificate_add_signatures(Noise_Certificate *obj, Noise_Signature **value)
Definition: certificate.c:308
const char * Noise_MetaInfo_get_value(const Noise_MetaInfo *obj)
Definition: certificate.c:1120
size_t Noise_PrivateKey_count_keys(const Noise_PrivateKey *obj)
Definition: certificate.c:2330
int Noise_EncryptedPrivateKey_has_algorithm(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1921
int Noise_SubjectInfo_add_keys(Noise_SubjectInfo *obj, Noise_PublicKeyInfo **value)
Definition: certificate.c:740
size_t Noise_ExtraSignedInfo_get_size_valid_from(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1663
int Noise_EncryptedPrivateKey_clear_algorithm(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1910
const char * Noise_SubjectInfo_get_role(const Noise_SubjectInfo *obj)
Definition: certificate.c:679
size_t Noise_EncryptedPrivateKey_get_size_algorithm(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1931
int Noise_ExtraSignedInfo_set_nonce(Noise_ExtraSignedInfo *obj, const void *value, size_t size)
Definition: certificate.c:1625
int Noise_PrivateKeyInfo_new(Noise_PrivateKeyInfo **obj)
Definition: certificate.c:2430
int Noise_ExtraSignedInfo_has_meta(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1745
int Noise_PrivateKeyInfo_has_key(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2558
int Noise_CertificateChain_write(NoiseProtobuf *pbuf, int tag, const Noise_CertificateChain *obj)
Definition: certificate.c:357
int Noise_PrivateKey_has_keys(const Noise_PrivateKey *obj)
Definition: certificate.c:2325
int Noise_ExtraSignedInfo_clear_meta(Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1730
int Noise_CertificateChain_has_certs(const Noise_CertificateChain *obj)
Definition: certificate.c:420
int Noise_EncryptedPrivateKey_set_algorithm(Noise_EncryptedPrivateKey *obj, const char *value, size_t size)
Definition: certificate.c:1936
int Noise_PrivateKey_read(NoiseProtobuf *pbuf, int tag, Noise_PrivateKey **obj)
Definition: certificate.c:2116
int Noise_Signature_clear_id(Noise_Signature *obj)
Definition: certificate.c:1255
int Noise_ExtraSignedInfo_free(Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1512
const void * Noise_PublicKeyInfo_get_key(const Noise_PublicKeyInfo *obj)
Definition: certificate.c:960
const char * Noise_PrivateKey_get_role(const Noise_PrivateKey *obj)
Definition: certificate.c:2282
int Noise_SubjectInfo_clear_keys(Noise_SubjectInfo *obj)
Definition: certificate.c:707
int Noise_SubjectInfo_new(Noise_SubjectInfo **obj)
Definition: certificate.c:465
size_t Noise_SubjectInfo_get_size_role(const Noise_SubjectInfo *obj)
Definition: certificate.c:684
int Noise_MetaInfo_clear_name(Noise_MetaInfo *obj)
Definition: certificate.c:1060
int Noise_EncryptedPrivateKey_write(NoiseProtobuf *pbuf, int tag, const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1811
int Noise_ExtraSignedInfo_clear_nonce(Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1599
int Noise_MetaInfo_new(Noise_MetaInfo **obj)
Definition: certificate.c:987
int Noise_Signature_set_id(Noise_Signature *obj, const char *value, size_t size)
Definition: certificate.c:1281
Noise_PrivateKeyInfo * Noise_PrivateKey_get_at_keys(const Noise_PrivateKey *obj, size_t index)
Definition: certificate.c:2335
int Noise_CertificateChain_new(Noise_CertificateChain **obj)
Definition: certificate.c:335
int Noise_Signature_set_hash_algorithm(Noise_Signature *obj, const char *value, size_t size)
Definition: certificate.c:1405
int Noise_ExtraSignedInfo_new(Noise_ExtraSignedInfo **obj)
Definition: certificate.c:1502
int Noise_PrivateKeyInfo_clear_key(Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2547
int Noise_EncryptedPrivateKey_set_salt(Noise_EncryptedPrivateKey *obj, const void *value, size_t size)
Definition: certificate.c:1980
int Noise_Certificate_set_version(Noise_Certificate *obj, uint32_t value)
Definition: certificate.c:230
int Noise_Certificate_has_subject(const Noise_Certificate *obj)
Definition: certificate.c:249
int Noise_SubjectInfo_has_role(const Noise_SubjectInfo *obj)
Definition: certificate.c:674
int Noise_PrivateKeyInfo_has_algorithm(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2514
int Noise_MetaInfo_set_value(Noise_MetaInfo *obj, const char *value, size_t size)
Definition: certificate.c:1130
int Noise_ExtraSignedInfo_has_nonce(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1610
const char * Noise_PrivateKey_get_name(const Noise_PrivateKey *obj)
Definition: certificate.c:2238
size_t Noise_SubjectInfo_get_size_id(const Noise_SubjectInfo *obj)
Definition: certificate.c:596
int Noise_PrivateKey_free(Noise_PrivateKey *obj)
Definition: certificate.c:2078
const void * Noise_ExtraSignedInfo_get_nonce(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1615
int Noise_Certificate_read(NoiseProtobuf *pbuf, int tag, Noise_Certificate **obj)
Definition: certificate.c:167
int Noise_ExtraSignedInfo_clear_valid_from(Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1642
int Noise_Certificate_write(NoiseProtobuf *pbuf, int tag, const Noise_Certificate *obj)
Definition: certificate.c:151
size_t Noise_EncryptedPrivateKey_get_size_encrypted_data(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2046
int Noise_SubjectInfo_add_meta(Noise_SubjectInfo *obj, Noise_MetaInfo **value)
Definition: certificate.c:800
int Noise_SubjectInfo_set_id(Noise_SubjectInfo *obj, const char *value, size_t size)
Definition: certificate.c:601
int Noise_PrivateKey_clear_role(Noise_PrivateKey *obj)
Definition: certificate.c:2266
int Noise_MetaInfo_clear_value(Noise_MetaInfo *obj)
Definition: certificate.c:1104
int Noise_Signature_has_hash_algorithm(const Noise_Signature *obj)
Definition: certificate.c:1390
Noise_Certificate * Noise_CertificateChain_get_at_certs(const Noise_CertificateChain *obj, size_t index)
Definition: certificate.c:430
int Noise_EncryptedPrivateKey_clear_encrypted_data(Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2025
int Noise_PublicKeyInfo_free(Noise_PublicKeyInfo *obj)
Definition: certificate.c:837
const char * Noise_ExtraSignedInfo_get_valid_to(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1702
int Noise_EncryptedPrivateKey_set_version(Noise_EncryptedPrivateKey *obj, uint32_t value)
Definition: certificate.c:1901
int Noise_Signature_new(Noise_Signature **obj)
Definition: certificate.c:1148
size_t Noise_ExtraSignedInfo_count_meta(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1750
Noise_PublicKeyInfo * Noise_SubjectInfo_get_at_keys(const Noise_SubjectInfo *obj, size_t index)
Definition: certificate.c:732
int Noise_Signature_set_name(Noise_Signature *obj, const char *value, size_t size)
Definition: certificate.c:1325
size_t Noise_SubjectInfo_get_size_name(const Noise_SubjectInfo *obj)
Definition: certificate.c:640
int Noise_PublicKeyInfo_set_algorithm(Noise_PublicKeyInfo *obj, const char *value, size_t size)
Definition: certificate.c:926
int Noise_EncryptedPrivateKey_new(Noise_EncryptedPrivateKey **obj)
Definition: certificate.c:1790
int Noise_ExtraSignedInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1527
const char * Noise_EncryptedPrivateKey_get_algorithm(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1926
const char * Noise_SubjectInfo_get_name(const Noise_SubjectInfo *obj)
Definition: certificate.c:635
const char * Noise_PrivateKeyInfo_get_algorithm(const Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2519
int Noise_PrivateKey_clear_id(Noise_PrivateKey *obj)
Definition: certificate.c:2178
Noise_MetaInfo * Noise_ExtraSignedInfo_get_at_meta(const Noise_ExtraSignedInfo *obj, size_t index)
Definition: certificate.c:1755
int Noise_Signature_clear_signing_key(Noise_Signature *obj)
Definition: certificate.c:1343
int Noise_Certificate_get_new_subject(Noise_Certificate *obj, Noise_SubjectInfo **value)
Definition: certificate.c:259
int Noise_SubjectInfo_clear_name(Noise_SubjectInfo *obj)
Definition: certificate.c:619
int Noise_PrivateKey_has_meta(const Noise_PrivateKey *obj)
Definition: certificate.c:2385
int Noise_PrivateKeyInfo_clear_algorithm(Noise_PrivateKeyInfo *obj)
Definition: certificate.c:2503
int Noise_MetaInfo_write(NoiseProtobuf *pbuf, int tag, const Noise_MetaInfo *obj)
Definition: certificate.c:1007
int Noise_Certificate_new(Noise_Certificate **obj)
Definition: certificate.c:128
int Noise_Signature_has_signature(const Noise_Signature *obj)
Definition: certificate.c:1470
size_t Noise_SubjectInfo_count_meta(const Noise_SubjectInfo *obj)
Definition: certificate.c:787
int Noise_MetaInfo_read(NoiseProtobuf *pbuf, int tag, Noise_MetaInfo **obj)
Definition: certificate.c:1020
size_t Noise_EncryptedPrivateKey_get_size_salt(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:1975
int Noise_Signature_has_signing_key(const Noise_Signature *obj)
Definition: certificate.c:1353
size_t Noise_Signature_get_size_id(const Noise_Signature *obj)
Definition: certificate.c:1276
const void * Noise_EncryptedPrivateKey_get_encrypted_data(const Noise_EncryptedPrivateKey *obj)
Definition: certificate.c:2041
int Noise_SubjectInfo_has_keys(const Noise_SubjectInfo *obj)
Definition: certificate.c:722
int Noise_PrivateKey_clear_keys(Noise_PrivateKey *obj)
Definition: certificate.c:2310
int Noise_SubjectInfo_free(Noise_SubjectInfo *obj)
Definition: certificate.c:475
size_t Noise_PrivateKey_get_size_id(const Noise_PrivateKey *obj)
Definition: certificate.c:2199
int Noise_ExtraSignedInfo_has_valid_from(const Noise_ExtraSignedInfo *obj)
Definition: certificate.c:1653
int Noise_PublicKeyInfo_set_key(Noise_PublicKeyInfo *obj, const void *value, size_t size)
Definition: certificate.c:970