XenevaOS
Loading...
Searching...
No Matches
x509_internal.h
Go to the documentation of this file.
1
6/*
7 * Copyright The Mbed TLS Contributors
8 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
9 */
10#ifndef MBEDTLS_X509_INTERNAL_H
11#define MBEDTLS_X509_INTERNAL_H
13
14#include "mbedtls/build_info.h"
15
16#include "mbedtls/x509.h"
17#include "mbedtls/asn1.h"
18#include "pk_internal.h"
19
20#if defined(MBEDTLS_RSA_C)
21#include "mbedtls/rsa.h"
22#endif
23
24int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end,
26int mbedtls_x509_get_alg_null(unsigned char **p, const unsigned char *end,
27 mbedtls_x509_buf *alg);
28int mbedtls_x509_get_alg(unsigned char **p, const unsigned char *end,
30#if defined(MBEDTLS_X509_RSASSA_PSS_SUPPORT)
31int mbedtls_x509_get_rsassa_pss_params(const mbedtls_x509_buf *params,
32 mbedtls_md_type_t *md_alg, mbedtls_md_type_t *mgf_md,
33 int *salt_len);
34#endif
35int mbedtls_x509_get_sig(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig);
36int mbedtls_x509_get_sig_alg(const mbedtls_x509_buf *sig_oid, const mbedtls_x509_buf *sig_params,
37 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg,
38 void **sig_opts);
39int mbedtls_x509_get_time(unsigned char **p, const unsigned char *end,
41int mbedtls_x509_get_serial(unsigned char **p, const unsigned char *end,
42 mbedtls_x509_buf *serial);
43int mbedtls_x509_get_ext(unsigned char **p, const unsigned char *end,
44 mbedtls_x509_buf *ext, int tag);
45#if !defined(MBEDTLS_X509_REMOVE_INFO)
46int mbedtls_x509_sig_alg_gets(char *buf, size_t size, const mbedtls_x509_buf *sig_oid,
48 const void *sig_opts);
49#endif
50int mbedtls_x509_key_size_helper(char *buf, size_t buf_size, const char *name);
51int mbedtls_x509_set_extension(mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
52 int critical, const unsigned char *val,
53 size_t val_len);
54int mbedtls_x509_write_extensions(unsigned char **p, unsigned char *start,
56int mbedtls_x509_write_names(unsigned char **p, unsigned char *start,
58int mbedtls_x509_write_sig(unsigned char **p, unsigned char *start,
59 const char *oid, size_t oid_len,
60 unsigned char *sig, size_t size,
61 mbedtls_pk_type_t pk_alg);
62int mbedtls_x509_get_ns_cert_type(unsigned char **p,
63 const unsigned char *end,
64 unsigned char *ns_cert_type);
65int mbedtls_x509_get_key_usage(unsigned char **p,
66 const unsigned char *end,
67 unsigned int *key_usage);
69 const unsigned char *end,
70 mbedtls_x509_sequence *subject_alt_name);
72 const unsigned char *end,
73 mbedtls_x509_sequence *subject_alt_name);
76 *subject_alt_name,
77 const char *prefix);
78int mbedtls_x509_info_cert_type(char **buf, size_t *size,
79 unsigned char ns_cert_type);
80int mbedtls_x509_info_key_usage(char **buf, size_t *size,
81 unsigned int key_usage);
82
84 const mbedtls_x509_san_list *san_list);
85
86#endif /* MBEDTLS_X509_INTERNAL_H */
XETime t
Definition main.cpp:53
Generic ASN.1 parsing.
size_t size
Definition drm_bridge.h:1299
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
__u64 extensions
Definition i915_drm.h:0
int const struct list_head const struct list_head struct list_head * head
Definition list_sort.h:13
char end[]
Build-time configuration info.
mbedtls_md_type_t
Supported message digests.
Definition md.h:47
mbedtls_pk_type_t
Public key types.
Definition pk.h:73
Public Key abstraction layer: internal (i.e. library only) functions and definitions.
Macro wrapper for struct's members.
This file provides an API for the RSA public-key cryptosystem.
Definition asn1.h:141
Definition asn1.h:178
Definition asn1.h:161
Definition x509.h:303
Definition x509.h:246
X.509 generic defines and structures.
int mbedtls_x509_get_subject_alt_name(unsigned char **p, const unsigned char *end, mbedtls_x509_sequence *subject_alt_name)
int mbedtls_x509_write_extensions(unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *first)
int mbedtls_x509_get_name(unsigned char **p, const unsigned char *end, mbedtls_x509_name *cur)
int mbedtls_x509_set_extension(mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, int critical, const unsigned char *val, size_t val_len)
int mbedtls_x509_write_names(unsigned char **p, unsigned char *start, mbedtls_asn1_named_data *first)
int mbedtls_x509_write_sig(unsigned char **p, unsigned char *start, const char *oid, size_t oid_len, unsigned char *sig, size_t size, mbedtls_pk_type_t pk_alg)
int mbedtls_x509_write_set_san_common(mbedtls_asn1_named_data **extensions, const mbedtls_x509_san_list *san_list)
int mbedtls_x509_get_alg_null(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *alg)
int mbedtls_x509_get_sig_alg(const mbedtls_x509_buf *sig_oid, const mbedtls_x509_buf *sig_params, mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg, void **sig_opts)
int mbedtls_x509_get_alg(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *alg, mbedtls_x509_buf *params)
int mbedtls_x509_get_key_usage(unsigned char **p, const unsigned char *end, unsigned int *key_usage)
int mbedtls_x509_info_cert_type(char **buf, size_t *size, unsigned char ns_cert_type)
int mbedtls_x509_info_key_usage(char **buf, size_t *size, unsigned int key_usage)
int mbedtls_x509_get_ext(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *ext, int tag)
int mbedtls_x509_key_size_helper(char *buf, size_t buf_size, const char *name)
int mbedtls_x509_info_subject_alt_name(char **buf, size_t *size, const mbedtls_x509_sequence *subject_alt_name, const char *prefix)
int mbedtls_x509_sig_alg_gets(char *buf, size_t size, const mbedtls_x509_buf *sig_oid, mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, const void *sig_opts)
int mbedtls_x509_get_serial(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *serial)
int mbedtls_x509_get_sig(unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig)
int mbedtls_x509_get_time(unsigned char **p, const unsigned char *end, mbedtls_x509_time *t)
int mbedtls_x509_get_ns_cert_type(unsigned char **p, const unsigned char *end, unsigned char *ns_cert_type)
int mbedtls_x509_get_subject_alt_name_ext(unsigned char **p, const unsigned char *end, mbedtls_x509_sequence *subject_alt_name)