| /OK3568_Linux_fs/kernel/include/crypto/ |
| H A D | blake2s.h | 32 unsigned int outlen; member 46 static inline void __blake2s_init(struct blake2s_state *state, size_t outlen, in __blake2s_init() argument 49 state->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2s_init() 62 state->outlen = outlen; in __blake2s_init() 71 const size_t outlen) in blake2s_init() argument 73 __blake2s_init(state, outlen, NULL, 0); in blake2s_init() 77 const size_t outlen, const void *key, in blake2s_init_key() argument 80 WARN_ON(IS_ENABLED(DEBUG) && (!outlen || outlen > BLAKE2S_HASH_SIZE || in blake2s_init_key() 83 __blake2s_init(state, outlen, key, keylen); in blake2s_init_key() 90 const size_t outlen, const size_t inlen, in blake2s() argument [all …]
|
| H A D | blake2b.h | 29 unsigned int outlen; member 43 static inline void __blake2b_init(struct blake2b_state *state, size_t outlen, in __blake2b_init() argument 46 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init() 59 state->outlen = outlen; in __blake2b_init()
|
| H A D | drbg.h | 208 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl() argument 212 outbuf, outlen); in crypto_drbg_get_bytes_addtl() 233 unsigned char *outbuf, unsigned int outlen, in crypto_drbg_get_bytes_addtl_test() argument 240 outbuf, outlen); in crypto_drbg_get_bytes_addtl_test()
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/ |
| H A D | mcdi_functions.c | 21 size_t outlen; in efx_mcdi_free_vis() local 23 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_free_vis() 29 efx_mcdi_display_error(efx, MC_CMD_FREE_VIS, 0, outbuf, outlen, in efx_mcdi_free_vis() 40 size_t outlen; in efx_mcdi_alloc_vis() local 46 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_alloc_vis() 50 if (outlen < MC_CMD_ALLOC_VIS_OUT_LEN) in efx_mcdi_alloc_vis() 79 size_t inlen, outlen; in efx_mcdi_ev_init() local 124 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_ev_init() 126 if (outlen >= MC_CMD_INIT_EVQ_V2_OUT_LEN) in efx_mcdi_ev_init() 145 size_t outlen; in efx_mcdi_ev_fini() local [all …]
|
| H A D | mcdi.c | 41 size_t outlen; member 546 min(async->outlen, data_len)); in efx_mcdi_complete_async() 557 min(async->outlen, data_len)); in efx_mcdi_complete_async() 653 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_finish() argument 714 min(outlen, data_len)); in _efx_mcdi_rpc_finish() 804 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc() argument 820 rc = _efx_mcdi_rpc_finish(efx, cmd, inlen, outbuf, outlen, in _efx_mcdi_rpc() 844 outbuf, outlen, outlen_actual, in _efx_mcdi_rpc() 862 efx_dword_t *outbuf, size_t outlen, in _efx_mcdi_rpc_evb_retry() argument 869 outbuf, outlen, outlen_actual, true, &raw_rc); in _efx_mcdi_rpc_evb_retry() [all …]
|
| H A D | mcdi_port.c | 26 size_t outlen; in efx_mcdi_mdio_read() local 35 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_read() 52 size_t outlen; in efx_mcdi_mdio_write() local 62 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_mdio_write()
|
| H A D | ef10_sriov.c | 77 size_t outlen; in efx_ef10_vport_alloc() local 93 outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_alloc() 96 if (outlen < MC_CMD_VPORT_ALLOC_OUT_LEN) in efx_ef10_vport_alloc() 476 size_t outlen; in efx_ef10_vport_del_vf_mac() local 483 sizeof(inbuf), outbuf, sizeof(outbuf), &outlen); in efx_ef10_vport_del_vf_mac() 697 size_t outlen; in efx_ef10_sriov_set_privilege_mask() local 709 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask() 713 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask() 731 pm_outbuf, sizeof(pm_outbuf), &outlen); in efx_ef10_sriov_set_privilege_mask() 735 if (outlen != MC_CMD_PRIVILEGE_MASK_OUT_LEN) in efx_ef10_sriov_set_privilege_mask() [all …]
|
| H A D | mcdi_port_common.c | 18 size_t outlen; in efx_mcdi_get_phy_cfg() local 25 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_get_phy_cfg() 29 if (outlen < MC_CMD_GET_PHY_CFG_OUT_LEN) { in efx_mcdi_get_phy_cfg() 91 size_t outlen; in efx_mcdi_loopback_modes() local 95 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_loopback_modes() 99 if (outlen < (MC_CMD_GET_LOOPBACK_MODES_OUT_SUGGESTED_OFST + in efx_mcdi_loopback_modes() 621 size_t outlen; in efx_mcdi_phy_get_fecparam() local 626 outbuf, sizeof(outbuf), &outlen); in efx_mcdi_phy_get_fecparam() 629 if (outlen < MC_CMD_GET_LINK_OUT_V2_LEN) in efx_mcdi_phy_get_fecparam() 714 size_t outlen; in efx_mcdi_phy_test_alive() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/ngene/ |
| H A D | ngene-i2c.c | 32 u8 *out, u8 outlen, u8 *in, u8 inlen, int flag) in ngene_command_i2c_read() argument 37 com.cmd.hdr.Length = outlen + 3; in ngene_command_i2c_read() 39 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_read() 40 com.cmd.I2CRead.Data[outlen] = inlen; in ngene_command_i2c_read() 41 com.cmd.I2CRead.Data[outlen + 1] = 0; in ngene_command_i2c_read() 42 com.in_len = outlen + 3; in ngene_command_i2c_read() 59 u8 *out, u8 outlen) in ngene_command_i2c_write() argument 65 com.cmd.hdr.Length = outlen + 1; in ngene_command_i2c_write() 67 memcpy(com.cmd.I2CRead.Data, out, outlen); in ngene_command_i2c_write() 68 com.in_len = outlen + 1; in ngene_command_i2c_write()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/nx-gzip/ |
| H A D | gzfht_test.c | 239 size_t inlen, outlen, dsttotlen, srctotlen; in compress_file() local 261 outlen = 2 * inlen + 1024; in compress_file() 263 assert(NULL != (outbuf = (char *)malloc(outlen))); in compress_file() 264 nxu_touch_pages(outbuf, outlen, pagelen, 1); in compress_file() 272 outlen = outlen - num_hdr_bytes; in compress_file() 289 dstlen = NX_MIN(2*srclen, outlen); in compress_file() 354 outlen = outlen - tpbc; in compress_file() 360 outlen = outlen - flushlen; in compress_file() 371 outlen = outlen - tpbc; in compress_file() 384 outlen = outlen - 8; in compress_file()
|
| /OK3568_Linux_fs/buildroot/package/vtun/ |
| H A D | 0003-openssl11.patch | 157 outlen=len+pad; 160 - EVP_EncryptUpdate(&ctx_enc, out_ptr, &outlen, in_ptr, len+pad); 161 + EVP_EncryptUpdate(ctx_enc, out_ptr, &outlen, in_ptr, len+pad); 166 return outlen+msg_len; 171 outlen=len; 173 - EVP_DecryptUpdate(&ctx_dec, out_ptr, &outlen, in_ptr, len); 174 + EVP_DecryptUpdate(ctx_dec, out_ptr, &outlen, in_ptr, len); 175 recv_ib_mesg(&outlen, &out_ptr); 176 if (!outlen) return 0; 177 tmp_ptr = out_ptr + outlen; tmp_ptr--; [all …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-connectivity/freeradius/files/ |
| H A D | CVE-2022-41861.patch | 20 @@ -1205,13 +1205,19 @@ void print_abinary(char *out, size_t outlen, uint8_t const *data, size_t le… 33 i = snprintf(p, outlen, " %u ", (unsigned int) ntohs(filter->u.generic.offset)); 39 i = snprintf(p, outlen, "%02x", filter->u.generic.mask[count]); 41 outlen -= i; 42 @@ -1222,7 +1228,7 @@ void print_abinary(char *out, size_t outlen, uint8_t const *data, size_t len,… 43 outlen--; 48 i = snprintf(p, outlen, "%02x", filter->u.generic.value[count]); 50 outlen -= i;
|
| /OK3568_Linux_fs/kernel/fs/jfs/ |
| H A D | jfs_unicode.c | 23 int outlen = 0; in jfs_strfromUCS_le() local 32 &to[outlen], in jfs_strfromUCS_le() 35 outlen += charlen; in jfs_strfromUCS_le() 37 to[outlen++] = '?'; in jfs_strfromUCS_le() 57 outlen = i; in jfs_strfromUCS_le() 59 to[outlen] = 0; in jfs_strfromUCS_le() 60 return outlen; in jfs_strfromUCS_le()
|
| /OK3568_Linux_fs/kernel/lib/crypto/ |
| H A D | blake2s-selftest.c | 563 int outlen = 1 + i % BLAKE2S_HASH_SIZE; in blake2s_selftest() local 566 blake2s(hash, buf, key + BLAKE2S_KEY_SIZE - keylen, outlen, i, in blake2s_selftest() 568 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest() 574 blake2s_init(&state, outlen); in blake2s_selftest() 576 blake2s_init_key(&state, outlen, in blake2s_selftest() 583 if (memcmp(hash, blake2s_testvecs[i], outlen)) { in blake2s_selftest()
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/exiv2/exiv2/ |
| H A D | CVE-2021-29464.patch | 19 - int outlen = sizeof(Jp2BoxHeader) ; // now many bytes have we written to output? 21 + long outlen = sizeof(Jp2BoxHeader) ; // now many bytes have we written to output? 50 + enforce(newlen <= output.size_ - outlen, Exiv2::kerCorruptedMetadata); 53 … ::memcpy(output.pData_+outlen ,&newBox ,sizeof(newBox)); 58 + enforce(newlen <= output.size_ - outlen, Exiv2::kerCorruptedMetadata); 61 … ::memcpy(output.pData_+outlen ,&newBox ,sizeof(newBox) ); 66 + enforce(newlen <= output.size_ - outlen, Exiv2::kerCorruptedMetadata); 67 ::memcpy(output.pData_+outlen,boxBuf.pData_+inlen,subBox.length);
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/supp_plugin/ |
| H A D | ta_entry.c | 48 size_t outlen = 0; in pass_values() local 62 sizeof(struct add_op), &outlen); in pass_values() 76 size_t outlen = 0; in write_array() local 84 params[0].memref.size, &outlen); in write_array() 98 size_t outlen = 0; in get_array() local 106 &outlen); in get_array() 107 params[1].value.a = (uint32_t)outlen; in get_array()
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | cifs_unicode.c | 183 int outlen = 0; in cifs_from_utf16() local 214 if (outlen >= safelen) { in cifs_from_utf16() 216 if ((outlen + charlen) > (tolen - nullsize)) in cifs_from_utf16() 221 charlen = cifs_mapchar(&to[outlen], ftmp, codepage, map_type); in cifs_from_utf16() 222 outlen += charlen; in cifs_from_utf16() 238 to[outlen++] = 0; in cifs_from_utf16() 240 return outlen; in cifs_from_utf16() 310 int charlen, outlen = 0; in cifs_utf16_bytes() local 329 outlen += charlen; in cifs_utf16_bytes() 332 return outlen; in cifs_utf16_bytes()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/nx/ |
| H A D | nx-842-pseries.c | 278 unsigned char *out, unsigned int *outlen, in nx842_pseries_compress() argument 300 if (check_constraints(outbuf, outlen, false)) in nx842_pseries_compress() 335 ((outbuf + *outlen - 1) & NX842_HW_PAGE_MASK)) { in nx842_pseries_compress() 338 op.outlen = *outlen; in nx842_pseries_compress() 341 nx842_build_scatterlist(outbuf, *outlen, &slout); in nx842_pseries_compress() 343 op.outlen = -nx842_get_scatterlist_size(&slout); in nx842_pseries_compress() 348 (unsigned long)op.out, (long)op.outlen); in nx842_pseries_compress() 366 *outlen = be32_to_cpu(csbcpb->csb.processed_byte_count); in nx842_pseries_compress() 367 dev_dbg(dev, "%s: processed_bytes=%d\n", __func__, *outlen); in nx842_pseries_compress() 408 unsigned char *out, unsigned int *outlen, in nx842_pseries_decompress() argument [all …]
|
| /OK3568_Linux_fs/kernel/security/keys/ |
| H A D | dh.c | 234 int outlen; in __keyctl_dh_compute() local 325 outlen = crypto_kpp_maxsize(tfm); in __keyctl_dh_compute() 333 ret = outlen; in __keyctl_dh_compute() 335 } else if (outlen > buflen) { in __keyctl_dh_compute() 341 outbuf = kzalloc(kdfcopy ? (outlen + kdfcopy->otherinfolen) : outlen, in __keyctl_dh_compute() 348 sg_init_one(&outsg, outbuf, outlen); in __keyctl_dh_compute() 357 kpp_request_set_output(req, &outsg, outlen); in __keyctl_dh_compute() 388 outlen - req->dst_len); in __keyctl_dh_compute()
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | algif_aead.c | 105 size_t outlen = 0; /* [out] RX bufs produced by kernel */ in _aead_recvmsg() local 142 outlen = used + as; in _aead_recvmsg() 144 outlen = used - as; in _aead_recvmsg() 159 err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); in _aead_recvmsg() 170 if (usedpages < outlen) { in _aead_recvmsg() 171 size_t less = outlen - usedpages; in _aead_recvmsg() 178 outlen -= less; in _aead_recvmsg() 245 areq->first_rsgl.sgl.sg, outlen); in _aead_recvmsg() 291 areq->outlen = outlen; in _aead_recvmsg() 320 return err ? err : outlen; in _aead_recvmsg()
|
| /OK3568_Linux_fs/kernel/drivers/media/usb/dvb-usb/ |
| H A D | vp7045.c | 25 int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int mse… in vp7045_usb_op() argument 32 if (outlen > 19) in vp7045_usb_op() 33 outlen = 19; in vp7045_usb_op() 42 if (out != NULL && outlen > 0) in vp7045_usb_op() 43 memcpy(&buf[1], out, outlen); in vp7045_usb_op() 46 debug_dump(buf, outlen+1, deb_xfer); in vp7045_usb_op()
|
| /OK3568_Linux_fs/u-boot/arch/x86/lib/ |
| H A D | scu.c | 87 u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_cmd() argument 98 for (i = 0; i < outlen; i++) in scu_ipc_cmd() 133 int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen) in scu_ipc_command() argument 145 return scu_ipc_cmd(scu->regs, cmd, sub, in, inlen, out, outlen); in scu_ipc_command()
|
| /OK3568_Linux_fs/yocto/meta-qt5/recipes-qt/qt5/qtwebengine/chromium/ |
| H A D | 0011-chromium-Remove-TRUE-to-prep-landing-of-icu68.patch | 33 @@ -1882,7 +1882,7 @@ xmlIconvWrapper(iconv_t cd, unsigned char *out, int *outlen, 34 * @outlen: the length of @out 42 @@ -1922,7 +1922,7 @@ xmlUconvWrapper(uconv_t *cd, int toUnicode, unsigned char *out, int *outlen, 44 *outlen = ucv_out - (char *) out; 54 ret = xmlUconvWrapper(handler->uconv_out, 0, out, outlen, in, inlen,
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/ |
| H A D | ecdh.h | 96 int ECDH_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, 98 void *out, size_t *outlen)); 106 int ECDH_KDF_X9_62(unsigned char *out, size_t outlen,
|
| /OK3568_Linux_fs/kernel/fs/fat/ |
| H A D | namei_vfat.c | 512 int *longlen, int *outlen, int escape, int utf8, in xlate_to_uni() argument 521 *outlen = utf8s_to_utf16s(name, len, UTF16_HOST_ENDIAN, in xlate_to_uni() 523 if (*outlen < 0) in xlate_to_uni() 524 return *outlen; in xlate_to_uni() 525 else if (*outlen > FAT_LFN_LEN) in xlate_to_uni() 528 op = &outname[*outlen * sizeof(wchar_t)]; in xlate_to_uni() 530 for (i = 0, ip = name, op = outname, *outlen = 0; in xlate_to_uni() 531 i < len && *outlen < FAT_LFN_LEN; in xlate_to_uni() 532 *outlen += 1) { in xlate_to_uni() 561 *longlen = *outlen; in xlate_to_uni() [all …]
|