ESP-IDF
ot::Crypto::HmacSha256
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/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::HmacSha256
ot::Crypto::HmacSha256 class
Implements HMAC SHA-256 computation.
Syntax
Show:
Summary
Declaration
Definition
from
message.hpp:76
class
HmacSha256
;
Implemented in
hmac_sha256.hpp:63
Fields
Field
Declared as
ot::Crypto::HmacSha256::mContext
otCryptoContext
ot::Crypto::HmacSha256::mContextStorage
OT_DEFINE_ALIGNED_VAR
(
,
kHmacSha256ContextSize
,
uint64_t
Methods
Start()
Sets the key and starts the HMAC computation.
Update()
Inputs bytes into the HMAC computation.
Update()
Inputs bytes into the HMAC computation.
Update()
Inputs bytes into the HMAC computation.
Finish()
Finalizes the hash computation.
Examples
References
from
examples
Code
Location
Scope
Referrer
class
HmacSha256
hmac_sha256.hpp:63
class
HmacSha256
;
message.hpp:76
HmacSha256
hmac
;
crypto_api.cpp:46
otCryptoHmacSha256()
VerifyOrExit
(
aContext
->
mContextSize
>=
sizeof
(
HmacSha256
::
Hash
)
,
error
=
kErrorFailed
)
;
crypto_platform.cpp:240
otPlatCryptoHkdfInit()
HmacSha256
hmac
;
crypto_platform.cpp:255
otPlatCryptoHkdfExpand()
HmacSha256
::
Hash
hash
;
crypto_platform.cpp:256
otPlatCryptoHkdfExpand()
HmacSha256
::
Hash
*
prk
;
crypto_platform.cpp:259
otPlatCryptoHkdfExpand()
VerifyOrExit
(
aContext
->
mContextSize
>=
sizeof
(
HmacSha256
::
Hash
)
,
error
=
kErrorFailed
)
;
crypto_platform.cpp:262
otPlatCryptoHkdfExpand()
prk
=
static_cast
<
HmacSha256
::
Hash
*
>
(
aContext
->
mContext
)
;
crypto_platform.cpp:264
otPlatCryptoHkdfExpand()
cryptoKey
.
Set
(
prk
->
GetBytes
(
)
,
sizeof
(
HmacSha256
::
Hash
)
)
;
crypto_platform.cpp:283
otPlatCryptoHkdfExpand()
HmacSha256
hmac
;
crypto_platform.cpp:314
otPlatCryptoHkdfExtract()
HmacSha256
::
Hash
*
prk
;
crypto_platform.cpp:316
otPlatCryptoHkdfExtract()
VerifyOrExit
(
aContext
->
mContextSize
>=
sizeof
(
HmacSha256
::
Hash
)
,
error
=
kErrorFailed
)
;
crypto_platform.cpp:320
otPlatCryptoHkdfExtract()
prk
=
static_cast
<
HmacSha256
::
Hash
*
>
(
aContext
->
mContext
)
;
crypto_platform.cpp:322
otPlatCryptoHkdfExtract()
HmacSha256
::
Hash
*
prk
;
crypto_platform.cpp:337
otPlatCryptoHkdfDeinit()
VerifyOrExit
(
aContext
->
mContextSize
>=
sizeof
(
HmacSha256
::
Hash
)
,
error
=
kErrorFailed
)
;
crypto_platform.cpp:340
otPlatCryptoHkdfDeinit()
prk
=
static_cast
<
HmacSha256
::
Hash
*
>
(
aContext
->
mContext
)
;
crypto_platform.cpp:342
otPlatCryptoHkdfDeinit()
HmacSha256
::
HmacSha256
(
void
)
hmac_sha256.cpp:42
ot::Crypto::HmacSha256::HmacSha256()
HmacSha256
::
~
HmacSha256
(
void
)
{
SuccessOrAssert
(
otPlatCryptoHmacSha256Deinit
(
&
mContext
)
)
;
}
hmac_sha256.cpp:50
ot::Crypto::HmacSha256::~HmacSha256()
void
HmacSha256
::
Start
(
const
Key
&
aKey
)
{
SuccessOrAssert
(
otPlatCryptoHmacSha256Start
(
&
mContext
,
&
aKey
)
)
;
}
hmac_sha256.cpp:52
ot::Crypto::HmacSha256::Start()
void
HmacSha256
::
Update
(
const
void
*
aBuf
,
uint16_t
aBufLength
)
hmac_sha256.cpp:54
ot::Crypto::HmacSha256::Update()
void
HmacSha256
::
Finish
(
Hash
&
aHash
)
hmac_sha256.cpp:59
ot::Crypto::HmacSha256::Finish()
void
HmacSha256
::
Update
(
const
Message
&
aMessage
,
uint16_t
aOffset
,
uint16_t
aLength
)
hmac_sha256.cpp:64
ot::Crypto::HmacSha256::Update()
Crypto
::
HmacSha256
hmac
;
key_manager.cpp:289
ot::KeyManager::ComputeKeys() const
Crypto
::
HmacSha256
::
Hash
mHash
;
key_manager.hpp:567
friend
class
Crypto
::
HmacSha256
;
message.hpp:266
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