Knight KE / Mbed OS Game_Master
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers objects_cryptocell.h Source File

objects_cryptocell.h

00001  /*
00002   *  objects_cryptocell.h
00003   *
00004   *  Copyright (C) 2017, Arm Limited, All Rights Reserved
00005   *  SPDX-License-Identifier: Apache-2.0
00006   *
00007   *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00008   *  not use this file except in compliance with the License.
00009   *  You may obtain a copy of the License at
00010   *
00011   *  http://www.apache.org/licenses/LICENSE-2.0
00012   *
00013   *  Unless required by applicable law or agreed to in writing, software
00014   *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00015   *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   *  See the License for the specific language governing permissions and
00017   *  limitations under the License.
00018   *
00019   */
00020 
00021 #ifndef MBED_OBJECTS_CRYPTOCELL_H
00022 #define MBED_OBJECTS_CRYPTOCELL_H
00023 #include "sns_silib.h"
00024 
00025 typedef struct  trng_s
00026 {
00027     /* parameters defining TRNG */
00028     CRYS_RND_mode_t  TrngMode;
00029 
00030     /* allowed ring oscillator lengths: bits 0,1,2,3  */
00031     uint32_t  RoscsAllowed;
00032 
00033     /* sampling interval: count of ring oscillator cycles between
00034        consecutive bits sampling */
00035     uint32_t  SubSamplingRatio;
00036 
00037     uint32_t  SubSamplingRatio1;
00038     uint32_t  SubSamplingRatio2;
00039     uint32_t  SubSamplingRatio3;
00040     uint32_t  SubSamplingRatio4;
00041 
00042 }CRYS_RND_Params_t;
00043 
00044 #endif // MBED_OBJECTS_CRYPTOCELL_H