Mbed OS Reference
Loading...
Searching...
No Matches
objects_cryptocell.h
1 /*
2 * objects_cryptocell.h
3 *
4 * Copyright (C) 2017, Arm Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 */
20
21#ifndef MBED_OBJECTS_CRYPTOCELL_H
22#define MBED_OBJECTS_CRYPTOCELL_H
23#include "sns_silib.h"
24
25typedef struct trng_s
26{
27 /* parameters defining TRNG */
28 CRYS_RND_mode_t TrngMode;
29
30 /* allowed ring oscillator lengths: bits 0,1,2,3 */
31 uint32_t RoscsAllowed;
32
33 /* sampling interval: count of ring oscillator cycles between
34 consecutive bits sampling */
35 uint32_t SubSamplingRatio;
36
37 uint32_t SubSamplingRatio1;
38 uint32_t SubSamplingRatio2;
39 uint32_t SubSamplingRatio3;
40 uint32_t SubSamplingRatio4;
41
43
44#endif // MBED_OBJECTS_CRYPTOCELL_H