Lines Matching refs:input

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()
425 ctx->unprocessed_data, input, output ) ) ) in mbedtls_cipher_update()
440 ilen, input, output ) ) ) in mbedtls_cipher_update()
469 static int get_pkcs_padding( unsigned char *input, size_t input_len, in get_pkcs_padding() argument
475 if( NULL == input || NULL == data_len ) in get_pkcs_padding()
478 padding_len = input[input_len - 1]; in get_pkcs_padding()
489 bad |= ( input[i] ^ padding_len ) * ( i >= pad_idx ); in get_pkcs_padding()
510 static int get_one_and_zeros_padding( unsigned char *input, size_t input_len, in get_one_and_zeros_padding() argument
516 if( NULL == input || NULL == data_len ) in get_one_and_zeros_padding()
524 done |= ( input[i-1] != 0 ); in get_one_and_zeros_padding()
526 bad &= ( input[i-1] ^ 0x80 ) | ( done == prev_done ); in get_one_and_zeros_padding()
549 static int get_zeros_and_len_padding( unsigned char *input, size_t input_len, in get_zeros_and_len_padding() argument
555 if( NULL == input || NULL == data_len ) in get_zeros_and_len_padding()
558 padding_len = input[input_len - 1]; in get_zeros_and_len_padding()
568 bad |= input[i] * ( i >= pad_idx ); in get_zeros_and_len_padding()
587 static int get_zeros_padding( unsigned char *input, size_t input_len, in get_zeros_padding() argument
593 if( NULL == input || NULL == data_len ) in get_zeros_padding()
600 done |= ( input[i-1] != 0 ); in get_zeros_padding()
614 static int get_no_padding( unsigned char *input, size_t input_len, in get_no_padding() argument
617 if( NULL == input || NULL == data_len ) in get_no_padding()
814 const unsigned char *input, size_t ilen, in mbedtls_cipher_crypt() argument
826 if( ( ret = mbedtls_cipher_update( ctx, input, ilen, output, olen ) ) != 0 ) in mbedtls_cipher_crypt()
844 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_encrypt() argument
853 iv, iv_len, ad, ad_len, input, output, in mbedtls_cipher_auth_encrypt()
862 iv, iv_len, ad, ad_len, input, output, in mbedtls_cipher_auth_encrypt()
876 const unsigned char *input, size_t ilen, in mbedtls_cipher_auth_decrypt() argument
888 tag, tag_len, input, output ); in mbedtls_cipher_auth_decrypt()
904 input, output, tag, tag_len ); in mbedtls_cipher_auth_decrypt()