blob: 4895990f21f3430eb3609295a176b73226c98a04 [file] [log] [blame]
Manuel Pégourié-Gonnard4d8685b2015-08-05 15:44:42 +02001/*
2 * Elliptic curve J-PAKE
3 *
4 * Copyright (C) 2006-2015, 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 * This file is part of mbed TLS (https://tls.mbed.org)
20 */
21
22/*
23 * EC-JPAKE is defined in Chapter 7.4 of the Thread specification.
24 */
25
26#if !defined(MBEDTLS_CONFIG_FILE)
27#include "mbedtls/config.h"
28#else
29#include MBEDTLS_CONFIG_FILE
30#endif
31
32#if defined(MBEDTLS_ECJPAKE_C)
33
34#include "mbedtls/ecjpake.h"
35
36#if defined(MBEDTLS_SELF_TEST)
37
38#if defined(MBEDTLS_PLATFORM_C)
39#include "mbedtls/platform.h"
40#else
41#include <stdio.h>
42#define mbedtls_printf printf
43#endif
44
45/*
46 * Checkup routine
47 */
48int mbedtls_ecjpake_self_test( int verbose )
49{
50 int ret;
51
52 ret = 0; /* XXX */
53
54 if( verbose != 0 )
55 mbedtls_printf( "\n" );
56
57 return( ret );
58}
59
60#endif /* MBEDTLS_SELF_TEST */
61
62#endif /* MBEDTLS_ECJPAKE_C */