BA
/
BaBoRo1
Embed:
(wiki syntax)
Show/hide line numbers
mbedtls_stub.h
00001 /* 00002 * Copyright (c) 2015-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 #ifndef MBEDTLS_STUB_H 00018 #define MBEDTLS_STUB_H 00019 00020 #define MBEDTLS_SSL_EXPORT_KEYS 00021 00022 #include <inttypes.h> 00023 #include <stdbool.h> 00024 #include "mbedtls/platform.h" 00025 #include "mbedtls/ssl.h" 00026 #include "mbedtls/ctr_drbg.h" 00027 #include "mbedtls/x509_crt.h" 00028 #include "mbedtls/sha256.h" 00029 #include "mbedtls/entropy.h" 00030 #include "mbedtls/pk.h" 00031 00032 00033 00034 #define HANDSHAKE_FINISHED_VALUE 8888 00035 #define HANDSHAKE_FINISHED_VALUE_RETURN_ZERO 8889 00036 00037 typedef struct { 00038 int crt_expected_int; 00039 bool useCounter; 00040 int counter; 00041 int retArray[20]; 00042 int expected_int; 00043 uint32_t uint32_value; 00044 bool invalidate_timer; 00045 void *cookie_obj; 00046 unsigned char cookie_value[8]; 00047 size_t cookie_len; 00048 } mbedtls_stub_def; 00049 00050 extern mbedtls_stub_def mbedtls_stub; 00051 00052 #endif // MBEDTLS_STUB_H
Generated on Tue Jul 12 2022 12:22:12 by
