/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | md_wrap.c | 79 static void md2_update_wrap( void *ctx, const unsigned char *input, in md2_update_wrap() argument 82 mbedtls_md2_update( (mbedtls_md2_context *) ctx, input, ilen ); in md2_update_wrap() 143 static void md4_update_wrap( void *ctx, const unsigned char *input, in md4_update_wrap() argument 146 mbedtls_md4_update( (mbedtls_md4_context *) ctx, input, ilen ); in md4_update_wrap() 205 static void md5_update_wrap( void *ctx, const unsigned char *input, in md5_update_wrap() argument 208 mbedtls_md5_update( (mbedtls_md5_context *) ctx, input, ilen ); in md5_update_wrap() 267 static void ripemd160_update_wrap( void *ctx, const unsigned char *input, in ripemd160_update_wrap() argument 270 mbedtls_ripemd160_update( (mbedtls_ripemd160_context *) ctx, input, ilen ); in ripemd160_update_wrap() 329 static void sha1_update_wrap( void *ctx, const unsigned char *input, in sha1_update_wrap() argument 332 mbedtls_sha1_update( (mbedtls_sha1_context *) ctx, input, ilen ); in sha1_update_wrap() [all …]
|
D | cipher.c | 270 int mbedtls_cipher_update( mbedtls_cipher_context_t *ctx, const unsigned char *input, in mbedtls_cipher_update() argument 292 ctx->operation, input, output ) ) ) in mbedtls_cipher_update() 304 return mbedtls_gcm_update( (mbedtls_gcm_context *) ctx->cipher_ctx, ilen, input, in mbedtls_cipher_update() 314 if( input == output && in mbedtls_cipher_update() 333 memcpy( &( ctx->unprocessed_data[ctx->unprocessed_len] ), input, in mbedtls_cipher_update() 347 memcpy( &( ctx->unprocessed_data[ctx->unprocessed_len] ), input, in mbedtls_cipher_update() 361 input += copy_len; in mbedtls_cipher_update() 379 memcpy( ctx->unprocessed_data, &( input[ilen - copy_len] ), in mbedtls_cipher_update() 392 ctx->operation, ilen, ctx->iv, input, output ) ) ) in mbedtls_cipher_update() 409 input, output ) ) ) in mbedtls_cipher_update() [all …]
|
D | cipher_wrap.c | 117 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 126 return mbedtls_aes_crypt_cbc( (mbedtls_aes_context *) ctx, operation, length, iv, input, 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 473 return mbedtls_camellia_crypt_ecb( (mbedtls_camellia_context *) ctx, operation, input, in camellia_crypt_ecb_wrap() [all …]
|
D | xtea.c | 105 const unsigned char input[8], unsigned char output[8]) in mbedtls_xtea_crypt_ecb() 111 GET_UINT32_BE( v0, input, 0 ); in mbedtls_xtea_crypt_ecb() 112 GET_UINT32_BE( v1, input, 4 ); in mbedtls_xtea_crypt_ecb() 148 unsigned char iv[8], const unsigned char *input, in mbedtls_xtea_crypt_cbc() argument 161 memcpy( temp, input, 8 ); in mbedtls_xtea_crypt_cbc() 162 mbedtls_xtea_crypt_ecb( ctx, mode, input, output ); in mbedtls_xtea_crypt_cbc() 169 input += 8; in mbedtls_xtea_crypt_cbc() 179 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc() 184 input += 8; in mbedtls_xtea_crypt_cbc()
|
D | blowfish.c | 234 const unsigned char input[MBEDTLS_BLOWFISH_BLOCKSIZE], in mbedtls_blowfish_crypt_ecb() 239 GET_UINT32_BE( X0, input, 0 ); in mbedtls_blowfish_crypt_ecb() 240 GET_UINT32_BE( X1, input, 4 ); in mbedtls_blowfish_crypt_ecb() 265 const unsigned char *input, in mbedtls_blowfish_crypt_cbc() argument 278 memcpy( temp, input, MBEDTLS_BLOWFISH_BLOCKSIZE ); in mbedtls_blowfish_crypt_cbc() 279 mbedtls_blowfish_crypt_ecb( ctx, mode, input, output ); in mbedtls_blowfish_crypt_cbc() 286 input += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc() 296 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_blowfish_crypt_cbc() 301 input += MBEDTLS_BLOWFISH_BLOCKSIZE; in mbedtls_blowfish_crypt_cbc() 320 const unsigned char *input, in mbedtls_blowfish_crypt_cfb64() argument [all …]
|
D | padlock.c | 82 const unsigned char input[16], in mbedtls_padlock_xcryptecb() 93 memcpy( blk, input, 16 ); in mbedtls_padlock_xcryptecb() 124 const unsigned char *input, in mbedtls_padlock_xcryptcbc() argument 134 if( ( (long) input & 15 ) != 0 || in mbedtls_padlock_xcryptcbc() 160 "m" (rk), "m" (input), "m" (output), "m" (iw) in mbedtls_padlock_xcryptcbc()
|
D | cmac.c | 86 const unsigned char *input, in cmac_multiply_by_u() argument 110 output[i] = input[i] << 1 | overflow; in cmac_multiply_by_u() 111 overflow = input[i] >> 7; in cmac_multiply_by_u() 123 mask = - ( input[0] >> 7 ); in cmac_multiply_by_u() 243 const unsigned char *input, size_t ilen ) in mbedtls_cipher_cmac_update() argument 250 if( ctx == NULL || ctx->cipher_info == NULL || input == NULL || in mbedtls_cipher_cmac_update() 264 input, in mbedtls_cipher_cmac_update() 275 input += block_size - cmac_ctx->unprocessed_len; in mbedtls_cipher_cmac_update() 286 cmac_xor_block( state, input, state, block_size ); in mbedtls_cipher_cmac_update() 293 input += block_size; in mbedtls_cipher_cmac_update() [all …]
|
D | des.c | 631 const unsigned char input[8], in mbedtls_des_crypt_ecb() 639 GET_UINT32_BE( X, input, 0 ); in mbedtls_des_crypt_ecb() 640 GET_UINT32_BE( Y, input, 4 ); in mbedtls_des_crypt_ecb() 667 const unsigned char *input, in mbedtls_des_crypt_cbc() argument 681 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_des_crypt_cbc() 686 input += 8; in mbedtls_des_crypt_cbc() 695 memcpy( temp, input, 8 ); in mbedtls_des_crypt_cbc() 696 mbedtls_des_crypt_ecb( ctx, input, output ); in mbedtls_des_crypt_cbc() 703 input += 8; in mbedtls_des_crypt_cbc() 718 const unsigned char input[8], in mbedtls_des3_crypt_ecb() [all …]
|
D | camellia.c | 497 const unsigned char input[16], in mbedtls_camellia_crypt_ecb() 508 GET_UINT32_BE( X[0], input, 0 ); in mbedtls_camellia_crypt_ecb() 509 GET_UINT32_BE( X[1], input, 4 ); in mbedtls_camellia_crypt_ecb() 510 GET_UINT32_BE( X[2], input, 8 ); in mbedtls_camellia_crypt_ecb() 511 GET_UINT32_BE( X[3], input, 12 ); in mbedtls_camellia_crypt_ecb() 562 const unsigned char *input, in mbedtls_camellia_crypt_cbc() argument 575 memcpy( temp, input, 16 ); in mbedtls_camellia_crypt_cbc() 576 mbedtls_camellia_crypt_ecb( ctx, mode, input, output ); in mbedtls_camellia_crypt_cbc() 583 input += 16; in mbedtls_camellia_crypt_cbc() 593 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_camellia_crypt_cbc() [all …]
|
D | md2.c | 155 void mbedtls_md2_update( mbedtls_md2_context *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md2_update() argument 166 memcpy( ctx->buffer + ctx->left, input, fill ); in mbedtls_md2_update() 169 input += fill; in mbedtls_md2_update() 206 void mbedtls_md2( const unsigned char *input, size_t ilen, unsigned char output[16] ) in mbedtls_md2() argument 212 mbedtls_md2_update( &ctx, input, ilen ); in mbedtls_md2()
|
D | md.c | 258 int mbedtls_md_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md_update() argument 263 ctx->md_info->update_func( ctx->md_ctx, input, ilen ); in mbedtls_md_update() 278 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen, in mbedtls_md() argument 284 md_info->digest_func( input, ilen, output ); in mbedtls_md() 369 int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ) in mbedtls_md_hmac_update() argument 374 ctx->md_info->update_func( ctx->md_ctx, input, ilen ); in mbedtls_md_hmac_update() 414 const unsigned char *input, size_t ilen, in mbedtls_md_hmac() argument 429 mbedtls_md_hmac_update( &ctx, input, ilen ); in mbedtls_md_hmac()
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | aes.h | 116 const unsigned char input[16], 146 const unsigned char *input, 181 const unsigned char *input, 212 const unsigned char *input, 244 const unsigned char *input, 258 const unsigned char input[16], 271 const unsigned char input[16],
|
D | cipher_internal.h | 50 const unsigned char *input, unsigned char *output ); 55 unsigned char *iv, const unsigned char *input, 62 unsigned char *iv, const unsigned char *input, 70 const unsigned char *input, unsigned char *output ); 76 const unsigned char *input, unsigned char *output );
|
D | rsa.h | 216 const unsigned char *input, 236 const unsigned char *input, 262 const unsigned char *input, 285 const unsigned char *input, 313 const unsigned char *input, 340 const unsigned char *input, 366 const unsigned char *input, 396 const unsigned char *input,
|
D | camellia.h | 109 const unsigned char input[16], 140 const unsigned char *input, 176 const unsigned char *input, 208 const unsigned char *input,
|
D | blowfish.h | 101 const unsigned char input[MBEDTLS_BLOWFISH_BLOCKSIZE], 132 const unsigned char *input, 163 const unsigned char *input, 191 const unsigned char *input,
|
D | des.h | 201 const unsigned char input[8], 227 const unsigned char *input, 241 const unsigned char input[8], 269 const unsigned char *input,
|
D | cmac.h | 88 const unsigned char *input, size_t ilen ); 132 const unsigned char *input, size_t ilen, 149 const unsigned char *input, size_t in_len,
|
D | md_internal.h | 64 void (*update_func)( void *ctx, const unsigned char *input, size_t ilen ); 70 void (*digest_func)( const unsigned char *input, size_t ilen, 83 void (*process_func)( void *ctx, const unsigned char *input );
|
D | md.h | 229 int mbedtls_md_update( mbedtls_md_context_t *ctx, const unsigned char *input, size_t ilen ); 255 int mbedtls_md( const mbedtls_md_info_t *md_info, const unsigned char *input, size_t ilen, 301 int mbedtls_md_hmac_update( mbedtls_md_context_t *ctx, const unsigned char *input, 344 const unsigned char *input, size_t ilen,
|
D | pkcs11.h | 113 const unsigned char *input, 144 const unsigned char *input, unsigned char *output, in mbedtls_ssl_pkcs11_decrypt() argument 147 return mbedtls_pkcs11_decrypt( (mbedtls_pkcs11_context *) ctx, mode, olen, input, output, in mbedtls_ssl_pkcs11_decrypt()
|
D | gcm.h | 109 const unsigned char *input, 143 const unsigned char *input, 184 const unsigned char *input,
|
D | padlock.h | 79 const unsigned char input[16], 98 const unsigned char *input,
|
/net-tools-3.6.0/tinydtls-0.8.2/ |
D | hmac.h | 48 dtls_hash_update(dtls_hash_t ctx, const unsigned char *input, size_t len) { in dtls_hash_update() argument 49 SHA256_Update((SHA256_CTX *)ctx, input, len); in dtls_hash_update() 137 const unsigned char *input, size_t ilen);
|
/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_aes.rest.data | 7 AES-256-CBC Encrypt (Invalid input length) 10 AES-256-CBC Decrypt (Invalid input length)
|