Home
last modified time | relevance | path

Searched refs:aOutput (Results 1 – 12 of 12) sorted by relevance

/openthread-latest/src/posix/platform/
Dentropy.cpp91 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
100 VerifyOrExit(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
105 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
125 VerifyOrExit(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
129 aOutput[length] = (uint8_t)randomUint32Get(); in otPlatEntropyGet()
Dradio.cpp550 static void setDiagOutput(char *aOutput, size_t aSize) in setDiagOutput() argument
552 sDiagOutput = aOutput; in setDiagOutput()
/openthread-latest/examples/platforms/simulation/
Dentropy.c89 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
98 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
103 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
123 otEXPECT_ACTION(aOutput && aOutputLength, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
127 aOutput[length] = (uint8_t)randomUint32Get(); in otPlatEntropyGet()
/openthread-latest/src/core/crypto/
Daes_ecb.cpp50 void AesEcb::Encrypt(const uint8_t aInput[kBlockSize], uint8_t aOutput[kBlockSize]) in Encrypt()
52 SuccessOrAssert(otPlatCryptoAesEncrypt(&mContext, aInput, aOutput)); in Encrypt()
Daes_ecb.hpp85 void Encrypt(const uint8_t aInput[kBlockSize], uint8_t aOutput[kBlockSize]);
Dcrypto_platform.cpp120 … otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput) in otPlatCryptoAesEncrypt() argument
129 …VerifyOrExit((mbedtls_aes_crypt_ecb(context, MBEDTLS_AES_ENCRYPT, aInput, aOutput) == 0), error = … in otPlatCryptoAesEncrypt()
449 static int handleMbedtlsEntropyPoll(void *aData, unsigned char *aOutput, size_t aInLen, size_t *aOu… in handleMbedtlsEntropyPoll() argument
453 …SuccessOrExit(otPlatEntropyGet(reinterpret_cast<uint8_t *>(aOutput), static_cast<uint16_t>(aInLen)… in handleMbedtlsEntropyPoll()
/openthread-latest/tests/fuzz/
Dfuzzer_platform.cpp217 otError otDiagProcessCmd(otInstance *aInstance, uint8_t aArgsLength, char *aArgs[], char *aOutput, … in otDiagProcessCmd() argument
222 OT_UNUSED_VARIABLE(aOutput); in otDiagProcessCmd()
228 otError otDiagProcessCmdLine(otInstance *aInstance, const char *aString, char *aOutput, size_t aOut… in otDiagProcessCmdLine() argument
232 OT_UNUSED_VARIABLE(aOutput); in otDiagProcessCmdLine()
456 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
460 aOutput[length] = (uint8_t)rand(); in otPlatEntropyGet()
/openthread-latest/tests/nexus/platform/
Dnexus_misc.cpp85 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
94 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
/openthread-latest/include/openthread/platform/
Dentropy.h67 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength);
Dcrypto.h390 otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput);
/openthread-latest/tests/gtest/
Dfake_platform.cpp445 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
449 assert(aOutput != nullptr); in otPlatEntropyGet()
453 aOutput[length] = static_cast<uint8_t>(rand()); in otPlatEntropyGet()
/openthread-latest/tests/unit/
Dtest_platform.cpp197 OT_TOOL_WEAK otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength) in otPlatEntropyGet() argument
201 VerifyOrExit(aOutput, error = OT_ERROR_INVALID_ARGS); in otPlatEntropyGet()
211 readLength = fread(aOutput, 1, aOutputLength, file); in otPlatEntropyGet()
223 aOutput[length] = (uint8_t)rand(); in otPlatEntropyGet()