code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
/* * Debugging routines * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
YifuLiu/AliOS-Things
components/mbedtls/library/debug.c
C
apache-2.0
12,779
/* * FIPS-46-3 compliant Triple-DES implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a c...
YifuLiu/AliOS-Things
components/mbedtls/library/des.c
C
apache-2.0
31,748
/* * Diffie-Hellman-Merkle key exchange * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the ...
YifuLiu/AliOS-Things
components/mbedtls/library/dhm.c
C
apache-2.0
18,851
/* * Elliptic curve Diffie-Hellman * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Licen...
YifuLiu/AliOS-Things
components/mbedtls/library/ecdh.c
C
apache-2.0
20,070
/* * Elliptic curve DSA * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
YifuLiu/AliOS-Things
components/mbedtls/library/ecdsa.c
C
apache-2.0
27,457
/* * Elliptic curve J-PAKE * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at *...
YifuLiu/AliOS-Things
components/mbedtls/library/ecjpake.c
C
apache-2.0
39,003
/* * Elliptic curves over GF(p): generic functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a c...
YifuLiu/AliOS-Things
components/mbedtls/library/ecp.c
C
apache-2.0
94,924
/* * Elliptic curves over GF(p): curve-specific data and functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * Yo...
YifuLiu/AliOS-Things
components/mbedtls/library/ecp_curves.c
C
apache-2.0
57,690
/* * Entropy accumulator implementation * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the ...
YifuLiu/AliOS-Things
components/mbedtls/library/entropy.c
C
apache-2.0
20,736
/* * Platform-specific and custom entropy polling functions * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may o...
YifuLiu/AliOS-Things
components/mbedtls/library/entropy_poll.c
C
apache-2.0
6,215
/* * Error message information * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License a...
YifuLiu/AliOS-Things
components/mbedtls/library/error.c
C
apache-2.0
46,978
/* * NIST SP800-38D compliant GCM implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a cop...
YifuLiu/AliOS-Things
components/mbedtls/library/gcm.c
C
apache-2.0
31,855
/** * \brief HAVEGE: HArdware Volatile Entropy Gathering and Expansion * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. *...
YifuLiu/AliOS-Things
components/mbedtls/library/havege.c
C
apache-2.0
9,052
/* * HKDF implementation -- RFC 5869 * * Copyright (C) 2016-2018, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Lic...
YifuLiu/AliOS-Things
components/mbedtls/library/hkdf.c
C
apache-2.0
4,755
/* * HMAC_DRBG implementation (NIST SP 800-90) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy ...
YifuLiu/AliOS-Things
components/mbedtls/library/hmac_drbg.c
C
apache-2.0
17,867
/** * \file mbedtls_md.c * * \brief Generic message digest wrapper for mbed TLS * * \author Adriaan de Jong <dejong@fox-it.com> * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * ...
YifuLiu/AliOS-Things
components/mbedtls/library/md.c
C
apache-2.0
12,973
/* * RFC 1115/1319 compliant MD2 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
YifuLiu/AliOS-Things
components/mbedtls/library/md2.c
C
apache-2.0
9,409
/* * RFC 1186/1320 compliant MD4 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
YifuLiu/AliOS-Things
components/mbedtls/library/md4.c
C
apache-2.0
11,929
/* * RFC 1321 compliant MD5 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of t...
YifuLiu/AliOS-Things
components/mbedtls/library/md5.c
C
apache-2.0
13,055
/** * \file md_wrap.c * * \brief Generic message digest wrapper for mbed TLS * * \author Adriaan de Jong <dejong@fox-it.com> * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * no...
YifuLiu/AliOS-Things
components/mbedtls/library/md_wrap.c
C
apache-2.0
14,152
/* * Buffer-based memory allocator * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Licen...
YifuLiu/AliOS-Things
components/mbedtls/library/memory_buffer_alloc.c
C
apache-2.0
19,374
/* * TCP/IP or UDP/IP networking functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of t...
YifuLiu/AliOS-Things
components/mbedtls/library/net_sockets.c
C
apache-2.0
17,570
/* * Implementation of NIST SP 800-38F key wrapping, supporting KW and KWP modes * only * * Copyright (C) 2018, Arm Limited (or its affiliates), All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except ...
YifuLiu/AliOS-Things
components/mbedtls/library/nist_kw.c
C
apache-2.0
24,340
/** * \file oid.c * * \brief Object Identifier (OID) database * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You ma...
YifuLiu/AliOS-Things
components/mbedtls/library/oid.c
C
apache-2.0
26,682
/* * VIA PadLock support functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Licen...
YifuLiu/AliOS-Things
components/mbedtls/library/padlock.c
C
apache-2.0
4,804
/* * Privacy Enhanced Mail (PEM) decoding * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of th...
YifuLiu/AliOS-Things
components/mbedtls/library/pem.c
C
apache-2.0
14,504
/* * Public Key abstraction layer * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Licens...
YifuLiu/AliOS-Things
components/mbedtls/library/pk.c
C
apache-2.0
15,779
/* * Public Key abstraction layer: wrapper functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a...
YifuLiu/AliOS-Things
components/mbedtls/library/pk_wrap.c
C
apache-2.0
20,587
/** * \file pkcs11.c * * \brief Wrapper for PKCS#11 library libpkcs11-helper * * \author Adriaan de Jong <dejong@fox-it.com> * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * no...
YifuLiu/AliOS-Things
components/mbedtls/library/pkcs11.c
C
apache-2.0
6,394
/* * PKCS#12 Personal Information Exchange Syntax * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a co...
YifuLiu/AliOS-Things
components/mbedtls/library/pkcs12.c
C
apache-2.0
10,961
/** * \file pkcs5.c * * \brief PKCS#5 functions * * \author Mathias Olsson <mathias@kompetensum.com> * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except i...
YifuLiu/AliOS-Things
components/mbedtls/library/pkcs5.c
C
apache-2.0
11,884
/* * Public Key layer for parsing key files and structures * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may ob...
YifuLiu/AliOS-Things
components/mbedtls/library/pkparse.c
C
apache-2.0
44,828
/* * Public Key layer for writing key files and structures * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may ob...
YifuLiu/AliOS-Things
components/mbedtls/library/pkwrite.c
C
apache-2.0
17,714
/* * Platform abstraction layer * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License ...
YifuLiu/AliOS-Things
components/mbedtls/library/platform.c
C
apache-2.0
9,681
/* * Common and shared functions used by multiple modules in the Mbed TLS * library. * * Copyright (C) 2018, Arm Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the Li...
YifuLiu/AliOS-Things
components/mbedtls/library/platform_util.c
C
apache-2.0
5,043
/** * \file poly1305.c * * \brief Poly1305 authentication algorithm. * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * ...
YifuLiu/AliOS-Things
components/mbedtls/library/poly1305.c
C
apache-2.0
17,179
/* * RIPE MD-160 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License ...
YifuLiu/AliOS-Things
components/mbedtls/library/ripemd160.c
C
apache-2.0
15,724
/* * The RSA public-key cryptosystem * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Lic...
YifuLiu/AliOS-Things
components/mbedtls/library/rsa.c
C
apache-2.0
84,699
/* * Helper functions for the RSA module * * Copyright (C) 2006-2017, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the...
YifuLiu/AliOS-Things
components/mbedtls/library/rsa_internal.c
C
apache-2.0
14,577
/* * FIPS-180-1 compliant SHA-1 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy ...
YifuLiu/AliOS-Things
components/mbedtls/library/sha1.c
C
apache-2.0
14,403
/* * FIPS-180-2 compliant SHA-256 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a cop...
YifuLiu/AliOS-Things
components/mbedtls/library/sha256.c
C
apache-2.0
16,437
/* * FIPS-180-2 compliant SHA-384/512 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a...
YifuLiu/AliOS-Things
components/mbedtls/library/sha512.c
C
apache-2.0
18,689
/* * SSL session cache implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Li...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_cache.c
C
apache-2.0
8,175
/** * \file ssl_ciphersuites.c * * \brief SSL ciphersuites for mbed TLS * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_ciphersuites.c
C
apache-2.0
103,754
/* * SSLv3/TLSv1 client-side functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the L...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_cli.c
C
apache-2.0
123,899
/* * DTLS cookie callbacks implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of th...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_cookie.c
C
apache-2.0
7,311
/* * SSLv3/TLSv1 server-side functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the L...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_srv.c
C
apache-2.0
152,498
/* * TLS server tickets callbacks implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a cop...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_ticket.c
C
apache-2.0
13,291
/* * SSLv3/TLSv1 shared functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Licens...
YifuLiu/AliOS-Things
components/mbedtls/library/ssl_tls.c
C
apache-2.0
321,547
/* * Threading abstraction layer * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License...
YifuLiu/AliOS-Things
components/mbedtls/library/threading.c
C
apache-2.0
6,508
/* * Portable interface to the CPU cycle counter * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a cop...
YifuLiu/AliOS-Things
components/mbedtls/library/timing.c
C
apache-2.0
14,703
/* * Version information * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
YifuLiu/AliOS-Things
components/mbedtls/library/version.c
C
apache-2.0
1,374
/* * Version feature information * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License...
YifuLiu/AliOS-Things
components/mbedtls/library/version_features.c
C
apache-2.0
26,675
/* * X.509 common functions for parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obta...
YifuLiu/AliOS-Things
components/mbedtls/library/x509.c
C
apache-2.0
28,723
/* * X.509 base functions for creating certificates / CSRs * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may ob...
YifuLiu/AliOS-Things
components/mbedtls/library/x509_create.c
C
apache-2.0
12,822
/* * X.509 Certidicate Revocation List (CRL) parsing * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a...
YifuLiu/AliOS-Things
components/mbedtls/library/x509_crl.c
C
apache-2.0
21,503
/* * X.509 certificate parsing and verification * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy...
YifuLiu/AliOS-Things
components/mbedtls/library/x509_crt.c
C
apache-2.0
85,007
/* * X.509 Certificate Signing Request (CSR) parsing * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a...
YifuLiu/AliOS-Things
components/mbedtls/library/x509_csr.c
C
apache-2.0
10,791
/* * X.509 certificate writing * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License a...
YifuLiu/AliOS-Things
components/mbedtls/library/x509write_crt.c
C
apache-2.0
16,517
/* * X.509 Certificate Signing Request writing * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy ...
YifuLiu/AliOS-Things
components/mbedtls/library/x509write_csr.c
C
apache-2.0
8,599
/* * An 32-bit implementation of the XTEA algorithm * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a ...
YifuLiu/AliOS-Things
components/mbedtls/library/xtea.c
C
apache-2.0
7,384
/* * Copyright (C) 2018 Alibaba Group Holding Limited */ #ifndef MBEDTLS_THREADING_ALT_H #define MBEDTLS_THREADING_ALT_H #include <stdlib.h> #include <aos/kernel.h> #ifdef __cplusplus extern "C" { #endif typedef struct { aos_mutex_t mutex; char is_valid; } mbedtls_threading_mutex_t; void threading_mutex_...
YifuLiu/AliOS-Things
components/mbedtls/platform/aos/include/threading_alt.h
C
apache-2.0
618
/* * TCP/IP or UDP/IP networking functions * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of t...
YifuLiu/AliOS-Things
components/mbedtls/platform/aos/library/net_sockets.c
C
apache-2.0
9,432
/* * Copyright (C) 2015-2018 Alibaba Group Holding Limited */ /* This file provides implementation of common (libc) functions that is defined * in platform abstraction layer for AliOS Things. */ #if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/config.h" #else #include MBEDTLS_CONFIG_FILE #endif #if defined(MB...
YifuLiu/AliOS-Things
components/mbedtls/platform/aos/library/platform.c
C
apache-2.0
1,593
/* * Copyright (C) 2018 Alibaba Group Holding Limited */ /* This file provides threading mutex implementation for AliOS Things. */ #if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/config.h" #else #include MBEDTLS_CONFIG_FILE #endif #if defined(MBEDTLS_THREADING_ALT) #include <aos/kernel.h> #include "mbedtls/th...
YifuLiu/AliOS-Things
components/mbedtls/platform/aos/library/threading_alt.c
C
apache-2.0
1,321
/* * Copyright (C) 2019 Alibaba Group Holding Limited * * SPDX-License-Identifier: Apache-2.0 */ #ifndef MBEDTLS_CONFIG_H #define MBEDTLS_CONFIG_H /* Platform configuration * These configurations can't placed into package.yaml, that can produce too long * parameters in building commands to cause building error ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_aos_base.h
C
apache-2.0
9,343
/* * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_yoc_alicoap.h
C
apache-2.0
5,092
/* * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_yoc_aliiot.h
C
apache-2.0
5,098
/* * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_yoc_alimqtt.h
C
apache-2.0
5,090
/* * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_yoc_base.h
C
apache-2.0
4,786
/* * Minimal configuration for TLS 1.2 with PSK and AES-CCM ciphersuites * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. ...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/config_yoc_tls.h
C
apache-2.0
5,178
#ifndef _PLAT_MBEDTLS_CONFIG_H_ #define _PLAT_MBEDTLS_CONFIG_H_ #if defined(CONFIG_CLOUDIO_ALICOAP) && defined(CONFIG_CLOUDIO_ALIMQTT) #include "config_yoc_aliiot.h" #elif defined(CONFIG_CLOUDIO_ALICOAP) #include "config_yoc_alicoap.h" #elif defined(CONFIG_CLOUDIO_ALIMQTT) #include "config_yoc_alimqtt.h" #...
YifuLiu/AliOS-Things
components/mbedtls/platform/include/platform_config.h
C
apache-2.0
541
/* **************************************************************************** * * * C-Sky Microsystems Confidential * * ------------------------------- * * Thi...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/aes_alt.c
C
apache-2.0
8,155
#if !defined(MBEDTLS_CONFIG_FILE) #include "mbedtls/config.h" #else #include MBEDTLS_CONFIG_FILE #endif #if !defined(MBEDTLS_CTR_DRBG_C) #include "mbedtls/ctr_drbg.h" #include <string.h> #if defined(CONFIG_TEE_CA) #include <drv/tee.h> #endif static void _tls_random(unsigned char *output, size_t output_len) { #if def...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/ctr_drbg.c
C
apache-2.0
1,300
/* **************************************************************************** * * * C-Sky Microsystems Confidential * * ------------------------------- * * Thi...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/include/aes_alt.h
C
apache-2.0
5,895
/** * \file rsa.h * * \brief The RSA public-key cryptosystem * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/include/rsa_alt.h
C
apache-2.0
14,083
/** * \file sha1.h * * \brief SHA-1 cryptographic hash function * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You ...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/include/sha1_alt.h
C
apache-2.0
2,393
/** * \file sha256.h * * \brief SHA-224 and SHA-256 cryptographic hash function * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the L...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/include/sha256_alt.h
C
apache-2.0
2,806
/** * \file timing.h * * \brief Portable interface to the CPU cycle counter * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the Licen...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/include/timing_alt.h
C
apache-2.0
3,417
/* * TCP/IP or UDP/IP networking functions * modified for LWIP support on ESP32 * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * Additions Copyright (C) 2015 Angus Gratton * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * n...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/net_sockets.c
C
apache-2.0
11,929
/* * The RSA public-key cryptosystem * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Lic...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/rsa_alt.c
C
apache-2.0
19,560
/* * FIPS-180-1 compliant SHA-1 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy ...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/sha1_alt.c
C
apache-2.0
2,589
/* * FIPS-180-2 compliant SHA-256 implementation * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a cop...
YifuLiu/AliOS-Things
components/mbedtls/platform/yoc/sha256_alt.c
C
apache-2.0
3,714
add_subdirectory(aes) add_subdirectory(hash) add_subdirectory(pkey) add_subdirectory(random) add_subdirectory(ssl) add_subdirectory(test) add_subdirectory(x509) add_subdirectory(util)
YifuLiu/AliOS-Things
components/mbedtls/programs/CMakeLists.txt
CMake
apache-2.0
184
# To compile on SunOS: add "-lsocket -lnsl" to LDFLAGS # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS CFLAGS ?= -O2 WARNING_CFLAGS ?= -Wall -W -Wdeclaration-after-statement WARNING_CXXFLAGS ?= -Wall -W LDFLAGS ?= LOCAL_CFLAGS = $(WARNING_CFLAGS) -I../include -D_FILE_OFFSET_BITS=64 LOCAL_CXXFLAGS = $(WARN...
YifuLiu/AliOS-Things
components/mbedtls/programs/Makefile
Makefile
apache-2.0
11,340
add_executable(aescrypt2 aescrypt2.c) target_link_libraries(aescrypt2 mbedtls) add_executable(crypt_and_hash crypt_and_hash.c) target_link_libraries(crypt_and_hash mbedtls) install(TARGETS aescrypt2 crypt_and_hash DESTINATION "bin" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXEC...
YifuLiu/AliOS-Things
components/mbedtls/programs/aes/CMakeLists.txt
CMake
apache-2.0
350
/* * AES-256 file encryption program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the Lic...
YifuLiu/AliOS-Things
components/mbedtls/programs/aes/aescrypt2.c
C
apache-2.0
13,247
/* * \brief Generic file encryption program using generic wrappers for configured * security. * * Copyright (C) 2006-2016, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except ...
YifuLiu/AliOS-Things
components/mbedtls/programs/aes/crypt_and_hash.c
C
apache-2.0
17,145
add_executable(hello hello.c) target_link_libraries(hello mbedtls) add_executable(generic_sum generic_sum.c) target_link_libraries(generic_sum mbedtls) install(TARGETS hello generic_sum DESTINATION "bin" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE...
YifuLiu/AliOS-Things
components/mbedtls/programs/hash/CMakeLists.txt
CMake
apache-2.0
322
/* * generic message digest layer demonstration program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtai...
YifuLiu/AliOS-Things
components/mbedtls/programs/hash/generic_sum.c
C
apache-2.0
6,720
/* * Classic "Hello, world" demonstration program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a co...
YifuLiu/AliOS-Things
components/mbedtls/programs/hash/hello.c
C
apache-2.0
2,280
add_executable(dh_client dh_client.c) target_link_libraries(dh_client mbedtls) add_executable(dh_genprime dh_genprime.c) target_link_libraries(dh_genprime mbedtls) add_executable(dh_server dh_server.c) target_link_libraries(dh_server mbedtls) add_executable(ecdh_curve25519 ecdh_curve25519.c) target_link_libraries(ec...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/CMakeLists.txt
CMake
apache-2.0
1,953
/* * Diffie-Hellman-Merkle key exchange (client side) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain ...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/dh_client.c
C
apache-2.0
9,644
/* * Diffie-Hellman-Merkle key exchange (prime generation) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may ob...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/dh_genprime.c
C
apache-2.0
6,257
/* * Diffie-Hellman-Merkle key exchange (server side) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain ...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/dh_server.c
C
apache-2.0
10,639
/* * Example ECDHE with Curve25519 program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of t...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/ecdh_curve25519.c
C
apache-2.0
7,605
/* * Example ECDSA program * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at *...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/ecdsa.c
C
apache-2.0
7,547
/* * Key generation application * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License ...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/gen_key.c
C
apache-2.0
13,787
/* * Key reading application * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at ...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/key_app.c
C
apache-2.0
10,436
/* * Key writing application * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at ...
YifuLiu/AliOS-Things
components/mbedtls/programs/pkey/key_app_writer.c
C
apache-2.0
13,003