Home
last modified time | relevance | path

Searched refs:mContext (Results 1 – 25 of 33) sorted by relevance

12

/openthread-latest/src/core/crypto/
Dsha256.cpp45 mContext.mContext = mContextStorage; in Sha256()
46 mContext.mContextSize = sizeof(mContextStorage); in Sha256()
47 SuccessOrAssert(otPlatCryptoSha256Init(&mContext)); in Sha256()
50 Sha256::~Sha256(void) { SuccessOrAssert(otPlatCryptoSha256Deinit(&mContext)); } in ~Sha256()
52 void Sha256::Start(void) { SuccessOrAssert(otPlatCryptoSha256Start(&mContext)); } in Start()
56 SuccessOrAssert(otPlatCryptoSha256Update(&mContext, aBuf, aBufLength)); in Update()
72 void Sha256::Finish(Hash &aHash) { SuccessOrAssert(otPlatCryptoSha256Finish(&mContext, aHash.m8, Ha… in Finish()
Dhmac_sha256.cpp44 mContext.mContext = mContextStorage; in HmacSha256()
45 mContext.mContextSize = sizeof(mContextStorage); in HmacSha256()
47 SuccessOrAssert(otPlatCryptoHmacSha256Init(&mContext)); in HmacSha256()
50 HmacSha256::~HmacSha256(void) { SuccessOrAssert(otPlatCryptoHmacSha256Deinit(&mContext)); } in ~HmacSha256()
52 void HmacSha256::Start(const Key &aKey) { SuccessOrAssert(otPlatCryptoHmacSha256Start(&mContext, &a… in Start()
56 SuccessOrAssert(otPlatCryptoHmacSha256Update(&mContext, aBuf, aBufLength)); in Update()
61 SuccessOrAssert(otPlatCryptoHmacSha256Finish(&mContext, aHash.m8, Hash::kSize)); in Finish()
Daes_ecb.cpp43 mContext.mContext = mContextStorage; in AesEcb()
44 mContext.mContextSize = sizeof(mContextStorage); in AesEcb()
45 SuccessOrAssert(otPlatCryptoAesInit(&mContext)); in AesEcb()
48 void AesEcb::SetKey(const Key &aKey) { SuccessOrAssert(otPlatCryptoAesSetKey(&mContext, &aKey)); } in SetKey()
52 SuccessOrAssert(otPlatCryptoAesEncrypt(&mContext, aInput, aOutput)); in Encrypt()
55 AesEcb::~AesEcb(void) { SuccessOrAssert(otPlatCryptoAesFree(&mContext)); } in ~AesEcb()
Dhkdf_sha256.cpp47 mContext.mContext = mContextStorage; in HkdfSha256()
48 mContext.mContextSize = sizeof(mContextStorage); in HkdfSha256()
49 SuccessOrAssert(otPlatCryptoHkdfInit(&mContext)); in HkdfSha256()
52 HkdfSha256::~HkdfSha256(void) { SuccessOrAssert(otPlatCryptoHkdfDeinit(&mContext)); } in ~HkdfSha256()
56 SuccessOrAssert(otPlatCryptoHkdfExtract(&mContext, aSalt, aSaltLength, &aInputKey)); in Extract()
61 …SuccessOrAssert(otPlatCryptoHkdfExpand(&mContext, aInfo, aInfoLength, aOutputKey, aOutputKeyLength… in Expand()
Dcrypto_platform.cpp96 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesInit()
112 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesSetKey()
128 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesEncrypt()
143 context = static_cast<mbedtls_aes_context *>(aContext->mContext); in otPlatCryptoAesFree()
162 context = static_cast<mbedtls_md_context_t *>(aContext->mContext); in otPlatCryptoHmacSha256Init()
179 context = static_cast<mbedtls_md_context_t *>(aContext->mContext); in otPlatCryptoHmacSha256Deinit()
195 context = static_cast<mbedtls_md_context_t *>(aContext->mContext); in otPlatCryptoHmacSha256Start()
210 context = static_cast<mbedtls_md_context_t *>(aContext->mContext); in otPlatCryptoHmacSha256Update()
228 context = static_cast<mbedtls_md_context_t *>(aContext->mContext); in otPlatCryptoHmacSha256Finish()
242 new (aContext->mContext) HmacSha256::Hash(); in otPlatCryptoHkdfInit()
[all …]
Daes_ecb.hpp88 otCryptoContext mContext; member in ot::Crypto::AesEcb
Dhkdf_sha256.hpp96 otCryptoContext mContext; member in ot::Crypto::HkdfSha256
Dhmac_sha256.hpp126 otCryptoContext mContext; member in ot::Crypto::HmacSha256
Dsha256.hpp138 otCryptoContext mContext; member in ot::Crypto::Sha256
/openthread-latest/src/core/common/
Dcallback.hpp76 mContext = aContext; in Set()
99 void *GetContext(void) const { return mContext; } in GetContext()
112 return (mHandler == aHandler) && (mContext == aContext); in Matches()
125 return Matches(aOtherCallback.mHandler, aOtherCallback.mContext); in operator ==()
131 , mContext(nullptr) in CallbackBase()
136 void *mContext; member in ot::CallbackBase
167 using CallbackBase<HandlerType>::mContext;
190 return mHandler(static_cast<Args &&>(aArgs)..., mContext); in Invoke()
234 using CallbackBase<HandlerType>::mContext;
245 return mHandler(mContext, static_cast<Args &&>(aArgs)...); in Invoke()
Dtasklet.hpp193 , mContext(aContext) in TaskletContext()
202 void *GetContext(void) { return mContext; } in GetContext()
205 void *mContext; member in ot::TaskletContext
Dtimer.hpp367 , mContext(aContext) in TimerMilliContext()
376 void *GetContext(void) { return mContext; } in GetContext()
379 void *mContext; member in ot::TimerMilliContext
/openthread-latest/src/lib/hdlc/
Dhdlc.cpp204 , mContext(nullptr) in Decoder()
214 mContext = aContext; in Init()
266 mFrameHandler(mContext, error); in Decode()
282 mFrameHandler(mContext, OT_ERROR_NO_BUFS); in Decode()
302 mFrameHandler(mContext, OT_ERROR_NO_BUFS); in Decode()
Dhdlc.hpp177 void *mContext; member in ot::Hdlc::Decoder
/openthread-latest/include/openthread/
Dtcp.h243 void *mContext; ///< A pointer to application-specific context member
264 void *mContext; ///< Pointer to application-specific context member
649 void *mContext; ///< A pointer to application-specific context member
660 void *mContext; ///< Pointer to application-specific context member
Dudp.h69 void *mContext; ///< A pointer to application-specific context. member
131 void *mContext; ///< A pointer to application-specific context. member
Dicmp6.h127 void *mContext; ///< A pointer to arbitrary context information. member
Dcoap.h408 void *mContext; ///< Application-specific context member
431 void *mContext; ///< Application-specific context member
/openthread-latest/src/core/coap/
Dcoap.hpp169 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
201 mContext = aContext; in ResourceBlockWise()
213 …return mReceiveHook(otCoapBlockwiseResource::mContext, aBlock, aPosition, aBlockLength, aMore, aTo… in HandleBlockReceive()
218 … return mTransmitHook(otCoapBlockwiseResource::mContext, aBlock, aPosition, aBlockLength, aMore); in HandleBlockTransmit()
258 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
/openthread-latest/src/core/net/
Dicmp6.hpp204 mContext = aContext; in Handler()
211 mReceiveCallback(mContext, &aMessage, &aMessageInfo, &aIcmp6Header); in HandleReceiveMessage()
Dudp6.hpp169 mHandler(mContext, &aMessage, &aMessageInfo); in HandleUdpReceive()
381 mContext = aContext; in Receiver()
387 return mHandler(mContext, &aMessage, &aMessageInfo); in HandleMessage()
Dtcp6.hpp135 void *GetContext(void) { return mContext; } in GetContext()
438 void *GetContext(void) { return mContext; } in GetContext()
Dudp6.cpp80 mContext = aContext; in Socket()
92 …et::Open(NetifIdentifier aNetifId) { return Get<Udp>().Open(*this, aNetifId, mHandler, mContext); } in Open()
229 aSocket.mContext = aContext; in Open()
Dtcp6.cpp76 mContext = aArgs.mContext; in Initialize()
536 mContext = aArgs.mContext; in Initialize()
/openthread-latest/include/openthread/platform/
Dcrypto.h124 void *mContext; ///< Pointer to the context. member

12