Mayank Gupta / Mbed OS pelion-example-frdm

Dependencies:   FXAS21002 FXOS8700Q

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pal_plat_drbg_noise.h Source File

pal_plat_drbg_noise.h

00001 /*******************************************************************************
00002 * Copyright 2019 ARM Ltd.
00003 *
00004 * Licensed under the Apache License, Version 2.0 (the "License");
00005 * you may not use this file except in compliance with the License.
00006 * You may obtain a copy of the License at
00007 *
00008 *     http://www.apache.org/licenses/LICENSE-2.0
00009 *
00010 * Unless required by applicable law or agreed to in writing, software
00011 * distributed under the License is distributed on an "AS IS" BASIS,
00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013 * See the License for the specific language governing permissions and
00014 * limitations under the License.
00015 *******************************************************************************/
00016 
00017 #ifndef _PAL_PLAT_NOISE_H
00018 #define _PAL_PLAT_NOISE_H
00019 #include "pal.h"
00020 #include <stdint.h>
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00026 // This file is internal and should not be ported by the user!
00027 
00028 palStatus_t pal_plat_noiseInit(void);
00029 palStatus_t pal_plat_noiseDestroy(void);
00030 palStatus_t pal_plat_noiseWriteBuffer(int32_t* buffer, uint16_t lenBits, uint16_t* bitsWritten);
00031 palStatus_t pal_plat_noiseCreateThread(void);
00032 palStatus_t pal_plat_generateDrbgWithNoiseAttempt(palCtrDrbgCtxHandle_t drbgContext, uint8_t* outBuffer, bool partial, size_t numBytesToGenerate);
00033 
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 
00038 #endif // _PAL_PLAT_NOISE_H