mbed-os5 only for TYBLE16
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
features/cryptocell/FEATURE_CRYPTOCELL310/objects_cryptocell.h@1:9db0e321a9f4, 2019-12-31 (annotated)
- Committer:
- kenjiArai
- Date:
- Tue Dec 31 06:02:27 2019 +0000
- Revision:
- 1:9db0e321a9f4
- Parent:
- 0:5b88d5760320
updated based on mbed-os5.15.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:5b88d5760320 | 1 | /* |
kenjiArai | 0:5b88d5760320 | 2 | * objects_cryptocell.h |
kenjiArai | 0:5b88d5760320 | 3 | * |
kenjiArai | 0:5b88d5760320 | 4 | * Copyright (C) 2017, Arm Limited, All Rights Reserved |
kenjiArai | 0:5b88d5760320 | 5 | * SPDX-License-Identifier: Apache-2.0 |
kenjiArai | 0:5b88d5760320 | 6 | * |
kenjiArai | 0:5b88d5760320 | 7 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
kenjiArai | 0:5b88d5760320 | 8 | * not use this file except in compliance with the License. |
kenjiArai | 0:5b88d5760320 | 9 | * You may obtain a copy of the License at |
kenjiArai | 0:5b88d5760320 | 10 | * |
kenjiArai | 0:5b88d5760320 | 11 | * http://www.apache.org/licenses/LICENSE-2.0 |
kenjiArai | 0:5b88d5760320 | 12 | * |
kenjiArai | 0:5b88d5760320 | 13 | * Unless required by applicable law or agreed to in writing, software |
kenjiArai | 0:5b88d5760320 | 14 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
kenjiArai | 0:5b88d5760320 | 15 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kenjiArai | 0:5b88d5760320 | 16 | * See the License for the specific language governing permissions and |
kenjiArai | 0:5b88d5760320 | 17 | * limitations under the License. |
kenjiArai | 0:5b88d5760320 | 18 | * |
kenjiArai | 0:5b88d5760320 | 19 | */ |
kenjiArai | 0:5b88d5760320 | 20 | |
kenjiArai | 0:5b88d5760320 | 21 | #ifndef MBED_OBJECTS_CRYPTOCELL_H |
kenjiArai | 0:5b88d5760320 | 22 | #define MBED_OBJECTS_CRYPTOCELL_H |
kenjiArai | 0:5b88d5760320 | 23 | #include "sns_silib.h" |
kenjiArai | 0:5b88d5760320 | 24 | |
kenjiArai | 0:5b88d5760320 | 25 | typedef struct trng_s |
kenjiArai | 0:5b88d5760320 | 26 | { |
kenjiArai | 0:5b88d5760320 | 27 | /* parameters defining TRNG */ |
kenjiArai | 0:5b88d5760320 | 28 | CRYS_RND_mode_t TrngMode; |
kenjiArai | 0:5b88d5760320 | 29 | |
kenjiArai | 0:5b88d5760320 | 30 | /* allowed ring oscillator lengths: bits 0,1,2,3 */ |
kenjiArai | 0:5b88d5760320 | 31 | uint32_t RoscsAllowed; |
kenjiArai | 0:5b88d5760320 | 32 | |
kenjiArai | 0:5b88d5760320 | 33 | /* sampling interval: count of ring oscillator cycles between |
kenjiArai | 0:5b88d5760320 | 34 | consecutive bits sampling */ |
kenjiArai | 0:5b88d5760320 | 35 | uint32_t SubSamplingRatio; |
kenjiArai | 0:5b88d5760320 | 36 | |
kenjiArai | 0:5b88d5760320 | 37 | uint32_t SubSamplingRatio1; |
kenjiArai | 0:5b88d5760320 | 38 | uint32_t SubSamplingRatio2; |
kenjiArai | 0:5b88d5760320 | 39 | uint32_t SubSamplingRatio3; |
kenjiArai | 0:5b88d5760320 | 40 | uint32_t SubSamplingRatio4; |
kenjiArai | 0:5b88d5760320 | 41 | |
kenjiArai | 0:5b88d5760320 | 42 | }CRYS_RND_Params_t; |
kenjiArai | 0:5b88d5760320 | 43 | |
kenjiArai | 0:5b88d5760320 | 44 | #endif // MBED_OBJECTS_CRYPTOCELL_H |