Home
last modified time | relevance | path

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

12

/openthread-3.4.0/src/core/crypto/
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()
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()
Dhkdf_sha256.cpp48 mContext.mContext = mContextStorage; in HkdfSha256()
49 mContext.mContextSize = sizeof(mContextStorage); in HkdfSha256()
50 SuccessOrAssert(otPlatCryptoHkdfInit(&mContext)); in HkdfSha256()
53 HkdfSha256::~HkdfSha256(void) { SuccessOrAssert(otPlatCryptoHkdfDeinit(&mContext)); } in ~HkdfSha256()
57 SuccessOrAssert(otPlatCryptoHkdfExtract(&mContext, aSalt, aSaltLength, &aInputKey)); in Extract()
62 …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.hpp94 otCryptoContext mContext; member in ot::Crypto::AesEcb
Dhkdf_sha256.hpp101 otCryptoContext mContext; member in ot::Crypto::HkdfSha256
Dhmac_sha256.hpp136 otCryptoContext mContext; member in ot::Crypto::HmacSha256
Dsha256.hpp149 otCryptoContext mContext; member in ot::Crypto::Sha256
/openthread-3.4.0/src/core/common/
Dcallback.hpp80 mContext = aContext; in Set()
106 void *GetContext(void) const { return mContext; } in GetContext()
120 return (mHandler == aHandler) && (mContext == aContext); in Matches()
126 , mContext(nullptr) in CallbackBase()
131 void *mContext; member in ot::CallbackBase
163 using CallbackBase<HandlerType>::mContext;
188 return mHandler(static_cast<Args &&>(aArgs)..., mContext); in Invoke()
215 using CallbackBase<HandlerType>::mContext;
226 return mHandler(mContext, static_cast<Args &&>(aArgs)...); in Invoke()
Dtasklet.hpp201 , mContext(aContext) in TaskletContext()
211 void *GetContext(void) { return mContext; } in GetContext()
214 void *mContext; member in ot::TaskletContext
Dtimer.hpp298 , mContext(aContext) in TimerMilliContext()
308 void *GetContext(void) { return mContext; } in GetContext()
311 void *mContext; member in ot::TimerMilliContext
/openthread-3.4.0/src/lib/hdlc/
Dhdlc.cpp206 , mContext(aContext) in Decoder()
261 mFrameHandler(mContext, error); in Decode()
277 mFrameHandler(mContext, OT_ERROR_NO_BUFS); in Decode()
297 mFrameHandler(mContext, OT_ERROR_NO_BUFS); in Decode()
Dhdlc.hpp587 void *mContext; member in ot::Hdlc::Decoder
/openthread-3.4.0/include/openthread/
Dtcp.h252 void *mContext; ///< A pointer to application-specific context member
274 void *mContext; ///< Pointer to application-specific context member
677 void *mContext; ///< A pointer to application-specific context member
689 void *mContext; ///< Pointer to application-specific context member
Dudp.h73 void *mContext; ///< A pointer to application-specific context. member
128 void *mContext; ///< A pointer to application-specific context. member
Dicmp6.h132 void *mContext; ///< A pointer to arbitrary context information. member
Dcoap.h419 void *mContext; ///< Application-specific context member
443 void *mContext; ///< Application-specific context member
/openthread-3.4.0/src/core/net/
Dudp6.hpp143 mHandler(mContext, &aMessage, &aMessageInfo); in HandleUdpReceive()
347 mContext = aContext; in Receiver()
353 return mHandler(mContext, &aMessage, &aMessageInfo); in HandleMessage()
Dicmp6.hpp223 mContext = aContext; in Handler()
230 mReceiveCallback(mContext, &aMessage, &aMessageInfo, &aIcmp6Header); in HandleReceiveMessage()
Dtcp6.hpp141 void *GetContext(void) { return mContext; } in GetContext()
459 void *GetContext(void) { return mContext; } in GetContext()
Dtcp6.cpp91 mContext = aArgs.mContext; in Initialize()
520 mContext = aArgs.mContext; in Initialize()
/openthread-3.4.0/src/core/coap/
Dcoap.hpp180 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
213 mContext = aContext; in ResourceBlockWise()
225 …return mReceiveHook(otCoapBlockwiseResource::mContext, aBlock, aPosition, aBlockLength, aMore, aTo… in HandleBlockReceive()
230 … return mTransmitHook(otCoapBlockwiseResource::mContext, aBlock, aPosition, aBlockLength, aMore); in HandleBlockTransmit()
274 mHandler(mContext, &aMessage, &aMessageInfo); in HandleRequest()
/openthread-3.4.0/include/openthread/platform/
Dcrypto.h132 void *mContext; ///< Pointer to the context. member
/openthread-3.4.0/src/cli/
Dcli_tcp.cpp206 endpointArgs.mContext = this; in Process()
219 listenerArgs.mContext = this; in Process()

12