ESP-IDF
ot::Crypto::Sha256::Hash
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading (4/5)...
Files
loading (4/5)...
Summary
Syntax
Methods
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Crypto::Sha256::Hash
ot::Crypto::Sha256::Hash class
Represents a SHA-256 hash.
Syntax
Show:
Summary
Declaration
from
sha256.hpp:72
class
Hash
:
public
otCryptoSha256Hash
,
public
Clearable
<
Hash
>
,
public
Equatable
<
Hash
>
{
public
:
static
const
uint8_t
kSize
=
OT_CRYPTO_SHA256_HASH_SIZE
;
const
uint8_t
*
GetBytes
(
void
)
const
{
return
m8
;
}
}
;
Fields
Field
ot::Crypto::Sha256::Hash::kSize
Methods
GetBytes() const
Returns a pointer to a byte array containing the hash value.
Related Functions
Found 5 other functions taking a
Hash
argument:
Function
Description
ot::Crypto::Sha256::Finish()
Finalizes the hash computation.
ot::Crypto::HmacSha256::Finish()
Finalizes the hash computation.
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const
Calculates the ECDSA signature for a hashed message using the private key from `KeyPair`. Uses the deterministic digital signature generation procedure from RFC 6979.
ot::Crypto::Ecdsa::P256::PublicKey::Verify() const
Uses the `PublicKey` to verify the ECDSA signature of a hashed message.
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
Sha256
::
Hash
Hash
;
hmac_sha256.hpp:69
typedef
Crypto
::
Sha256
::
Hash
Hash
;
routing_manager.hpp:1391
class
Hash
:
public
otCryptoSha256Hash
,
public
Clearable
<
Hash
>
,
public
Equatable
<
Hash
>
sha256.hpp:72
DefineCoreType
(
otCacheEntryIterator
,
AddressResolver
::
Iterator
)
;
address_resolver.hpp:400
DefineCoreType
(
otCacheEntryInfo
,
AddressResolver
::
EntryInfo
)
;
address_resolver.hpp:401
DefineCoreType
(
otBorderAgentId
,
MeshCoP
::
BorderAgent
::
Id
)
;
border_agent.hpp:353
DefineCoreType
(
otChildInfo
,
Child
::
Info
)
;
child.hpp:399
DefineCoreType
(
otCoapTxParameters
,
Coap
::
TxParameters
)
;
coap.hpp:941
DefineCoreType
(
otCoapResource
,
Coap
::
Resource
)
;
coap.hpp:942
DefineCoreType
(
otCoapOption
,
Coap
::
Option
)
;
coap_message.hpp:1175
DefineCoreType
(
otCoapOptionIterator
,
Coap
::
Option
::
Iterator
)
;
coap_message.hpp:1176
DefineCoreType
(
otOperationalDatasetComponents
,
MeshCoP
::
Dataset
::
Components
)
;
dataset.hpp:783
DefineCoreType
(
otOperationalDataset
,
MeshCoP
::
Dataset
::
Info
)
;
dataset.hpp:784
DefineCoreType
(
otDnsQueryConfig
,
Dns
::
Client
::
QueryConfig
)
;
dns_client.hpp:892
DefineCoreType
(
otDnsAddressResponse
,
Dns
::
Client
::
AddressResponse
)
;
dns_client.hpp:893
DefineCoreType
(
otDnsBrowseResponse
,
Dns
::
Client
::
BrowseResponse
)
;
dns_client.hpp:895
DefineCoreType
(
otDnsServiceResponse
,
Dns
::
Client
::
ServiceResponse
)
;
dns_client.hpp:896
DefineCoreType
(
otDnsServiceInfo
,
Dns
::
Client
::
ServiceInfo
)
;
dns_client.hpp:897
DefineCoreType
(
otDnsTxtEntry
,
Dns
::
TxtEntry
)
;
dns_types.hpp:2734
DefineCoreType
(
otDnsTxtEntryIterator
,
Dns
::
TxtEntry
::
Iterator
)
;
dns_types.hpp:2735
DefineCoreType
(
otPlatCryptoEcdsaSignature
,
Crypto
::
Ecdsa
::
P256
::
Signature
)
;
ecdsa.hpp:340
DefineCoreType
(
otPlatCryptoEcdsaKeyPair
,
Crypto
::
Ecdsa
::
P256
::
KeyPair
)
;
ecdsa.hpp:341
DefineCoreType
(
otPlatCryptoEcdsaPublicKey
,
Crypto
::
Ecdsa
::
P256
::
PublicKey
)
;
ecdsa.hpp:342
DefineCoreType
(
otExtendedPanId
,
MeshCoP
::
ExtendedPanId
)
;
extended_panid.hpp:106
DefineCoreType
(
otIcmp6Header
,
Ip6
::
Icmp
::
Header
)
;
icmp6.hpp:337
DefineCoreType
(
otIcmp6Handler
,
Ip6
::
Icmp
::
Handler
)
;
icmp6.hpp:338
DefineCoreType
(
otInstance
,
Instance
)
;
instance.hpp:741
DefineCoreType
(
otBufferInfo
,
Instance
::
BufferInfo
)
;
instance.hpp:742
DefineCoreType
(
otIp4Address
,
Ip4
::
Address
)
;
ip4_types.hpp:661
DefineCoreType
(
otIp4Cidr
,
Ip4
::
Cidr
)
;
ip4_types.hpp:662
DefineCoreType
(
otIp6NetworkPrefix
,
Ip6
::
NetworkPrefix
)
;
ip6_address.hpp:986
DefineCoreType
(
otIp6Prefix
,
Ip6
::
Prefix
)
;
ip6_address.hpp:987
DefineCoreType
(
otIp6InterfaceIdentifier
,
Ip6
::
InterfaceIdentifier
)
;
ip6_address.hpp:988
DefineCoreType
(
otIp6Address
,
Ip6
::
Address
)
;
ip6_address.hpp:989
DefineCoreType
(
otSecurityPolicy
,
SecurityPolicy
)
;
key_manager.hpp:646
DefineCoreType
(
otNetworkKey
,
NetworkKey
)
;
key_manager.hpp:647
DefineCoreType
(
otPskc
,
Pskc
)
;
key_manager.hpp:648
DefineCoreType
(
otExtAddress
,
Mac
::
ExtAddress
)
;
mac_types.hpp:923
DefineCoreType
(
otMacKey
,
Mac
::
Key
)
;
mac_types.hpp:924
DefineCoreType
(
otMeshDiagIp6AddrIterator
,
Utils
::
MeshDiag
::
Ip6AddrIterator
)
;
mesh_diag.hpp:314
DefineCoreType
(
otMeshDiagRouterInfo
,
Utils
::
MeshDiag
::
RouterInfo
)
;
mesh_diag.hpp:315
DefineCoreType
(
otMeshDiagChildInfo
,
Utils
::
MeshDiag
::
ChildInfo
)
;
mesh_diag.hpp:316
DefineCoreType
(
otMeshDiagChildIterator
,
Utils
::
MeshDiag
::
ChildIterator
)
;
mesh_diag.hpp:317
DefineCoreType
(
otThreadLinkInfo
,
ThreadLinkInfo
)
;
mesh_forwarder.hpp:662
DefineCoreType
(
otJoinerPskd
,
MeshCoP
::
JoinerPskd
)
;
meshcop.hpp:515
DefineCoreType
(
otJoinerDiscerner
,
MeshCoP
::
JoinerDiscerner
)
;
meshcop.hpp:516
DefineCoreType
(
otSteeringData
,
MeshCoP
::
SteeringData
)
;
meshcop.hpp:517
DefineCoreType
(
otCommissioningDataset
,
MeshCoP
::
CommissioningDataset
)
;
meshcop.hpp:518
DefineCoreType
(
otMessageBuffer
,
Buffer
)
;
message.hpp:1901
DefineCoreType
(
otMessageSettings
,
Message
::
Settings
)
;
message.hpp:1902
DefineCoreType
(
otMessage
,
Message
)
;
message.hpp:1903
DefineCoreType
(
otMessageQueue
,
MessageQueue
)
;
message.hpp:1904
DefineCoreType
(
otLeaderData
,
Mle
::
LeaderData
)
;
mle_types.hpp:699
DefineCoreType
(
otDeviceProperties
,
Mle
::
DeviceProperties
)
;
mle_types.hpp:702
DefineCoreType
(
otNeighborInfo
,
Neighbor
::
Info
)
;
neighbor.hpp:773
DefineCoreType
(
otNetifAddress
,
Ip6
::
Netif
::
UnicastAddress
)
;
netif.hpp:652
DefineCoreType
(
otNetifMulticastAddress
,
Ip6
::
Netif
::
MulticastAddress
)
;
netif.hpp:653
DefineCoreType
(
otBorderRouterConfig
,
NetworkData
::
OnMeshPrefixConfig
)
;
network_data_types.hpp:400
DefineCoreType
(
otExternalRouteConfig
,
NetworkData
::
ExternalRouteConfig
)
;
network_data_types.hpp:401
DefineCoreType
(
otLowpanContextInfo
,
NetworkData
::
LowpanContextInfo
)
;
network_data_types.hpp:402
DefineCoreType
(
otServiceConfig
,
NetworkData
::
ServiceConfig
)
;
network_data_types.hpp:403
DefineCoreType
(
otServerConfig
,
NetworkData
::
ServiceConfig
::
ServerConfig
)
;
network_data_types.hpp:404
DefineCoreType
(
otNetworkName
,
MeshCoP
::
NetworkName
)
;
network_name.hpp:262
DefineCoreType
(
otPingSenderReply
,
Utils
::
PingSender
::
Reply
)
;
ping_sender.hpp:179
DefineCoreType
(
otPingSenderConfig
,
Utils
::
PingSender
::
Config
)
;
ping_sender.hpp:180
DefineCoreType
(
otPingSenderStatistics
,
Utils
::
PingSender
::
Statistics
)
;
ping_sender.hpp:181
DefineCoreType
(
otRouterInfo
,
Router
::
Info
)
;
router.hpp:215
DefineCoreType
(
otCryptoSha256Hash
,
Crypto
::
Sha256
::
Hash
)
;
sha256.hpp:148
DefineCoreType
(
otMessageInfo
,
Ip6
::
MessageInfo
)
;
socket.hpp:326
DefineCoreType
(
otSockAddr
,
Ip6
::
SockAddr
)
;
socket.hpp:327
DefineCoreType
(
otSrpClientHostInfo
,
Srp
::
Client
::
HostInfo
)
;
srp_client.hpp:1116
DefineCoreType
(
otSrpClientService
,
Srp
::
Client
::
Service
)
;
srp_client.hpp:1117
DefineCoreType
(
otSrpClientBuffersServiceEntry
,
Utils
::
SrpClientBuffers
::
ServiceEntry
)
;
srp_client_buffers.hpp:248
DefineCoreType
(
otSrpServerTtlConfig
,
Srp
::
Server
::
TtlConfig
)
;
srp_server.hpp:1019
DefineCoreType
(
otSrpServerLeaseConfig
,
Srp
::
Server
::
LeaseConfig
)
;
srp_server.hpp:1020
DefineCoreType
(
otSrpServerHost
,
Srp
::
Server
::
Host
)
;
srp_server.hpp:1021
DefineCoreType
(
otSrpServerService
,
Srp
::
Server
::
Service
)
;
srp_server.hpp:1022
DefineCoreType
(
otCryptoKey
,
Crypto
::
Key
)
;
storage.hpp:323
DefineCoreType
(
otTcpEndpoint
,
Ip6
::
Tcp
::
Endpoint
)
;
tcp6.hpp:670
DefineCoreType
(
otTcpListener
,
Ip6
::
Tcp
::
Listener
)
;
tcp6.hpp:671
DefineCoreType
(
otTcpCircularSendBuffer
,
Ip6
::
TcpCircularSendBuffer
)
;
tcp6_ext.hpp:129
DefineCoreType
(
otUdpSocket
,
Ip6
::
Udp
::
SocketHandle
)
;
udp6.hpp:669
DefineCoreType
(
otUdpReceiver
,
Ip6
::
Udp
::
Receiver
)
;
udp6.hpp:670
VerifyOrExit
(
aContext
->
mContextSize
>=
sizeof
(
HmacSha256
::
Hash
)
,
error
=
kErrorFailed
)
;
crypto_platform.cpp:240
otPlatCryptoHkdfInit()
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
::
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()
prk
->
~
Hash
(
)
;
crypto_platform.cpp:343
otPlatCryptoHkdfDeinit()
Sha256
::
Hash
::
kSize
,
MBEDTLS_MD_SHA256
,
MbedTls
::
CryptoSecurePrng
,
nullptr
)
;
crypto_platform.cpp:594
otPlatCryptoEcdsaSign()
ret
=
mbedtls_ecdsa_verify
(
&
ecdsa
.
MBEDTLS_PRIVATE
(
grp
)
,
aHash
->
m8
,
Sha256
::
Hash
::
kSize
,
&
ecdsa
.
MBEDTLS_PRIVATE
(
Q
)
,
crypto_platform.cpp:649
otPlatCryptoEcdsaVerify()
Error
Sign
(
const
Sha256
::
Hash
&
aHash
,
Signature
&
aSignature
)
const
ecdsa.hpp:193
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const::aHash
Error
Verify
(
const
Sha256
::
Hash
&
aHash
,
const
Signature
&
aSignature
)
const
ecdsa.hpp:325
ot::Crypto::Ecdsa::P256::PublicKey::Verify() const
ot::Crypto::Ecdsa::P256::PublicKey::Verify() const::aHash
void
HmacSha256
::
Finish
(
Hash
&
aHash
)
hmac_sha256.cpp:59
ot::Crypto::HmacSha256::Finish()
ot::Crypto::HmacSha256::Finish()::aHash
SuccessOrAssert
(
otPlatCryptoHmacSha256Finish
(
&
mContext
,
aHash
.
m8
,
Hash
::
kSize
)
)
;
hmac_sha256.cpp:61
ot::Crypto::HmacSha256::Finish()
typedef
Sha256
::
Hash
Hash
;
hmac_sha256.hpp:69
ot::Crypto::HmacSha256
ot::Crypto::HmacSha256::Hash
void
Finish
(
Hash
&
aHash
)
;
hmac_sha256.hpp:123
ot::Crypto::HmacSha256::Finish()
ot::Crypto::HmacSha256::Finish()::aHash
Crypto
::
HmacSha256
::
Hash
mHash
;
key_manager.hpp:567
ot::KeyManager::HashKeys
ot::KeyManager::HashKeys::mHash
Crypto
::
Sha256
::
Hash
hash
;
meshcop.cpp:289
ot::MeshCoP::ComputeJoinerId()
Hash
hash
;
routing_manager.cpp:3757
ot::BorderRouter::RoutingManager::TxRaInfo::IsRaFromManager() const
void
RoutingManager
::
TxRaInfo
::
CalculateHash
(
const
RouterAdvert
::
RxMessage
&
aRaMessage
,
Hash
&
aHash
)
routing_manager.cpp:3784
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()::aHash
typedef
Crypto
::
Sha256
::
Hash
Hash
;
routing_manager.hpp:1391
ot::BorderRouter::RoutingManager::TxRaInfo
ot::BorderRouter::RoutingManager::TxRaInfo::Hash
static
void
CalculateHash
(
const
RouterAdvert
::
RxMessage
&
aRaMessage
,
Hash
&
aHash
)
;
routing_manager.hpp:1404
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()::aHash
Hash
mHashes
[
kNumHashEntries
]
;
routing_manager.hpp:1408
ot::BorderRouter::RoutingManager::TxRaInfo
ot::BorderRouter::RoutingManager::TxRaInfo::mHashes
Crypto
::
Sha256
::
Hash
kek
;
secure_transport.cpp:955
ot::MeshCoP::SecureTransport::HandleMbedtlsExportKeys()
void
Sha256
::
Finish
(
Hash
&
aHash
)
{
SuccessOrAssert
(
otPlatCryptoSha256Finish
(
&
mContext
,
aHash
.
m8
,
Hash
::
kSize
)
)
;
}
sha256.cpp:72
ot::Crypto::Sha256::Finish()
ot::Crypto::Sha256::Finish()::aHash
void
Finish
(
Hash
&
aHash
)
;
sha256.hpp:135
ot::Crypto::Sha256::Finish()
ot::Crypto::Sha256::Finish()::aHash
DefineCoreType
(
otCryptoSha256Hash
,
Crypto
::
Sha256
::
Hash
)
;
sha256.hpp:148
ot::CoreType::Type
Crypto
::
Sha256
::
Hash
hash
;
slaac_address.cpp:426
ot::Utils::Slaac::GenerateIid() const
Crypto
::
Sha256
::
Hash
hash
;
srp_client.cpp:1681
ot::Srp::Client::AppendSignature()
Crypto
::
Sha256
::
Hash
hash
;
srp_server.cpp:1303
ot::Srp::Server::VerifySignature() const
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::Sha256::Hash
is inherited by 1 classes:
All items filtered out
ot::Crypto::Sha256::Hash
otPlatCryptoSha256Hash
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::Crypto::HmacSha256::Finish()::aHash
ot::Crypto::HmacSha256::Finish()
hmac_sha256.hpp:123
ot::Crypto::Sha256::Finish()::aHash
ot::Crypto::Sha256::Finish()
sha256.hpp:135
ot::CoreType::Type
sha256.hpp:148
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()::aHash
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()
routing_manager.hpp:1404
ot::BorderRouter::RoutingManager::TxRaInfo::mHashes
ot::BorderRouter::RoutingManager::TxRaInfo
routing_manager.hpp:1408
ot::KeyManager::HashKeys::mHash
ot::KeyManager::HashKeys
key_manager.hpp:567
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const::aHash
ot::Crypto::Ecdsa::P256::KeyPair::Sign() const
ecdsa.hpp:193
ot::Crypto::Ecdsa::P256::PublicKey::Verify() const::aHash
ot::Crypto::Ecdsa::P256::PublicKey::Verify() const
ecdsa.hpp:325
ot::Crypto::HmacSha256::Finish()::aHash
ot::Crypto::HmacSha256::Finish()
hmac_sha256.cpp:59
ot::Crypto::Sha256::Finish()::aHash
ot::Crypto::Sha256::Finish()
sha256.cpp:72
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()::aHash
ot::BorderRouter::RoutingManager::TxRaInfo::CalculateHash()
routing_manager.cpp:3784
Lifecycle
from
examples
All items filtered out
All items filtered out