/third_party/mbedtls/include/psa/ |
D | crypto_sizes.h | 455 #define PSA_AEAD_UPDATE_OUTPUT_SIZE(key_type, alg, input_length) \ argument 458 PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_LENGTH(key_type), (input_length)) : \ 459 (input_length) : \ 472 #define PSA_AEAD_UPDATE_OUTPUT_MAX_SIZE(input_length) \ argument 473 (PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, (input_length))) 1026 #define PSA_CIPHER_ENCRYPT_OUTPUT_SIZE(key_type, alg, input_length) \ argument 1030 (input_length) + 1) + \ 1033 (input_length) + PSA_CIPHER_IV_LENGTH((key_type), (alg)) : \ 1047 #define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \ argument 1049 (input_length) + 1) + \ [all …]
|
D | crypto.h | 869 size_t input_length, 905 size_t input_length, 1027 size_t input_length); 1228 size_t input_length, 1269 size_t input_length, 1469 size_t input_length); 1640 size_t input_length, 1687 size_t input_length, 1980 size_t input_length, 2566 size_t input_length); [all …]
|
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/dec/ |
D | decoder_jni.cc | 20 size_t input_length; member 58 handle->input_length = 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate() 108 JNIEnv* env, jobject /*jobj*/, jlongArray ctx, jint input_length) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() argument 116 if (input_length != 0) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 118 if (handle->input_offset < handle->input_length) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 122 handle->input_length = input_length; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 127 size_t in_size = handle->input_length - handle->input_offset; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 131 handle->input_offset = handle->input_length - in_size; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 135 context[1] = (handle->input_offset == handle->input_length) ? 1 : 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() 174 context[1] = (handle->input_offset == handle->input_length) ? 1 : 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePull() [all …]
|
/third_party/mbedtls/library/ |
D | psa_crypto_cipher.c | 268 size_t input_length, in psa_cipher_update_ecb() argument 277 if( input_length == 0 ) in psa_cipher_update_ecb() 288 if( input_length < bytes_to_copy ) in psa_cipher_update_ecb() 289 bytes_to_copy = input_length; in psa_cipher_update_ecb() 293 input_length -= bytes_to_copy; in psa_cipher_update_ecb() 314 while( input_length >= block_size ) in psa_cipher_update_ecb() 325 input_length -= block_size; in psa_cipher_update_ecb() 332 if( input_length > 0 ) in psa_cipher_update_ecb() 336 input, input_length ); in psa_cipher_update_ecb() 337 ctx->unprocessed_len += input_length; in psa_cipher_update_ecb() [all …]
|
D | psa_crypto_driver_wrappers.c | 115 size_t input_length, in psa_driver_wrapper_sign_message() argument 137 input_length, in psa_driver_wrapper_sign_message() 158 input_length, in psa_driver_wrapper_sign_message() 178 input_length, in psa_driver_wrapper_sign_message() 190 size_t input_length, in psa_driver_wrapper_verify_message() argument 211 input_length, in psa_driver_wrapper_verify_message() 231 input_length, in psa_driver_wrapper_verify_message() 250 input_length, in psa_driver_wrapper_verify_message() 879 size_t input_length, in psa_driver_wrapper_cipher_encrypt() argument 902 input_length, in psa_driver_wrapper_cipher_encrypt() [all …]
|
D | psa_crypto_hash.c | 261 size_t input_length ) in mbedtls_psa_hash_update() argument 270 input, input_length ); in mbedtls_psa_hash_update() 276 input, input_length ); in mbedtls_psa_hash_update() 282 input, input_length ); in mbedtls_psa_hash_update() 288 input, input_length ); in mbedtls_psa_hash_update() 294 input, input_length ); in mbedtls_psa_hash_update() 300 input, input_length ); in mbedtls_psa_hash_update() 306 input, input_length ); in mbedtls_psa_hash_update() 311 (void) input_length; in mbedtls_psa_hash_update() 395 size_t input_length, in mbedtls_psa_hash_compute() argument [all …]
|
D | psa_crypto_driver_wrappers.h | 43 size_t input_length, 54 size_t input_length, 125 size_t input_length, 136 size_t input_length, 161 size_t input_length, 181 size_t input_length, 197 size_t input_length ); 255 size_t input_length ); 260 size_t input_length, 294 size_t input_length, [all …]
|
D | psa_crypto_aead.c | 484 size_t input_length ) in mbedtls_psa_aead_update_ad() argument 492 mbedtls_gcm_update_ad( &operation->ctx.gcm, input, input_length ) ); in mbedtls_psa_aead_update_ad() 500 mbedtls_ccm_update_ad( &operation->ctx.ccm, input, input_length ) ); in mbedtls_psa_aead_update_ad() 510 input_length ) ); in mbedtls_psa_aead_update_ad() 517 ( void ) input_length; in mbedtls_psa_aead_update_ad() 530 size_t input_length, in mbedtls_psa_aead_update() argument 538 update_output_length = input_length; in mbedtls_psa_aead_update() 545 input, input_length, in mbedtls_psa_aead_update() 554 if( output_size < input_length ) in mbedtls_psa_aead_update() 559 input, input_length, in mbedtls_psa_aead_update() [all …]
|
D | gcm.c | 425 const unsigned char *input, size_t input_length, in mbedtls_gcm_update() argument 435 if( output_size < input_length ) in mbedtls_gcm_update() 438 *output_length = input_length; in mbedtls_gcm_update() 444 if( input_length == 0 ) in mbedtls_gcm_update() 451 if( output > input && (size_t) ( output - input ) < input_length ) in mbedtls_gcm_update() 456 if( ctx->len + input_length < ctx->len || in mbedtls_gcm_update() 457 (uint64_t) ctx->len + input_length > 0xFFFFFFFE0ull ) in mbedtls_gcm_update() 471 if( use_len > input_length ) in mbedtls_gcm_update() 472 use_len = input_length; in mbedtls_gcm_update() 481 input_length -= use_len; in mbedtls_gcm_update() [all …]
|
D | psa_crypto_mac.c | 349 size_t input_length ) in mbedtls_psa_mac_update() argument 359 input, input_length ) ) ); in mbedtls_psa_mac_update() 367 input, input_length ) ); in mbedtls_psa_mac_update() 375 (void) input_length; in mbedtls_psa_mac_update() 466 size_t input_length, in mbedtls_psa_mac_compute() argument 480 if( input_length > 0 ) in mbedtls_psa_mac_compute() 482 status = mbedtls_psa_mac_update( &operation, input, input_length ); in mbedtls_psa_mac_compute()
|
D | psa_crypto_cipher.h | 152 const uint8_t *input, size_t input_length, 251 size_t input_length, 300 size_t input_length,
|
D | psa_crypto.c | 2149 size_t input_length ) in psa_hash_update() argument 2161 if( input_length == 0 ) in psa_hash_update() 2164 status = psa_driver_wrapper_hash_update( operation, input, input_length ); in psa_hash_update() 2220 const uint8_t *input, size_t input_length, in psa_hash_compute() argument 2228 return( psa_driver_wrapper_hash_compute( alg, input, input_length, in psa_hash_compute() 2233 const uint8_t *input, size_t input_length, in psa_hash_compare() argument 2243 alg, input, input_length, in psa_hash_compare() 2412 size_t input_length ) in psa_mac_update() argument 2419 if( input_length == 0 ) in psa_mac_update() 2423 input, input_length ); in psa_mac_update() [all …]
|
/third_party/mbedtls/tests/src/drivers/ |
D | test_driver_cipher.c | 50 size_t input_length, in mbedtls_test_transparent_cipher_encrypt() argument 78 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 83 alg, iv, iv_length, input, input_length, in mbedtls_test_transparent_cipher_encrypt() 96 size_t input_length, in mbedtls_test_transparent_cipher_decrypt() argument 124 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 129 alg, input, input_length, in mbedtls_test_transparent_cipher_decrypt() 237 size_t input_length, in mbedtls_test_transparent_cipher_update() argument 263 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 267 operation, input, input_length, in mbedtls_test_transparent_cipher_update() 318 const uint8_t *input, size_t input_length, in mbedtls_test_opaque_cipher_encrypt() argument [all …]
|
D | hash.c | 36 const uint8_t *input, size_t input_length, in mbedtls_test_transparent_hash_compute() argument 52 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 57 alg, input, input_length, in mbedtls_test_transparent_hash_compute() 62 (void) input_length; in mbedtls_test_transparent_hash_compute() 137 size_t input_length ) in mbedtls_test_transparent_hash_update() argument 152 operation, input, input_length ); in mbedtls_test_transparent_hash_update() 155 mbedtls_psa_hash_update( operation, input, input_length ); in mbedtls_test_transparent_hash_update() 159 (void) input_length; in mbedtls_test_transparent_hash_update()
|
D | test_driver_mac.c | 40 size_t input_length, in mbedtls_test_transparent_mac_compute() argument 60 input, input_length, in mbedtls_test_transparent_mac_compute() 66 input, input_length, in mbedtls_test_transparent_mac_compute() 74 (void) input_length; in mbedtls_test_transparent_mac_compute() 168 size_t input_length ) in mbedtls_test_transparent_mac_update() argument 183 operation, input, input_length ); in mbedtls_test_transparent_mac_update() 187 operation, input, input_length ); in mbedtls_test_transparent_mac_update() 191 (void) input_length; in mbedtls_test_transparent_mac_update() 303 size_t input_length, in mbedtls_test_opaque_mac_compute() argument 322 (void) input_length; in mbedtls_test_opaque_mac_compute() [all …]
|
D | test_driver_signature.c | 212 size_t input_length, in mbedtls_test_transparent_signature_sign_message() argument 241 PSA_ALG_SIGN_GET_HASH( alg ), input, input_length, in mbedtls_test_transparent_signature_sign_message() 245 PSA_ALG_SIGN_GET_HASH( alg ), input, input_length, in mbedtls_test_transparent_signature_sign_message() 249 (void) input_length; in mbedtls_test_transparent_signature_sign_message() 266 size_t input_length, in mbedtls_test_opaque_signature_sign_message() argument 276 (void) input_length; in mbedtls_test_opaque_signature_sign_message() 290 size_t input_length, in mbedtls_test_transparent_signature_verify_message() argument 306 PSA_ALG_SIGN_GET_HASH( alg ), input, input_length, in mbedtls_test_transparent_signature_verify_message() 310 PSA_ALG_SIGN_GET_HASH( alg ), input, input_length, in mbedtls_test_transparent_signature_verify_message() 314 (void) input_length; in mbedtls_test_transparent_signature_verify_message() [all …]
|
D | test_driver_aead.c | 251 size_t input_length ) in mbedtls_test_transparent_aead_update_ad() argument 264 mbedtls_psa_aead_update_ad( operation, input, input_length ); in mbedtls_test_transparent_aead_update_ad() 268 (void) input_length; in mbedtls_test_transparent_aead_update_ad() 279 size_t input_length, in mbedtls_test_transparent_aead_update() argument 295 mbedtls_psa_aead_update( operation, input, input_length, output, in mbedtls_test_transparent_aead_update() 300 (void) input_length; in mbedtls_test_transparent_aead_update()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | punyref.cpp | 129 punycode_uint input_length, in punycode_encode() argument 146 for (j = 0; j < input_length; ++j) { in punycode_encode() 166 while (h < input_length) { in punycode_encode() 170 for (m = maxint, j = 0; j < input_length; ++j) { in punycode_encode() 183 for (j = 0; j < input_length; ++j) { in punycode_encode() 218 punycode_uint input_length, in punycode_decode() argument 238 for (b = j = 0; j < input_length; ++j) if (delim(input[j])) b = j; in punycode_decode() 250 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in punycode_decode() 261 if (in >= input_length) return punycode_bad_input; in punycode_decode()
|
/third_party/mbedtls/tests/include/test/drivers/ |
D | cipher.h | 57 const uint8_t *input, size_t input_length, 64 const uint8_t *input, size_t input_length, 88 const uint8_t *input, size_t input_length, 103 const uint8_t *input, size_t input_length, 110 const uint8_t *input, size_t input_length, 134 const uint8_t *input, size_t input_length,
|
D | mac.h | 54 size_t input_length, 76 size_t input_length ); 98 size_t input_length, 120 size_t input_length );
|
D | signature.h | 59 size_t input_length, 70 size_t input_length, 81 size_t input_length, 91 size_t input_length,
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 137 public static final int encode( int input_length, in encode() argument 153 for (j = 0; j < input_length; ++j) { in encode() 173 while (h < input_length) { in encode() 177 for (m = maxint, j = 0; j < input_length; ++j) { in encode() 190 for (j = 0; j < input_length; ++j) { in encode() 297 public static final int decode(int input_length, in decode() argument 316 for (b = j = 0; j < input_length; ++j){ in decode() 332 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in decode() 343 if (in >= input_length) return punycode_bad_input; in decode()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/stringprep/ |
D | PunycodeReference.java | 140 public static final int encode( int input_length, in encode() argument 156 for (j = 0; j < input_length; ++j) { in encode() 176 while (h < input_length) { in encode() 180 for (m = maxint, j = 0; j < input_length; ++j) { in encode() 193 for (j = 0; j < input_length; ++j) { in encode() 300 public static final int decode(int input_length, in decode() argument 319 for (b = j = 0; j < input_length; ++j){ in decode() 335 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in decode() 346 if (in >= input_length) return punycode_bad_input; in decode()
|
/third_party/flutter/skia/third_party/externals/zlib/contrib/bench/ |
D | zlib_bench.cc | 202 std::vector<size_t> input_length(blocks); in zlib_file() local 210 input_length[b] = input_limit - input_start; in zlib_file() 234 zlib_compress(type, input[b], input_length[b], &compressed[b], in zlib_file() 241 zlib_compress(type, input[b], input_length[b], &compressed[b], in zlib_file() 245 output[b].resize(input_length[b]); in zlib_file() 250 zlib_uncompress(type, compressed[b], input_length[b], &output[b]); in zlib_file() 254 verify_equal(input[b], input_length[b], &output[b]); in zlib_file()
|
/third_party/skia/third_party/externals/zlib/contrib/bench/ |
D | zlib_bench.cc | 217 std::vector<size_t> input_length(blocks); in zlib_file() local 225 input_length[b] = input_limit - input_start; in zlib_file() 249 zlib_compress(type, input[b], input_length[b], &compressed[b]); in zlib_file() 255 zlib_compress(type, input[b], input_length[b], &compressed[b], true); in zlib_file() 258 output[b].resize(input_length[b]); in zlib_file() 263 zlib_uncompress(type, compressed[b], input_length[b], &output[b]); in zlib_file() 267 verify_equal(input[b], input_length[b], &output[b]); in zlib_file()
|