Home
last modified time | relevance | path

Searched refs:aTokenLength (Results 1 – 4 of 4) sorted by relevance

/openthread-2.7.6/src/core/coap/
Dcoap_message.cpp384 Error Message::SetToken(const uint8_t *aToken, uint8_t aTokenLength) in SetToken() argument
386 OT_ASSERT(aTokenLength <= kMaxTokenLength); in SetToken()
388 SetTokenLength(aTokenLength); in SetToken()
389 memcpy(GetToken(), aToken, aTokenLength); in SetToken()
390 GetHelpData().mHeaderLength += aTokenLength; in SetToken()
395 Error Message::GenerateRandomToken(uint8_t aTokenLength) in GenerateRandomToken() argument
399 OT_ASSERT(aTokenLength <= sizeof(token)); in GenerateRandomToken()
401 IgnoreError(Random::Crypto::FillBuffer(token, aTokenLength)); in GenerateRandomToken()
403 return SetToken(token, aTokenLength); in GenerateRandomToken()
Dcoap_message.hpp387 Error SetToken(const uint8_t *aToken, uint8_t aTokenLength);
409 Error GenerateRandomToken(uint8_t aTokenLength);
973 void SetTokenLength(uint8_t aTokenLength) in SetTokenLength() argument
976 …GetHelpData().mHeader.mVersionTypeToken |= ((aTokenLength << kTokenLengthOffset) & kTokenLengthMas… in SetTokenLength()
/openthread-2.7.6/src/core/api/
Dcoap_api.cpp69 otError otCoapMessageSetToken(otMessage *aMessage, const uint8_t *aToken, uint8_t aTokenLength) in otCoapMessageSetToken() argument
71 return static_cast<Coap::Message *>(aMessage)->SetToken(aToken, aTokenLength); in otCoapMessageSetToken()
74 void otCoapMessageGenerateToken(otMessage *aMessage, uint8_t aTokenLength) in otCoapMessageGenerateToken() argument
76 IgnoreError(static_cast<Coap::Message *>(aMessage)->GenerateRandomToken(aTokenLength)); in otCoapMessageGenerateToken()
/openthread-2.7.6/include/openthread/
Dcoap.h522 otError otCoapMessageSetToken(otMessage *aMessage, const uint8_t *aToken, uint8_t aTokenLength);
531 void otCoapMessageGenerateToken(otMessage *aMessage, uint8_t aTokenLength);