WebCryptoKeyPlaintext_initKey(&cryptoKey1, keyingMaterial, sizeof(keyingMaterial)); AESECB_Operation operation; AESECB_Operation_init(&operation); 为什么 AESECB_open失败,返回为NULL?这个代码是参考例程的,有问题吗? 取消 向上0向下 取消 WebTRNG_Handle rndHandle; int_fast16_t rndRes; CryptoKey entropyKey; uint8_t entropyBuffer [KEY_LENGTH_BYTES]; rndHandle = TRNG_open (CONFIG_TRNG_0, NULL); if (!rndHandle) …
connectedhomeip/ble_user_config.c at master · project …
WebCryptoKeyPlaintext_initBlankKey(&entropyKey, entropyBuffer, KEY_LENGTH_BYTES); result = TRNG_generateEntropy(handle, &entropyKey); if (result != TRNG_STATUS_SUCCESS) { // Handle error while(1); } TRNG_close(handle); Make sure to use the TRNG instance from SysConfig. Regards, WebMatter (formerly Project CHIP) is creating more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity S... tactic stock
coresdk_cc13xx_cc26xx/TRNG.h at master - Github
WebThis thread has been locked. If you have a related question, please click the "Ask a related question" button in the top right corner.The newly created question will be automatically linked to this question. WebCryptoKeyPlaintext_initBlankKey (&entropyKey, keyLocationBuffer, size); TRNG_Params_init (¶mTrng); paramTrng.returnBehavior = TRNG_RETURN_BEHAVIOR_CALLBACK; paramTrng.callbackFxn = trng_callback; paramTrng.timeout = SemaphoreP_WAIT_FOREVER; /* Open a TRNG_Handle with default parameters */ handleTrng = TRNG_open … Web* CryptoKeyPlaintext_initBlankKey (&entropyKey, entropyBuffer, KEY_LENGTH_BYTES); * * result = TRNG_generateEntropy (handle, &entropyKey); * * TRNG_close (handle); * * … tactic synonyms