RetroArch
|
Object Identifier (OID) database. More...
#include "mbedtls/config.h"
#include "mbedtls/oid.h"
#include "mbedtls/rsa.h"
#include <stdio.h>
#include <string.h>
#include "mbedtls/platform.h"
#include "mbedtls/x509.h"
Classes | |
struct | oid_x520_attr_t |
struct | oid_x509_ext_t |
struct | oid_sig_alg_t |
struct | oid_pk_alg_t |
struct | oid_ecp_grp_t |
struct | oid_cipher_alg_t |
struct | oid_md_alg_t |
struct | oid_pkcs12_pbe_alg_t |
Macros | |
#define | ADD_LEN(s) s, MBEDTLS_OID_SIZE(s) |
#define | FN_OID_TYPED_FROM_ASN1(TYPE_T, NAME, LIST) |
#define | FN_OID_GET_DESCRIPTOR_ATTR1(FN_NAME, TYPE_T, TYPE_NAME, ATTR1_TYPE, ATTR1) |
#define | FN_OID_GET_ATTR1(FN_NAME, TYPE_T, TYPE_NAME, ATTR1_TYPE, ATTR1) |
#define | FN_OID_GET_ATTR2(FN_NAME, TYPE_T, TYPE_NAME, ATTR1_TYPE, ATTR1, ATTR2_TYPE, ATTR2) |
#define | FN_OID_GET_OID_BY_ATTR1(FN_NAME, TYPE_T, LIST, ATTR1_TYPE, ATTR1) |
#define | FN_OID_GET_OID_BY_ATTR2(FN_NAME, TYPE_T, LIST, ATTR1_TYPE, ATTR1, ATTR2_TYPE, ATTR2) |
#define | OID_SAFE_SNPRINTF |
Functions | |
int | mbedtls_oid_get_numeric_string (char *buf, size_t size, const mbedtls_asn1_buf *oid) |
Translate an ASN.1 OID into its numeric representation (e.g. "\x2A\x86\x48\x86\xF7\x0D" into "1.2.840.113549") More... | |
Variables | |
static const oid_x520_attr_t | oid_x520_attr_type [] |
static const oid_x509_ext_t | oid_x509_ext [] |
static const mbedtls_oid_descriptor_t | oid_ext_key_usage [] |
static const oid_sig_alg_t | oid_sig_alg [] |
static const oid_pk_alg_t | oid_pk_alg [] |
static const oid_ecp_grp_t | oid_ecp_grp [] |
static const oid_cipher_alg_t | oid_cipher_alg [] |
static const oid_md_alg_t | oid_md_alg [] |
static const oid_pkcs12_pbe_alg_t | oid_pkcs12_pbe_alg [] |
Object Identifier (OID) database.
Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This file is part of mbed TLS (https://tls.mbed.org)
#define ADD_LEN | ( | s | ) | s, MBEDTLS_OID_SIZE(s) |
#define FN_OID_GET_ATTR1 | ( | FN_NAME, | |
TYPE_T, | |||
TYPE_NAME, | |||
ATTR1_TYPE, | |||
ATTR1 | |||
) |
#define FN_OID_GET_ATTR2 | ( | FN_NAME, | |
TYPE_T, | |||
TYPE_NAME, | |||
ATTR1_TYPE, | |||
ATTR1, | |||
ATTR2_TYPE, | |||
ATTR2 | |||
) |
#define FN_OID_GET_DESCRIPTOR_ATTR1 | ( | FN_NAME, | |
TYPE_T, | |||
TYPE_NAME, | |||
ATTR1_TYPE, | |||
ATTR1 | |||
) |
#define FN_OID_GET_OID_BY_ATTR1 | ( | FN_NAME, | |
TYPE_T, | |||
LIST, | |||
ATTR1_TYPE, | |||
ATTR1 | |||
) |
#define FN_OID_GET_OID_BY_ATTR2 | ( | FN_NAME, | |
TYPE_T, | |||
LIST, | |||
ATTR1_TYPE, | |||
ATTR1, | |||
ATTR2_TYPE, | |||
ATTR2 | |||
) |
#define FN_OID_TYPED_FROM_ASN1 | ( | TYPE_T, | |
NAME, | |||
LIST | |||
) |
#define OID_SAFE_SNPRINTF |
int mbedtls_oid_get_numeric_string | ( | char * | buf, |
size_t | size, | ||
const mbedtls_asn1_buf * | oid | ||
) |
Translate an ASN.1 OID into its numeric representation (e.g. "\x2A\x86\x48\x86\xF7\x0D" into "1.2.840.113549")
buf | buffer to put representation in |
size | size of the buffer |
oid | OID to translate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |