Home
last modified time | relevance | path

Searched +full:- +full:n (Results 1 – 25 of 282) sorted by relevance

12345678910>>...12

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dcerts.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
34 "-----BEGIN CERTIFICATE-----\r\n" \
35 "MIICUjCCAdegAwIBAgIJAMFD4n5iQ8zoMAoGCCqGSM49BAMCMD4xCzAJBgNVBAYT\r\n" \
36 "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \
37 "QyBDQTAeFw0xMzA5MjQxNTQ5NDhaFw0yMzA5MjIxNTQ5NDhaMD4xCzAJBgNVBAYT\r\n" \
38 "Ak5MMREwDwYDVQQKEwhQb2xhclNTTDEcMBoGA1UEAxMTUG9sYXJzc2wgVGVzdCBF\r\n" \
39 "QyBDQTB2MBAGByqGSM49AgEGBSuBBAAiA2IABMPaKzRBN1gvh1b+/Im6KUNLTuBu\r\n" \
40 "ww5XUzM5WNRStJGVOQsj318XJGJI/BqVKc4sLYfCiFKAr9ZqqyHduNMcbli4yuiy\r\n" \
[all …]
Daesni.c2 * AES-NI support functions
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
23 …* [AES-WP] http://software.intel.com/en-us/articles/intel-advanced-encryption-standard-aes-instruc…
24 …* [CLMUL-WP] http://software.intel.com/en-us/articles/intel-carry-less-multiplication-instruction-
46 * AES-NI support detection routine
55 asm( "movl $1, %%eax \n\t" in mbedtls_aesni_has_support()
56 "cpuid \n\t" in mbedtls_aesni_has_support()
67 * Binutils needs to be at least 2.19 to support AES-NI instructions.
[all …]
Dpadlock.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
51 static int flags = -1; in mbedtls_padlock_has_support()
54 if( flags == -1 ) in mbedtls_padlock_has_support()
56 asm( "movl %%ebx, %0 \n\t" in mbedtls_padlock_has_support()
57 "movl $0xC0000000, %%eax \n\t" in mbedtls_padlock_has_support()
58 "cpuid \n\t" in mbedtls_padlock_has_support()
59 "cmpl $0xC0000001, %%eax \n\t" in mbedtls_padlock_has_support()
60 "movl $0, %%edx \n\t" in mbedtls_padlock_has_support()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dbn_mul.h4 * \brief Multi-precision integer library
6 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
7 * SPDX-License-Identifier: Apache-2.0
13 * http://www.apache.org/licenses/LICENSE-2.0
29 * . IA-32 (386+) . AMD64 / EM64T
30 * . IA-32 (SSE2) . Motorola 68000
31 * . PowerPC, 32-bit . MicroBlaze
32 * . PowerPC, 64-bit . TriCore
48 /* armcc5 --gnu defines __GNUC__ but doesn't support GNU's extended asm */
55 "movl %%ebx, %0 \n\t" \
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_pem.data2-----START TEST-----\n":"-----END TEST-----\n":"000102030405060708090A0B0C0D0E0F000102030405060708…
5 mbedtls_pem_write_buffer:"-----START TEST-----\n":"-----END TEST-----\n":"":"-----START TEST-----\n…
8 mbedtls_pem_write_buffer:"-----START TEST-----\n":"-----END TEST-----\n":"00":"-----START TEST-----
11-----START TEST-----\n":"-----END TEST-----\n":"000102030405060708090A0B0C0D0E0F000102030405060708…
14-----START TEST-----\n":"-----END TEST-----\n":"000102030405060708090A0B0C0D0E0F000102030405060708…
17-----START TEST-----\n":"-----END TEST-----\n":"000102030405060708090A0B0C0D0E0F000102030405060708…
Dtest_suite_ccm.data4 CCM init #1 AES-128: OK
8 CCM init #2 CAMELLIA-256: OK
12 CCM init #3 AES-224: bad key size
16 CCM init #4 BLOWFISH-128: bad block size
38 CCM lenghts #7 AD too long (2^16 - 2^8 + 1)
140 CCM encrypt and tag NIST VTT AES-128 #1 (P=24, N=13, A=32, T=4)
144 CCM encrypt and tag NIST VTT AES-128 #2 (P=24, N=13, A=32, T=6)
148 CCM encrypt and tag NIST VTT AES-128 #3 (P=24, N=13, A=32, T=8)
152 CCM encrypt and tag NIST VTT AES-128 #4 (P=24, N=13, A=32, T=10)
156 CCM encrypt and tag NIST VTT AES-128 #5 (P=24, N=13, A=32, T=12)
[all …]
Dtest_suite_cipher.ccm.data1 AES-128-CCM test vector NIST #1 (P=0, N=7, A=0, T=4)
5 AES-128-CCM test vector NIST #2 (P=0, N=7, A=0, T=4)
9 AES-128-CCM test vector NIST #3 (P=0, N=7, A=0, T=16)
13 AES-128-CCM test vector NIST #4 (P=0, N=7, A=0, T=16)
17 AES-128-CCM test vector NIST #5 (P=0, N=13, A=0, T=4)
21 AES-128-CCM test vector NIST #6 (P=0, N=13, A=0, T=4)
25 AES-128-CCM test vector NIST #7 (P=0, N=13, A=0, T=16)
29 AES-128-CCM test vector NIST #8 (P=0, N=13, A=0, T=16)
33 AES-128-CCM test vector NIST #9 (P=24, N=7, A=0, T=4)
37 AES-128-CCM test vector NIST #10 (P=24, N=7, A=0, T=4)
[all …]
/net-tools-3.6.0/tinydtls-0.8.2/tests/
Dccm-test.c10 #include "contiki-lib.h"
11 #include "contiki-net.h"
18 #include "ccm-testdata.c"
22 int n; in fls() local
23 for (n = 0; i; n++) in fls()
25 return n; in fls()
37 printf("\n\t"); in dump()
39 printf("\n"); in dump()
51 int n; local
59 for (n = 0; n < sizeof(data)/sizeof(struct test_vector); ++n) {
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/
Dcert_write.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
45 "MBEDTLS_ERROR_C not defined.\n"); in main()
62 " request_file=%%s default: (empty)\n" \
63 " If request_file is specified, subject_key,\n" \
64 " subject_pwd and subject_name are ignored!\n"
83 #define DFL_MAX_PATHLEN -1
88 "\n usage: cert_write param=<>...\n" \
89 "\n acceptable parameters:\n" \
[all …]
Dcert_app.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
50 "MBEDTLS_CTR_DRBG_C not defined.\n"); in main()
81 " ca_file=%%s The single file containing the top-level CA(s) you fully trust\n" \
82 " default: \"\" (none)\n" \
83 " crl_file=%%s The single CRL file you want to use\n" \
84 " default: \"\" (none)\n" \
85 " ca_path=%%s The path containing the top-level CA(s) you fully trust\n" \
86 " default: \"\" (none) (overrides ca_file)\n"
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/
Ddh_client.c2 * Diffie-Hellman-Merkle key exchange (client side)
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
66 "MBEDTLS_CTR_DRBG_C not defined.\n"); in main()
75 size_t n, buflen; in main() local
98 mbedtls_printf( "\n . Seeding the random number generator" ); in main()
106 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
113 mbedtls_printf( "\n . Reading public key from rsa_pub.txt" ); in main()
119 mbedtls_printf( " failed\n ! Could not open rsa_pub.txt\n" \ in main()
[all …]
Ddh_server.c2 * Diffie-Hellman-Merkle key exchange (server side)
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
66 "MBEDTLS_CTR_DRBG_C not defined.\n"); in main()
75 size_t n, buflen; in main() local
99 mbedtls_printf( "\n . Seeding the random number generator" ); in main()
107 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
114 mbedtls_printf( "\n . Reading private key from rsa_priv.txt" ); in main()
120 mbedtls_printf( " failed\n ! Could not open rsa_priv.txt\n" \ in main()
[all …]
Drsa_verify.c2 * RSA/SHA-256 signature verification program
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
43 "MBEDTLS_SHA256_C and/or MBEDTLS_FS_IO not defined.\n"); in main()
69 mbedtls_printf( "usage: rsa_verify <filename>\n" ); in main()
72 mbedtls_printf( "\n" ); in main()
78 mbedtls_printf( "\n . Reading public key from rsa_pub.txt" ); in main()
83 mbedtls_printf( " failed\n ! Could not open rsa_pub.txt\n" \ in main()
84 " ! Please run rsa_genkey first\n\n" ); in main()
[all …]
Drsa_sign.c2 * RSA/SHA-256 signature creation program
4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
44 "MBEDTLS_SHA256_C and/or MBEDTLS_FS_IO not defined.\n"); in main()
70 mbedtls_printf( "usage: rsa_sign <filename>\n" ); in main()
73 mbedtls_printf( "\n" ); in main()
79 mbedtls_printf( "\n . Reading private key from rsa_priv.txt" ); in main()
85 mbedtls_printf( " failed\n ! Could not open rsa_priv.txt\n" \ in main()
86 " ! Please run rsa_genkey first\n\n" ); in main()
[all …]
/net-tools-3.6.0/tinydtls-0.8.2/ecc/
Decc.c5 * Copyright (c) 2013 Marc Müller-Weinhardt <muewei@tzi.de>
7 * Copyright (c) 2013 Hauke Mehrtens <hauke@hauke-m.de>
29 * Elliptic Curve Cryptosystem on an 8-bit Microcontroller [0] by
32 * [0]: http://cockrum.net/Implementation_of_ECC_on_an_8-bit_microcontroller.pdf
49 //printf("%02x\n", d); in add()
61 d = (uint64_t) x[v] - (uint64_t) y[v] - d; in sub()
72 for (i = 0; i < (in_size - shift) && i < out_size; i++) in rshiftby()
126 for (i = length-1; i >= 0; --i) in isGreater()
131 return -1; in isGreater()
163 uint8_t k, n; in fieldMult() local
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dssl_mail_client.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
50 "not defined.\n"); in main()
105 " authentication=%%d default: 0 (disabled)\n" \
106 " user_name=%%s default: \"user\"\n" \
107 " user_pwd=%%s default: \"password\"\n"
110 " authentication options disabled. (Require MBEDTLS_BASE64_C)\n"
115 " ca_file=%%s default: \"\" (pre-loaded)\n" \
116 " crt_file=%%s default: \"\" (pre-loaded)\n" \
[all …]
Ddtls_server.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
51 "MBEDTLS_TIMING_C not defined.\n" ); in main()
133 printf( "\n . Loading the server cert. and key..." ); in main()
145 printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
153 printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
161 printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
165 printf( " ok\n" ); in main()
175 printf( " failed\n ! mbedtls_net_bind returned %d\n\n", ret ); in main()
[all …]
Dssl_client2.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
47 "MBEDTLS_NET_C and/or MBEDTLS_CTR_DRBG_C and/or not defined.\n"); in main()
70 #define DFL_REQUEST_SIZE -1
84 #define DFL_ALLOW_LEGACY -2
87 #define DFL_MIN_VERSION -1
88 #define DFL_MAX_VERSION -1
89 #define DFL_ARC4 -1
90 #define DFL_AUTH_MODE -1
[all …]
Ddtls_client.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
47 "MBEDTLS_CERTS_C and/or MBEDTLS_PEM_PARSE_C not defined.\n" ); in main()
115 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
123 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
127 mbedtls_printf( " ok\n" ); in main()
139 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
143 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
154 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
[all …]
Dssl_server.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
51 "and/or MBEDTLS_PEM_PARSE_C not defined.\n"); in main()
77 "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\n\r\n" \
78 "<h2>mbed TLS Test Server</h2>\r\n" \
79 "<p>Successful connection using: %s</p>\r\n"
129 mbedtls_printf( "\n . Loading the server cert. and key..." ); in main()
141 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
149 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
[all …]
Dssl_server2.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
48 "MBEDTLS_NET_C and/or MBEDTLS_CTR_DRBG_C and/or not defined.\n"); in main()
113 #define DFL_ALLOW_LEGACY -2
115 #define DFL_RENEGO_DELAY -2
116 #define DFL_RENEGO_PERIOD -1
118 #define DFL_MIN_VERSION -1
119 #define DFL_MAX_VERSION -1
120 #define DFL_ARC4 -1
[all …]
Dssl_client1.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
50 "not defined.\n"); in main()
67 #define GET_REQUEST "GET / HTTP/1.0\r\n\r\n"
108 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
116 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
120 mbedtls_printf( " ok\n" ); in main()
132 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
136 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
[all …]
/net-tools-3.6.0/
Ddtls-server.c2 * Simple DTLS server program that does the same thing as echo-server but
5 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
7 * SPDX-License-Identifier: Apache-2.0
13 * http://www.apache.org/licenses/LICENSE-2.0
56 "MBEDTLS_TIMING_C not defined.\n"); in main()
127 #define SRV_CERT_FILE "echo-apps-cert.pem" in main()
130 #define SRV_KEY_FILE "echo-apps-key.pem" in main()
135 while ((c = getopt(argc, argv, "c:k:p:Dh")) != -1) { in main()
156 printf("usage: %s [-c <server cert file>] [-k <cert key file>] " in main()
157 "[-p <port>] [-D]\n", argv[0]); in main()
[all …]
/net-tools-3.6.0/mbedtls-2.4.0/programs/test/
Dssl_cert_test.c4 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
5 * SPDX-License-Identifier: Apache-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
53 "not defined.\n"); in main()
94 mbedtls_printf( "\n . Loading the CA root certificate ..." ); in main()
101 ret = mbedtls_x509_crt_parse_file( &cacert, "ssl/test-ca/test-ca.crt" ); in main()
104 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned %d\n\n", ret ); in main()
108 mbedtls_printf( " ok\n" ); in main()
111 mbedtls_printf("%s\n", buf ); in main()
119 ret = mbedtls_x509_crl_parse_file( &crl, "ssl/test-ca/crl.pem" ); in main()
[all …]
/net-tools-3.6.0/tinydtls-0.8.2/sha2/
Dsha2test.pl4 # AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
43 $0 [<options>] [<test-vector-info-file> [<test-vector-info-file> ...]]
46 -256 Use SHA-256 hashes during testing
47 -384 Use SHA-384 hashes during testing
48 -512 Use SHA-512 hashes during testing
49 -ALL Use all three hashes during testing
50 -c256 <command-spec> Specify a command to execute to generate a
51 SHA-256 hash. Be sure to include a '%'
55 the -256 option.
56 -c384 <command-spec> Specify a command to execute to generate a
[all …]

12345678910>>...12