/openthread-latest/src/posix/platform/ |
D | entropy.cpp | 91 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()
|
D | radio.cpp | 550 static void setDiagOutput(char *aOutput, size_t aSize) in setDiagOutput() argument 552 sDiagOutput = aOutput; in setDiagOutput()
|
/openthread-latest/examples/platforms/simulation/ |
D | entropy.c | 89 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/ |
D | aes_ecb.cpp | 50 void AesEcb::Encrypt(const uint8_t aInput[kBlockSize], uint8_t aOutput[kBlockSize]) in Encrypt() 52 SuccessOrAssert(otPlatCryptoAesEncrypt(&mContext, aInput, aOutput)); in Encrypt()
|
D | aes_ecb.hpp | 85 void Encrypt(const uint8_t aInput[kBlockSize], uint8_t aOutput[kBlockSize]);
|
D | crypto_platform.cpp | 120 … 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/ |
D | fuzzer_platform.cpp | 217 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/ |
D | nexus_misc.cpp | 85 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/ |
D | entropy.h | 67 otError otPlatEntropyGet(uint8_t *aOutput, uint16_t aOutputLength);
|
D | crypto.h | 390 otError otPlatCryptoAesEncrypt(otCryptoContext *aContext, const uint8_t *aInput, uint8_t *aOutput);
|
/openthread-latest/tests/gtest/ |
D | fake_platform.cpp | 445 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/ |
D | test_platform.cpp | 197 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()
|