Home
last modified time | relevance | path

Searched refs:dec_buf (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/dports/security/openvpn/openvpn-2.5.6/tests/unit_tests/openvpn/
H A Dtest_crypto.c54 struct buffer dec_buf; in crypto_pem_encode_decode_loopback() local
55 buf_set_write(&dec_buf, dec, sizeof(dec)); in crypto_pem_encode_decode_loopback()
63 assert_false(crypto_pem_decode("WRONGNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
65 assert_true(crypto_pem_decode("TESTKEYNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
66 assert_int_equal(BLEN(&src_buf), BLEN(&dec_buf)); in crypto_pem_encode_decode_loopback()
67 assert_memory_equal(BPTR(&src_buf), BPTR(&dec_buf), BLEN(&src_buf)); in crypto_pem_encode_decode_loopback()
/dports/security/openvpn-mbedtls/openvpn-2.5.6/tests/unit_tests/openvpn/
H A Dtest_crypto.c54 struct buffer dec_buf; in crypto_pem_encode_decode_loopback() local
55 buf_set_write(&dec_buf, dec, sizeof(dec)); in crypto_pem_encode_decode_loopback()
63 assert_false(crypto_pem_decode("WRONGNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
65 assert_true(crypto_pem_decode("TESTKEYNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
66 assert_int_equal(BLEN(&src_buf), BLEN(&dec_buf)); in crypto_pem_encode_decode_loopback()
67 assert_memory_equal(BPTR(&src_buf), BPTR(&dec_buf), BLEN(&src_buf)); in crypto_pem_encode_decode_loopback()
/dports/security/openvpn-devel/openvpn-0033811e0215af76f469d78912c95a2f59813454/tests/unit_tests/openvpn/
H A Dtest_crypto.c55 struct buffer dec_buf; in crypto_pem_encode_decode_loopback() local
56 buf_set_write(&dec_buf, dec, sizeof(dec)); in crypto_pem_encode_decode_loopback()
64 assert_false(crypto_pem_decode("WRONGNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
66 assert_true(crypto_pem_decode("TESTKEYNAME", &dec_buf, &pem_buf)); in crypto_pem_encode_decode_loopback()
67 assert_int_equal(BLEN(&src_buf), BLEN(&dec_buf)); in crypto_pem_encode_decode_loopback()
68 assert_memory_equal(BPTR(&src_buf), BPTR(&dec_buf), BLEN(&src_buf)); in crypto_pem_encode_decode_loopback()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2.c429 struct xz_buf dec_buf; in mlxfw_mfa2_file_cb_offset_xz() local
438 dec_buf.in_size = mfa2_file->cb_archive_size; in mlxfw_mfa2_file_cb_offset_xz()
439 dec_buf.in = mfa2_file->cb; in mlxfw_mfa2_file_cb_offset_xz()
440 dec_buf.in_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
441 dec_buf.out = buf; in mlxfw_mfa2_file_cb_offset_xz()
445 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
446 dec_buf.out_size = min_t(size_t, size, off - curr_off); in mlxfw_mfa2_file_cb_offset_xz()
447 if (dec_buf.out_size == 0) in mlxfw_mfa2_file_cb_offset_xz()
458 curr_off += dec_buf.out_pos; in mlxfw_mfa2_file_cb_offset_xz()
462 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2.c429 struct xz_buf dec_buf; in mlxfw_mfa2_file_cb_offset_xz() local
438 dec_buf.in_size = mfa2_file->cb_archive_size; in mlxfw_mfa2_file_cb_offset_xz()
439 dec_buf.in = mfa2_file->cb; in mlxfw_mfa2_file_cb_offset_xz()
440 dec_buf.in_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
441 dec_buf.out = buf; in mlxfw_mfa2_file_cb_offset_xz()
445 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
446 dec_buf.out_size = min_t(size_t, size, off - curr_off); in mlxfw_mfa2_file_cb_offset_xz()
447 if (dec_buf.out_size == 0) in mlxfw_mfa2_file_cb_offset_xz()
458 curr_off += dec_buf.out_pos; in mlxfw_mfa2_file_cb_offset_xz()
462 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/net/ethernet/mellanox/mlxfw/
H A Dmlxfw_mfa2.c429 struct xz_buf dec_buf; in mlxfw_mfa2_file_cb_offset_xz() local
438 dec_buf.in_size = mfa2_file->cb_archive_size; in mlxfw_mfa2_file_cb_offset_xz()
439 dec_buf.in = mfa2_file->cb; in mlxfw_mfa2_file_cb_offset_xz()
440 dec_buf.in_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
441 dec_buf.out = buf; in mlxfw_mfa2_file_cb_offset_xz()
445 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
446 dec_buf.out_size = min_t(size_t, size, off - curr_off); in mlxfw_mfa2_file_cb_offset_xz()
447 if (dec_buf.out_size == 0) in mlxfw_mfa2_file_cb_offset_xz()
458 curr_off += dec_buf.out_pos; in mlxfw_mfa2_file_cb_offset_xz()
462 dec_buf.out_pos = 0; in mlxfw_mfa2_file_cb_offset_xz()
[all …]
/dports/graphics/libdrm/libdrm-2.4.110/tests/amdgpu/
H A Djpeg_tests.c537 struct amdgpu_jpeg_bo dec_buf; in amdgpu_cs_jpeg_decode() local
545 resources[num_resources++] = dec_buf.handle; in amdgpu_cs_jpeg_decode()
547 r = amdgpu_bo_cpu_map(dec_buf.handle, (void **)&dec_buf.ptr); in amdgpu_cs_jpeg_decode()
554 send_cmd_bitstream_direct(dec_buf.addr); in amdgpu_cs_jpeg_decode()
557 send_cmd_bitstream(dec_buf.addr); in amdgpu_cs_jpeg_decode()
558 send_cmd_target(dec_buf.addr + (size / 2)); in amdgpu_cs_jpeg_decode()
561 amdgpu_bo_cpu_unmap(dec_buf.handle); in amdgpu_cs_jpeg_decode()
565 r = amdgpu_bo_cpu_map(dec_buf.handle, (void **)&dec_buf.ptr); in amdgpu_cs_jpeg_decode()
568 dec = dec_buf.ptr + (size / 2); in amdgpu_cs_jpeg_decode()
578 amdgpu_bo_cpu_unmap(dec_buf.handle); in amdgpu_cs_jpeg_decode()
[all …]
H A Dvcn_tests.c356 struct amdgpu_vcn_bo dec_buf; in amdgpu_cs_vcn_dec_decode() local
368 alloc_resource(&dec_buf, size, AMDGPU_GEM_DOMAIN_GTT); in amdgpu_cs_vcn_dec_decode()
369 resources[num_resources++] = dec_buf.handle; in amdgpu_cs_vcn_dec_decode()
372 r = amdgpu_bo_cpu_map(dec_buf.handle, (void **)&dec_buf.ptr); in amdgpu_cs_vcn_dec_decode()
373 dec = dec_buf.ptr; in amdgpu_cs_vcn_dec_decode()
376 memset(dec_buf.ptr, 0, size); in amdgpu_cs_vcn_dec_decode()
377 memcpy(dec_buf.ptr, vcn_dec_decode_msg, sizeof(vcn_dec_decode_msg)); in amdgpu_cs_vcn_dec_decode()
378 memcpy(dec_buf.ptr + sizeof(vcn_dec_decode_msg), in amdgpu_cs_vcn_dec_decode()
393 msg_addr = dec_buf.addr; in amdgpu_cs_vcn_dec_decode()
425 free_resource(&dec_buf); in amdgpu_cs_vcn_dec_decode()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/libdrm/src/tests/amdgpu/
H A Dvcn_tests.c310 struct amdgpu_vcn_bo dec_buf; in amdgpu_cs_vcn_dec_decode() local
322 alloc_resource(&dec_buf, size, AMDGPU_GEM_DOMAIN_GTT); in amdgpu_cs_vcn_dec_decode()
323 resources[num_resources++] = dec_buf.handle; in amdgpu_cs_vcn_dec_decode()
326 r = amdgpu_bo_cpu_map(dec_buf.handle, (void **)&dec_buf.ptr); in amdgpu_cs_vcn_dec_decode()
327 dec = dec_buf.ptr; in amdgpu_cs_vcn_dec_decode()
330 memset(dec_buf.ptr, 0, size); in amdgpu_cs_vcn_dec_decode()
331 memcpy(dec_buf.ptr, vcn_dec_decode_msg, sizeof(vcn_dec_decode_msg)); in amdgpu_cs_vcn_dec_decode()
332 memcpy(dec_buf.ptr + sizeof(vcn_dec_decode_msg), in amdgpu_cs_vcn_dec_decode()
346 msg_addr = dec_buf.addr; in amdgpu_cs_vcn_dec_decode()
378 free_resource(&dec_buf); in amdgpu_cs_vcn_dec_decode()
/dports/www/ls-qpack/ls-qpack-2.2.2/test/
H A Dtest_qpack.c259 unsigned char dec_buf[LSQPACK_LONGEST_SDTC]; in run_header_test() local
263 dec_sz = sizeof(dec_buf); in run_header_test()
440 dec_sz = sizeof(dec_buf); in run_decoded_headers_test_ext()
444 dec_buf, &dec_sz); in run_decoded_headers_test_ext()
448 dec_sz = sizeof(dec_buf); in run_decoded_headers_test_ext()
451 dec_buf, &dec_sz); in run_decoded_headers_test_ext()
530 unsigned char dec_buf[LSQPACK_LONGEST_SDTC]; in test_enc_init() local
545 dec_sz = sizeof(dec_buf); in test_enc_init()
552 assert((dec_buf[0] & 0xE0) == 0x20); in test_enc_init()
553 p = dec_buf; in test_enc_init()
[all …]
/dports/lang/gcc12-devel/gcc-12-20211205/libphobos/src/std/format/internal/
H A Dfloats.d761 dec_buf[left - 1] = dec_buf[left];
762 dec_buf[left] = '.';
768 else if (dec_buf[start] != '0' && dec_buf[start] != '5')
939 if (dec_buf[right] == '5' || dec_buf[right] == '0')
1042 dec_buf[left + 2] = dec_buf[left + 1];
1066 dec_buf[right++] = '.';
1069 writeAligned(w, sgn, dec_buf[left .. left + 1], dec_buf[left + 1 .. right],
1072 writeAligned(w, sgn, dec_buf[left .. left + 1], dec_buf[left + 1 .. right],
1600 right = dec_buf.length;
1601 dec_buf[start] = '.';
[all …]
/dports/sysutils/fluent-bit/fluent-bit-1.8.11/src/
H A Dflb_parser_decoder.c225 char *dec_buf; in flb_parser_decoder_do() local
385 dec_buf = NULL; in flb_parser_decoder_do()
421 &dec_buf, &dec_size, &dec_type); in flb_parser_decoder_do()
426 &dec_buf, &dec_size, &dec_type); in flb_parser_decoder_do()
431 &dec_buf, &dec_size, &dec_type); in flb_parser_decoder_do()
453 tmp_sds = flb_sds_copy(in_sds, dec_buf, dec_size); in flb_parser_decoder_do()
457 tmp_sds = flb_sds_copy(data_sds, dec_buf, dec_size); in flb_parser_decoder_do()
465 tmp_sds = flb_sds_copy(out_sds, dec_buf, dec_size); in flb_parser_decoder_do()
474 if (dec_buf != dec->buffer) { in flb_parser_decoder_do()
475 flb_free(dec_buf); in flb_parser_decoder_do()
[all …]
/dports/security/john/john-1.9.0-jumbo-1/src/
H A Dkeepass_fmt_plug.c206 unsigned char dec_buf[32]; in crypt_all() local
208 AES_cbc_encrypt(cur_salt->contents, dec_buf, 32, in crypt_all()
210 if (!memcmp(dec_buf, cur_salt->expected_bytes, 32)) { in crypt_all()
219 unsigned char dec_buf[32]; in crypt_all() local
221 chacha_decrypt_bytes(&ckey, cur_salt->contents, dec_buf, 32, 20); in crypt_all()
222 if (!memcmp(dec_buf, cur_salt->expected_bytes, 32)) { in crypt_all()
/dports/www/py-pylsqpack/pylsqpack-0.3.13/vendor/ls-qpack/test/
H A Dtest_qpack.c216 unsigned char dec_buf[LSQPACK_LONGEST_SDTC]; in run_header_test() local
218 dec_sz = sizeof(dec_buf); in run_header_test()
221 LSQPACK_ENC_OPT_IX_AGGR, dec_buf, &dec_sz); in run_header_test()
328 unsigned char dec_buf[LSQPACK_LONGEST_SDTC]; in test_enc_init() local
343 dec_sz = sizeof(dec_buf); in test_enc_init()
345 tests[i].our_max_size, 0, 0, dec_buf, &dec_sz); in test_enc_init()
350 assert((dec_buf[0] & 0xE0) == 0x20); in test_enc_init()
351 p = dec_buf; in test_enc_init()
378 unsigned char dec_buf[LSQPACK_LONGEST_SDTC]; in test_push_promise() local
384 dec_sz = sizeof(dec_buf); in test_push_promise()
[all …]
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavformat/
H A Dtls_schannel.c60 uint8_t *dec_buf; member
138 av_freep(&c->dec_buf); in tls_close()
165 if (c->dec_buf == NULL) { in tls_client_handshake_loop()
167 ret = av_reallocp(&c->dec_buf, SCHANNEL_INITIAL_BUFFER_SIZE); in tls_client_handshake_loop()
449 ret = av_reallocp(&c->dec_buf, c->dec_buf_size); in tls_read()
459 memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); in tls_read()
510 memcpy(buf, c->dec_buf, size); in tls_read()
511 memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); in tls_read()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavformat/
H A Dtls_schannel.c60 uint8_t *dec_buf; member
138 av_freep(&c->dec_buf); in tls_close()
164 if (c->dec_buf == NULL) { in tls_client_handshake_loop()
166 ret = av_reallocp(&c->dec_buf, SCHANNEL_INITIAL_BUFFER_SIZE); in tls_client_handshake_loop()
453 ret = av_reallocp(&c->dec_buf, c->dec_buf_size); in tls_read()
463 memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); in tls_read()
514 memcpy(buf, c->dec_buf, size); in tls_read()
515 memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); in tls_read()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavformat/
H A Dtls_schannel.c60 uint8_t *dec_buf; member
138 av_freep(&c->dec_buf); in tls_close()
165 if (c->dec_buf == NULL) { in tls_client_handshake_loop()
167 ret = av_reallocp(&c->dec_buf, SCHANNEL_INITIAL_BUFFER_SIZE); in tls_client_handshake_loop()
449 ret = av_reallocp(&c->dec_buf, c->dec_buf_size); in tls_read()
459 memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); in tls_read()
510 memcpy(buf, c->dec_buf, size); in tls_read()
511 memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); in tls_read()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavformat/
H A Dtls_schannel.c60 uint8_t *dec_buf; member
138 av_freep(&c->dec_buf); in tls_close()
164 if (c->dec_buf == NULL) { in tls_client_handshake_loop()
166 ret = av_reallocp(&c->dec_buf, SCHANNEL_INITIAL_BUFFER_SIZE); in tls_client_handshake_loop()
453 ret = av_reallocp(&c->dec_buf, c->dec_buf_size); in tls_read()
463 memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); in tls_read()
514 memcpy(buf, c->dec_buf, size); in tls_read()
515 memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); in tls_read()
/dports/multimedia/handbrake/ffmpeg-4.4/libavformat/
H A Dtls_schannel.c60 uint8_t *dec_buf; member
138 av_freep(&c->dec_buf); in tls_close()
164 if (c->dec_buf == NULL) { in tls_client_handshake_loop()
166 ret = av_reallocp(&c->dec_buf, SCHANNEL_INITIAL_BUFFER_SIZE); in tls_client_handshake_loop()
453 ret = av_reallocp(&c->dec_buf, c->dec_buf_size); in tls_read()
463 memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); in tls_read()
514 memcpy(buf, c->dec_buf, size); in tls_read()
515 memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); in tls_read()
/dports/net-mgmt/seafile-client/seafile-7.0.9/common/
H A Dseafile-crypt.c389 char *dec_buf = NULL; in seafile_decrypt() local
412 dec_buf = g_new (char, in_len); in seafile_decrypt()
413 rc = gnutls_cipher_decrypt2 (handle, data_in, in_len, dec_buf, in_len); in seafile_decrypt()
421 padding = dec_buf[in_len - 1]; in seafile_decrypt()
424 *data_out = dec_buf; in seafile_decrypt()
429 g_free (dec_buf); in seafile_decrypt()
/dports/security/py-msoffcrypto-tool/msoffcrypto-tool-4.11.0/msoffcrypto/format/
H A Dppt97.py712 dec_buf = io.BytesIO(dec_bytearray)
714 dec_buf.seek(0)
716 dec_buf.seek(offset)
717 buf = dec_buf.read(8)
721 dec_buf.seek(0)
722 …ointdocument_size={}, len(dec_buf.read())={}".format(powerpointdocument_size, len(dec_buf.read())))
724 dec_buf.seek(0)
725 powerpointdocument_dec_buf = dec_buf
/dports/net-im/libsignal-client/libsignal-client-0.9.6/rust/crypto/tests/
H A Daes_gcm.rs93 let mut dec_buf = ct.clone(); in test_kat() localVariable
105 gcm_dec.decrypt(&mut dec_buf[processed..processed + this_time])?; in test_kat()
113 assert_eq!(hex::encode(dec_buf), hex::encode(&pt)); in test_kat()
/dports/www/py-pylsqpack/pylsqpack-0.3.13/src/pylsqpack/
H A Dbinding.c81 unsigned char dec_buf[DEC_BUF_SZ]; member
181 self->dec_buf, in Decoder_feed_header()
201 PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len), in Decoder_feed_header()
249 self->dec_buf, in Decoder_resume_header()
271 PyBytes_FromStringAndSize((const char*)self->dec_buf, dec_len), in Decoder_resume_header()
/dports/sysutils/duplicity/duplicity-0.8.20/testing/unit/
H A Dtest_gpg.py61 dec_buf = decrypted_file.read()
64 assert s == dec_buf, (len(s), len(dec_buf))
/dports/net/vtun/vtun-3.0.4/
H A Dlfd_encrypt.c69 static char * dec_buf; variable
171 if( !(dec_buf = lfd_alloc(ENC_BUF_SIZE)) ){ in alloc_encrypt()
300 lfd_free(dec_buf); dec_buf = NULL; in free_encrypt()
342 char *tmp_ptr, *in_ptr, *out_ptr = dec_buf; in decrypt_buf()

12345678910>>...12