ESP-IDF
ot::Crypto::MbedTls
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (1/5)...
Files
loading (2/5)...
Summary
Syntax
Methods
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Crypto::MbedTls
ot::Crypto::MbedTls class
Implements mbedTLS memory.
Syntax
Show:
Summary
Declaration
from
mbedtls.hpp:72
class
MbedTls
:
private
NonCopyable
{
public
:
MbedTls
(
void
)
;
static
Error
MapError
(
int
aMbedTlsError
)
;
#if
!
OPENTHREAD_RADIO
static
int
CryptoSecurePrng
(
void
*
aContext
,
unsigned
char
*
aBuffer
,
size_t
aSize
)
;
#endif
}
;
Methods
MapError()
Converts an mbed TLS error to OpenThread error.
CryptoSecurePrng()
Fills a given buffer with cryptographically secure random bytes.
Examples
References
from
examples
Code
Location
Scope
Referrer
class
MbedTls
:
private
NonCopyable
mbedtls.hpp:72
return
ot
::
Crypto
::
MbedTls
::
MapError
(
crypto_platform.cpp:490
otPlatCryptoRandomGet()
ret
=
mbedtls_ecp_gen_key
(
MBEDTLS_ECP_DP_SECP256R1
,
mbedtls_pk_ec
(
pk
)
,
MbedTls
::
CryptoSecurePrng
,
nullptr
)
;
crypto_platform.cpp:506
otPlatCryptoEcdsaGenerateKey()
return
(
ret
>=
0
)
?
kErrorNone
:
MbedTls
::
MapError
(
ret
)
;
crypto_platform.cpp:520
otPlatCryptoEcdsaGenerateKey()
MbedTls
::
CryptoSecurePrng
,
nullptr
)
==
0
,
crypto_platform.cpp:537
otPlatCryptoEcdsaGetPublicKey()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:548
otPlatCryptoEcdsaGetPublicKey()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:552
otPlatCryptoEcdsaGetPublicKey()
MbedTls
::
CryptoSecurePrng
,
nullptr
)
==
0
,
crypto_platform.cpp:580
otPlatCryptoEcdsaSign()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:590
otPlatCryptoEcdsaSign()
Sha256
::
Hash
::
kSize
,
MBEDTLS_MD_SHA256
,
MbedTls
::
CryptoSecurePrng
,
nullptr
)
;
crypto_platform.cpp:594
otPlatCryptoEcdsaSign()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:599
otPlatCryptoEcdsaSign()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:604
otPlatCryptoEcdsaSign()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:607
otPlatCryptoEcdsaSign()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:633
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:636
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:639
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:641
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:644
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:647
otPlatCryptoEcdsaVerify()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:712
otPlatCryptoPbkdf2GenerateKey()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:717
otPlatCryptoPbkdf2GenerateKey()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:729
otPlatCryptoPbkdf2GenerateKey()
VerifyOrExit
(
ret
==
0
,
error
=
MbedTls
::
MapError
(
ret
)
)
;
crypto_platform.cpp:733
otPlatCryptoPbkdf2GenerateKey()
Crypto
::
MbedTls
mMbedTls
;
instance.hpp:461
ot::Instance
ot::Instance::mMbedTls
MbedTls
::
MbedTls
(
void
)
mbedtls.cpp:54
ot::Crypto::MbedTls::MbedTls()
Error
MbedTls
::
MapError
(
int
aMbedTlsError
)
mbedtls.cpp:65
ot::Crypto::MbedTls::MapError()
int
MbedTls
::
CryptoSecurePrng
(
void
*
,
unsigned
char
*
aBuffer
,
size_t
aSize
)
mbedtls.cpp:175
ot::Crypto::MbedTls::CryptoSecurePrng()
mbedtls_ssl_conf_rng
(
&
mConf
,
Crypto
::
MbedTls
::
CryptoSecurePrng
,
nullptr
)
;
secure_transport.cpp:307
ot::MeshCoP::SecureTransport::Setup()
rval
=
mbedtls_ssl_cookie_setup
(
&
mCookieCtx
,
Crypto
::
MbedTls
::
CryptoSecurePrng
,
nullptr
)
;
secure_transport.cpp:346
ot::MeshCoP::SecureTransport::Setup()
return
Crypto
::
MbedTls
::
MapError
(
rval
)
;
secure_transport.cpp:408
ot::MeshCoP::SecureTransport::Setup()
return
Crypto
::
MbedTls
::
MapError
(
rval
)
;
secure_transport.cpp:747
ot::MeshCoP::SecureTransport::SetClientId()
SuccessOrExit
(
error
=
Crypto
::
MbedTls
::
MapError
(
mbedtls_ssl_write
(
&
mSsl
,
buffer
,
aLength
)
)
)
;
secure_transport.cpp:766
ot::MeshCoP::SecureTransport::Send()
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
ot::Crypto::MbedTls
is inherited by 1 classes:
All items filtered out
ot::Crypto::MbedTls
ot::NonCopyable
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
Instance
Scope
Location
Project
ot::Instance::mMbedTls
ot::Instance
instance.hpp:461
Lifecycle
from
examples
All items filtered out
All items filtered out