Home
last modified time | relevance | path

Searched refs:output (Results 1 – 25 of 135) sorted by relevance

123456

/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/
Dtest_suite_mdx.function13 unsigned char output[16];
17 memset( output, 0x00, sizeof output );
21 mbedtls_md2( src_str, strlen( (char *) src_str ), output );
22 hexify( hash_str, output, sizeof output );
33 unsigned char output[16];
37 memset( output, 0x00, sizeof output );
41 mbedtls_md4( src_str, strlen( (char *) src_str ), output );
42 hexify( hash_str, output, sizeof output );
53 unsigned char output[16];
57 memset( output, 0x00, sizeof output );
[all …]
Dtest_suite_shax.function12 unsigned char output[41];
17 memset(output, 0x00, 41);
21 mbedtls_sha1( src_str, src_len, output );
22 hexify( hash_str, output, 20 );
33 unsigned char output[57];
38 memset(output, 0x00, 57);
42 mbedtls_sha256( src_str, src_len, output, 1 );
43 hexify( hash_str, output, 28 );
54 unsigned char output[65];
59 memset(output, 0x00, 65);
[all …]
Dtest_suite_aes.function17 unsigned char output[100];
24 memset(output, 0x00, 100);
33 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_ENCRYPT, src_str, output ) == 0 );
34 hexify( dst_str, output, 16 );
51 unsigned char output[100];
58 memset(output, 0x00, 100);
67 TEST_ASSERT( mbedtls_aes_crypt_ecb( &ctx, MBEDTLS_AES_DECRYPT, src_str, output ) == 0 );
68 hexify( dst_str, output, 16 );
87 unsigned char output[100];
95 memset(output, 0x00, 100);
[all …]
Dtest_suite_blowfish.function17 unsigned char output[100];
24 memset(output, 0x00, 100);
33 … TEST_ASSERT( mbedtls_blowfish_crypt_ecb( &ctx, MBEDTLS_BLOWFISH_ENCRYPT, src_str, output ) == 0 );
34 hexify( dst_str, output, 8 );
51 unsigned char output[100];
58 memset(output, 0x00, 100);
67 … TEST_ASSERT( mbedtls_blowfish_crypt_ecb( &ctx, MBEDTLS_BLOWFISH_DECRYPT, src_str, output ) == 0 );
68 hexify( dst_str, output, 8 );
87 unsigned char output[100];
95 memset(output, 0x00, 100);
[all …]
Dtest_suite_xtea.function17 unsigned char output[100];
23 memset(output, 0x00, 100);
29 TEST_ASSERT( mbedtls_xtea_crypt_ecb( &ctx, MBEDTLS_XTEA_ENCRYPT, src_str, output ) == 0 );
30 hexify( dst_str, output, 8 );
43 unsigned char output[100];
49 memset(output, 0x00, 100);
55 TEST_ASSERT( mbedtls_xtea_crypt_ecb( &ctx, MBEDTLS_XTEA_DECRYPT, src_str, output ) == 0 );
56 hexify( dst_str, output, 8 );
70 unsigned char output[100];
78 memset(output, 0x00, 100);
[all …]
Dtest_suite_camellia.function17 unsigned char output[100];
24 memset(output, 0x00, 100);
33 … TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_ENCRYPT, src_str, output ) == 0 );
34 hexify( dst_str, output, 16 );
51 unsigned char output[100];
58 memset(output, 0x00, 100);
67 … TEST_ASSERT( mbedtls_camellia_crypt_ecb( &ctx, MBEDTLS_CAMELLIA_DECRYPT, src_str, output ) == 0 );
68 hexify( dst_str, output, 16 );
87 unsigned char output[100];
95 memset(output, 0x00, 100);
[all …]
Dtest_suite_des.function30 unsigned char output[100];
36 memset(output, 0x00, 100);
43 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str, output ) == 0 );
44 hexify( dst_str, output, 8 );
60 unsigned char output[100];
66 memset(output, 0x00, 100);
73 TEST_ASSERT( mbedtls_des_crypt_ecb( &ctx, src_str, output ) == 0 );
74 hexify( dst_str, output, 8 );
91 unsigned char output[100];
99 memset(output, 0x00, 100);
[all …]
Dtest_suite_md.function134 unsigned char output[100];
140 memset( output, 0x00, 100 );
147 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str, strlen( (char *) src_str ), output ) );
148 hexify( hash_str, output, mbedtls_md_get_size( md_info ) );
160 unsigned char output[100];
167 memset( output, 0x00, 100 );
174 TEST_ASSERT ( 0 == mbedtls_md( md_info, src_str, src_len, output ) );
176 hexify( hash_str, output, mbedtls_md_get_size( md_info ) );
189 unsigned char output[100];
201 memset( output, 0x00, 100 );
[all …]
Dtest_suite_rsa.function26 unsigned char output[1000];
38 memset( output, 0x00, 1000 );
64 …tx, &rnd_pseudo_rand, &rnd_info, MBEDTLS_RSA_PRIVATE, digest, 0, hash_result, output ) == result );
67 hexify( output_str, output, ctx.len );
123 unsigned char output[1000];
135 memset( output, 0x00, 1000 );
159 …eudo_rand, &rnd_info, MBEDTLS_RSA_PRIVATE, MBEDTLS_MD_NONE, hash_len, hash_result, output ) == 0 );
161 hexify( output_str, output, ctx.len );
168 memset( output, 0x00, 1000 );
173 hash_len, hash_result, output ) == 0 );
[all …]
Dtest_suite_entropy.data13 Entropy output length #1
16 Entropy output length #2
19 Entropy output length #3
22 Entropy output length #4
25 Entropy output length #5
Dtest_suite_gcm.function23 unsigned char output[128];
37 memset(output, 0x00, 128);
48 … MBEDTLS_GCM_ENCRYPT, pt_len, iv_str, iv_len, add_str, add_len, src_str, output, tag_len, tag_outp…
49 hexify( dst_str, output, pt_len );
74 unsigned char output[128];
88 memset(output, 0x00, 128);
99 …_auth_decrypt( &ctx, pt_len, iv_str, iv_len, add_str, add_len, tag_str, tag_len, src_str, output );
108 hexify( dst_str, output, pt_len );
/net-tools-3.7.0/mbedtls-2.4.0/library/
Dentropy_poll.c59 int mbedtls_platform_entropy_poll( void *data, unsigned char *output, size_t len, in mbedtls_platform_entropy_poll() argument
72 if( CryptGenRandom( provider, (DWORD) len, output ) == FALSE ) in mbedtls_platform_entropy_poll()
151 unsigned char *output, size_t len, size_t *olen ) in mbedtls_platform_entropy_poll() argument
165 if( ( ret = getrandom_wrapper( output, len, 0 ) ) < 0 ) in mbedtls_platform_entropy_poll()
179 read_len = fread( output, 1, len, file ); in mbedtls_platform_entropy_poll()
196 unsigned char *output, size_t len, size_t *olen ) in mbedtls_null_entropy_poll() argument
199 ((void) output); in mbedtls_null_entropy_poll()
213 unsigned char *output, size_t len, size_t *olen ) in mbedtls_hardclock_poll() argument
222 memcpy( output, &timer, sizeof(unsigned long) ); in mbedtls_hardclock_poll()
231 unsigned char *output, size_t len, size_t *olen ) in mbedtls_havege_poll() argument
[all …]
Dmd_wrap.c85 static void md2_finish_wrap( void *ctx, unsigned char *output ) in md2_finish_wrap() argument
87 mbedtls_md2_finish( (mbedtls_md2_context *) ctx, output ); in md2_finish_wrap()
149 static void md4_finish_wrap( void *ctx, unsigned char *output ) in md4_finish_wrap() argument
151 mbedtls_md4_finish( (mbedtls_md4_context *) ctx, output ); in md4_finish_wrap()
211 static void md5_finish_wrap( void *ctx, unsigned char *output ) in md5_finish_wrap() argument
213 mbedtls_md5_finish( (mbedtls_md5_context *) ctx, output ); in md5_finish_wrap()
273 static void ripemd160_finish_wrap( void *ctx, unsigned char *output ) in ripemd160_finish_wrap() argument
275 mbedtls_ripemd160_finish( (mbedtls_ripemd160_context *) ctx, output ); in ripemd160_finish_wrap()
335 static void sha1_finish_wrap( void *ctx, unsigned char *output ) in sha1_finish_wrap() argument
337 mbedtls_sha1_finish( (mbedtls_sha1_context *) ctx, output ); in sha1_finish_wrap()
[all …]
Dxtea.c105 const unsigned char input[8], unsigned char output[8]) in mbedtls_xtea_crypt_ecb()
137 PUT_UINT32_BE( v0, output, 0 ); in mbedtls_xtea_crypt_ecb()
138 PUT_UINT32_BE( v1, output, 4 ); in mbedtls_xtea_crypt_ecb()
149 unsigned char *output) in mbedtls_xtea_crypt_cbc() argument
162 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc()
165 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
170 output += 8; in mbedtls_xtea_crypt_cbc()
179 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
181 mbedtls_xtea_crypt_ecb( ctx, mode, output, output ); in mbedtls_xtea_crypt_cbc()
182 memcpy( iv, output, 8 ); in mbedtls_xtea_crypt_cbc()
[all …]
Dblowfish.c235 unsigned char output[MBEDTLS_BLOWFISH_BLOCKSIZE] ) in mbedtls_blowfish_crypt_ecb()
251 PUT_UINT32_BE( X0, output, 0 ); in mbedtls_blowfish_crypt_ecb()
252 PUT_UINT32_BE( X1, output, 4 ); in mbedtls_blowfish_crypt_ecb()
266 unsigned char *output ) in mbedtls_blowfish_crypt_cbc() argument
279 mbedtls_blowfish_crypt_ecb( ctx, mode, input, output ); in mbedtls_blowfish_crypt_cbc()
282 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc()
287 output += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc()
296 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc()
298 mbedtls_blowfish_crypt_ecb( ctx, mode, output, output ); in mbedtls_blowfish_crypt_cbc()
299 memcpy( iv, output, MBEDTLS_BLOWFISH_BLOCKSIZE ); in mbedtls_blowfish_crypt_cbc()
[all …]
Dcipher_wrap.c117 const unsigned char *input, unsigned char *output ) in aes_crypt_ecb_wrap() argument
119 return mbedtls_aes_crypt_ecb( (mbedtls_aes_context *) ctx, operation, input, output ); in aes_crypt_ecb_wrap()
124 unsigned char *iv, const unsigned char *input, unsigned char *output ) in aes_crypt_cbc_wrap() argument
127 output ); in aes_crypt_cbc_wrap()
134 const unsigned char *input, unsigned char *output ) in aes_crypt_cfb128_wrap() argument
137 input, output ); in aes_crypt_cfb128_wrap()
144 const unsigned char *input, unsigned char *output ) in aes_crypt_ctr_wrap() argument
147 stream_block, input, output ); in aes_crypt_ctr_wrap()
471 const unsigned char *input, unsigned char *output ) in camellia_crypt_ecb_wrap() argument
474 output ); in camellia_crypt_ecb_wrap()
[all …]
Dcipher.c271 size_t ilen, unsigned char *output, size_t *olen ) in mbedtls_cipher_update() argument
292 ctx->operation, input, output ) ) ) in mbedtls_cipher_update()
305 output ); in mbedtls_cipher_update()
314 if( input == output && in mbedtls_cipher_update()
352 ctx->unprocessed_data, output ) ) ) in mbedtls_cipher_update()
358 output += block_size; in mbedtls_cipher_update()
392 ctx->operation, ilen, ctx->iv, input, output ) ) ) in mbedtls_cipher_update()
409 input, output ) ) ) in mbedtls_cipher_update()
425 ctx->unprocessed_data, input, output ) ) ) in mbedtls_cipher_update()
440 ilen, input, output ) ) ) in mbedtls_cipher_update()
[all …]
Ddes.c632 unsigned char output[8] ) in mbedtls_des_crypt_ecb()
652 PUT_UINT32_BE( Y, output, 0 ); in mbedtls_des_crypt_ecb()
653 PUT_UINT32_BE( X, output, 4 ); in mbedtls_des_crypt_ecb()
668 unsigned char *output ) in mbedtls_des_crypt_cbc() argument
681 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_des_crypt_cbc()
683 mbedtls_des_crypt_ecb( ctx, output, output ); in mbedtls_des_crypt_cbc()
684 memcpy( iv, output, 8 ); in mbedtls_des_crypt_cbc()
687 output += 8; in mbedtls_des_crypt_cbc()
696 mbedtls_des_crypt_ecb( ctx, input, output ); in mbedtls_des_crypt_cbc()
699 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_des_crypt_cbc()
[all …]
Dcmac.c85 static int cmac_multiply_by_u( unsigned char *output, in cmac_multiply_by_u() argument
110 output[i] = input[i] << 1 | overflow; in cmac_multiply_by_u()
128 output[ blocksize - 1 ] ^= R_n & mask; in cmac_multiply_by_u()
168 static void cmac_xor_block( unsigned char *output, const unsigned char *input1, in cmac_xor_block() argument
175 output[ index ] = input1[ index ] ^ input2[ index ]; in cmac_xor_block()
310 unsigned char *output ) in mbedtls_cipher_cmac_finish() argument
321 output == NULL ) in mbedtls_cipher_cmac_finish()
354 memcpy( output, state, block_size ); in mbedtls_cipher_cmac_finish()
392 unsigned char *output ) in mbedtls_cipher_cmac() argument
397 if( cipher_info == NULL || key == NULL || input == NULL || output == NULL ) in mbedtls_cipher_cmac()
[all …]
Dpadlock.c83 unsigned char output[16] ) in mbedtls_padlock_xcryptecb()
112 memcpy( output, blk, 16 ); in mbedtls_padlock_xcryptecb()
125 unsigned char *output ) in mbedtls_padlock_xcryptcbc() argument
135 ( (long) output & 15 ) != 0 ) in mbedtls_padlock_xcryptcbc()
160 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/
Dentropy_poll.h53 unsigned char *output, size_t len, size_t *olen );
61 unsigned char *output, size_t len, size_t *olen );
71 unsigned char *output, size_t len, size_t *olen );
79 unsigned char *output, size_t len, size_t *olen );
92 unsigned char *output, size_t len, size_t *olen );
102 unsigned char *output, size_t len, size_t *olen );
Daes.h117 unsigned char output[16] );
147 unsigned char *output );
182 unsigned char *output );
213 unsigned char *output );
245 unsigned char *output );
259 unsigned char output[16] );
272 unsigned char output[16] );
Dcipher_internal.h50 const unsigned char *input, unsigned char *output );
56 unsigned char *output );
63 unsigned char *output );
70 const unsigned char *input, unsigned char *output );
76 const unsigned char *input, unsigned char *output );
Drsa.h217 unsigned char *output );
237 unsigned char *output );
263 unsigned char *output );
286 unsigned char *output );
314 unsigned char *output );
341 unsigned char *output,
367 unsigned char *output,
397 unsigned char *output,
Dcamellia.h110 unsigned char output[16] );
141 unsigned char *output );
177 unsigned char *output );
209 unsigned char *output );

123456