mbedTLS
MBEDTLS_OID_CMP
is only used within mbedTLS.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
MBEDTLS_OID_CMP
MBEDTLS_OID_CMP macro
Compares an mbedtls_asn1_buf structure to a reference OID. Only works for 'defined' oid_str values (MBEDTLS_OID_HMAC_SHA1), you cannot use a 'unsigned char *oid' here!
Syntax
Show:
Summary
Declaration
from
asn1.h:121
#define
MBEDTLS_OID_CMP
(
oid_str
,
oid_buf
)
\
(
(
MBEDTLS_OID_SIZE
(
oid_str
)
!=
(
oid_buf
)
->
len
)
||
\
memcmp
(
(
oid_str
)
,
(
oid_buf
)
->
p
,
(
oid_buf
)
->
len
)
!=
0
)
Arguments
Argument
oid_str
oid_buf
Examples
References
from
examples
Code
Location
#define
MBEDTLS_OID_CMP
(
oid_str
,
oid_buf
)
\
asn1.h:121
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_PKCS5_PBKDF2
,
&
kdf_alg_oid
)
!=
0
)
{
pkcs5.c:167
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_PKCS7_DATA
,
&
content_type
)
)
{
pkcs7.c:496
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_PKCS5_PBES2
,
&
pbe_alg_oid
)
==
0
)
{
pkparse.c:940
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_MGF1
,
&
alg_id
)
!=
0
)
{
x509.c:316
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_ON_HW_MODULE_NAME
,
&
cur_oid
)
!=
0
)
{
x509.c:1156
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_ON_HW_MODULE_NAME
,
x509.c:1550
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_ANY_POLICY
,
&
policy_oid
)
!=
0
)
{
x509_crt.c:794
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_ANY_EXTENDED_KEY_USAGE
,
cur_oid
)
==
0
)
{
x509_crt.c:1978
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_AT_CN
,
&
name
->
oid
)
==
0
&&
x509_crt.c:2997
if
(
MBEDTLS_OID_CMP
(
MBEDTLS_OID_PKCS9_CSR_EXT_REQ
,
&
attr_oid
)
==
0
)
{
x509_csr.c:229
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out