Home
last modified time | relevance | path

Searched full:scratch (Results 1 – 25 of 819) sorted by relevance

12345678910>>...33

/src/crypto/openssl/crypto/modes/
H A Dxts128.c33 } tweak, scratch; in CRYPTO_xts128_encrypt() local
48 memcpy(scratch.c, inp, 16); in CRYPTO_xts128_encrypt()
49 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
50 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
52 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in CRYPTO_xts128_encrypt()
53 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in CRYPTO_xts128_encrypt()
55 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
57 scratch.u[0] ^= tweak.u[0]; in CRYPTO_xts128_encrypt()
58 scratch.u[1] ^= tweak.u[1]; in CRYPTO_xts128_encrypt()
59 memcpy(out, scratch.c, 16); in CRYPTO_xts128_encrypt()
[all …]
H A Dxts128gb.c33 } tweak, scratch; in ossl_crypto_xts128gb_encrypt() local
48 memcpy(scratch.c, inp, 16); in ossl_crypto_xts128gb_encrypt()
49 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
50 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
52 scratch.u[0] = ((u64_a1 *)inp)[0] ^ tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
53 scratch.u[1] = ((u64_a1 *)inp)[1] ^ tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
55 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in ossl_crypto_xts128gb_encrypt()
57 scratch.u[0] ^= tweak.u[0]; in ossl_crypto_xts128gb_encrypt()
58 scratch.u[1] ^= tweak.u[1]; in ossl_crypto_xts128gb_encrypt()
59 memcpy(out, scratch.c, 16); in ossl_crypto_xts128gb_encrypt()
[all …]
H A Dccm128.c149 } scratch; in CRYPTO_ccm128_encrypt() local
185 (*block)(ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
188 temp.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
189 temp.u[1] ^= scratch.u[1]; in CRYPTO_ccm128_encrypt()
192 ((u64_a1 *)out)[0] = scratch.u[0] ^ ((u64_a1 *)inp)[0]; in CRYPTO_ccm128_encrypt()
193 ((u64_a1 *)out)[1] = scratch.u[1] ^ ((u64_a1 *)inp)[1]; in CRYPTO_ccm128_encrypt()
204 (*block)(ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
206 out[i] = scratch.c[i] ^ inp[i]; in CRYPTO_ccm128_encrypt()
212 (*block)(ctx->nonce.c, scratch.c, key); in CRYPTO_ccm128_encrypt()
213 ctx->cmac.u[0] ^= scratch.u[0]; in CRYPTO_ccm128_encrypt()
[all …]
/src/contrib/bsnmp/snmp_target/
H A Dtarget_snmp.c168 ctx->scratch->ptr1 = malloc(SNMP_UDP_ADDR_SIZ); in op_snmp_target_addrs()
169 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
171 memcpy(ctx->scratch->ptr1, addrs->address, in op_snmp_target_addrs()
180 ctx->scratch->int1 = strlen(addrs->taglist) + 1; in op_snmp_target_addrs()
181 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
182 if (ctx->scratch->ptr1 == NULL) in op_snmp_target_addrs()
184 strlcpy(ctx->scratch->ptr1, addrs->taglist, in op_snmp_target_addrs()
185 ctx->scratch->int1); in op_snmp_target_addrs()
194 ctx->scratch->int1 = strlen(addrs->paramname) + 1; in op_snmp_target_addrs()
195 ctx->scratch->ptr1 = malloc(ctx->scratch->int1); in op_snmp_target_addrs()
[all …]
/src/crypto/krb5/src/lib/krb5/krb/
H A Drd_rep.c75 krb5_data scratch; in krb5_rd_rep() local
88 scratch.length = reply->enc_part.ciphertext.length; in krb5_rd_rep()
89 scratch.data = malloc(scratch.length); in krb5_rd_rep()
90 if (scratch.data == NULL) { in krb5_rd_rep()
97 &reply->enc_part, &scratch); in krb5_rd_rep()
102 retval = decode_krb5_ap_rep_enc_part(&scratch, &enc); in krb5_rd_rep()
139 if (scratch.data) in krb5_rd_rep()
140 memset(scratch.data, 0, scratch.length); in krb5_rd_rep()
141 free(scratch.data); in krb5_rd_rep()
153 krb5_data scratch; in krb5_rd_rep_dce() local
[all …]
H A Dkdc_rep_dc.c40 krb5_data scratch; in krb5_kdc_rep_decrypt_proc() local
50 /* set up scratch decrypt/decode area */ in krb5_kdc_rep_decrypt_proc()
52 scratch.length = dec_rep->enc_part.ciphertext.length; in krb5_kdc_rep_decrypt_proc()
53 if (!(scratch.data = malloc(dec_rep->enc_part.ciphertext.length))) { in krb5_kdc_rep_decrypt_proc()
60 &scratch))) { in krb5_kdc_rep_decrypt_proc()
61 free(scratch.data); in krb5_kdc_rep_decrypt_proc()
65 #define clean_scratch() {memset(scratch.data, 0, scratch.length); \ in krb5_kdc_rep_decrypt_proc()
66 free(scratch.data);} in krb5_kdc_rep_decrypt_proc()
69 retval = decode_krb5_enc_kdc_rep_part(&scratch, &local_encpart); in krb5_kdc_rep_decrypt_proc()
H A Ddecrypt_tk.c43 krb5_data scratch; in krb5_decrypt_tkt_part() local
52 scratch.length = ticket->enc_part.ciphertext.length; in krb5_decrypt_tkt_part()
53 if (!(scratch.data = malloc(ticket->enc_part.ciphertext.length))) in krb5_decrypt_tkt_part()
59 &ticket->enc_part, &scratch))) { in krb5_decrypt_tkt_part()
60 free(scratch.data); in krb5_decrypt_tkt_part()
65 retval = decode_krb5_enc_tkt_part(&scratch, &dec_tkt_part); in krb5_decrypt_tkt_part()
69 zapfree(scratch.data, scratch.length); in krb5_decrypt_tkt_part()
H A Dpreauth_ec.c66 krb5_data scratch; in ec_process() local
67 scratch.length = padata->length; in ec_process()
68 scratch.data = (char *) padata->contents; in ec_process()
73 retval = decode_krb5_enc_data(&scratch, &enc); in ec_process()
74 scratch.data = NULL; in ec_process()
76 scratch.data = malloc(enc->ciphertext.length); in ec_process()
77 scratch.length = enc->ciphertext.length; in ec_process()
78 if (scratch.data == NULL) in ec_process()
84 enc, &scratch); in ec_process()
90 if (scratch.data) in ec_process()
[all …]
H A Dpreauth_sam2.c99 krb5_data *scratch = NULL; in sam2_process() local
263 krb5_free_data(context, scratch); in sam2_process()
295 &scratch); in sam2_process()
313 scratch->length, &ciph_len); in sam2_process()
317 krb5_free_data(context, scratch); in sam2_process()
328 krb5_free_data(context, scratch); in sam2_process()
333 KRB5_KEYUSAGE_PA_SAM_RESPONSE, NULL, scratch, in sam2_process()
338 krb5_free_data(context, scratch); in sam2_process()
342 krb5_free_data(context, scratch); in sam2_process()
343 scratch = NULL; in sam2_process()
[all …]
/src/sys/dev/irdma/
H A Dirdma_type.h711 u64 scratch; member
1200 int irdma_sc_ccq_create(struct irdma_sc_cq *ccq, u64 scratch,
1202 int irdma_sc_ccq_destroy(struct irdma_sc_cq *ccq, u64 scratch, bool post_sq);
1211 int irdma_sc_ceq_destroy(struct irdma_sc_ceq *ceq, u64 scratch, bool post_sq);
1236 struct irdma_create_qp_info *info, u64 scratch,
1238 int irdma_sc_qp_destroy(struct irdma_sc_qp *qp, u64 scratch,
1241 struct irdma_qp_flush_info *info, u64 scratch,
1245 struct irdma_modify_qp_info *info, u64 scratch,
1254 int irdma_sc_cq_destroy(struct irdma_sc_cq *cq, u64 scratch, bool post_sq);
1257 int irdma_sc_aeq_destroy(struct irdma_sc_aeq *aeq, u64 scratch, bool post_sq);
[all …]
H A Dirdma_uda.h75 u32 op, u64 scratch);
78 u64 scratch);
86 struct irdma_ah_info *info, u64 scratch) in irdma_sc_create_ah() argument
89 scratch); in irdma_sc_create_ah()
93 struct irdma_ah_info *info, u64 scratch) in irdma_sc_destroy_ah() argument
96 scratch); in irdma_sc_destroy_ah()
101 u64 scratch) in irdma_sc_create_mcast_grp() argument
104 scratch); in irdma_sc_create_mcast_grp()
109 u64 scratch) in irdma_sc_modify_mcast_grp() argument
112 scratch); in irdma_sc_modify_mcast_grp()
[all …]
H A Dirdma_ctrl.c262 * @scratch: u64 saved to be used during cqp completion
268 u64 scratch, bool post_sq) in irdma_sc_add_arp_cache_entry() argument
273 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_add_arp_cache_entry()
300 * @scratch: u64 saved to be used during cqp completion
305 irdma_sc_del_arp_cache_entry(struct irdma_sc_cqp *cqp, u64 scratch, in irdma_sc_del_arp_cache_entry() argument
311 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_del_arp_cache_entry()
334 * @scratch: u64 saved to be used during cqp completion
340 u64 scratch, bool post_sq) in irdma_sc_manage_apbvt_entry() argument
345 wqe = irdma_sc_cqp_get_next_send_wqe(cqp, scratch); in irdma_sc_manage_apbvt_entry()
370 * @scratch: u64 saved to be used during cqp completion
[all …]
/src/sys/contrib/edk2/Include/Protocol/
H A DDecompress.h21 and the temporary scratch buffer required to decompress the buffer
23 buffer or the size of the scratch buffer cannot be determined from
26 buffer is returned in DestinationSize, the size of the scratch buffer is
29 The GetInfo() function does not have a scratch buffer available to perform
41 @param ScratchSize A pointer to the size, in bytes, of the scratch buffer that
46 and the size of the scratch buffer was returned in ScratchSize.
47 @retval EFI_INVALID_PARAMETER The size of the uncompressed data or the size of the scratch
69 to allocate and free the Destination and Scratch buffers.
83 @param Scratch A temporary scratch buffer that is used to perform the
85 @param ScratchSize The size of scratch buffer. The size of scratch buffer needed
[all …]
/src/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_begemot.c83 ctx->scratch->int1 = storage_tbl_refresh; in op_begemot()
88 ctx->scratch->int1 = fs_tbl_refresh; in op_begemot()
93 ctx->scratch->int1 = disk_storage_tbl_refresh; in op_begemot()
98 ctx->scratch->int1 = network_tbl_refresh; in op_begemot()
103 ctx->scratch->int1 = swins_tbl_refresh; in op_begemot()
108 ctx->scratch->int1 = swrun_tbl_refresh; in op_begemot()
138 storage_tbl_refresh = ctx->scratch->int1; in op_begemot()
142 fs_tbl_refresh = ctx->scratch->int1; in op_begemot()
146 disk_storage_tbl_refresh = ctx->scratch->int1; in op_begemot()
150 network_tbl_refresh = ctx->scratch->int1; in op_begemot()
[all …]
/src/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_snmp.c260 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
262 strlcpy(ctx->scratch->ptr1, wif->wname, IFNAMSIZ); in op_wlan_iface()
271 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
273 strlcpy(ctx->scratch->ptr1, wif->pname, IFNAMSIZ); in op_wlan_iface()
280 ctx->scratch->int1 = wif->mode; in op_wlan_iface()
287 ctx->scratch->ptr1 = malloc(sizeof(wif->flags)); in op_wlan_iface()
288 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
290 memcpy(ctx->scratch->ptr1, (uint8_t *)&wif->flags, in op_wlan_iface()
299 ctx->scratch->ptr1 = malloc(IEEE80211_ADDR_LEN); in op_wlan_iface()
300 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
[all …]
/src/contrib/bsnmp/snmp_usm/
H A Dusm_snmp.c205 ctx->scratch->int1 = RowStatus_createAndWait; in op_usm_users()
209 ctx->scratch->int1 = uuser->suser.auth_proto; in op_usm_users()
232 ctx->scratch->ptr1 = malloc(SNMP_AUTH_KEY_SIZ); in op_usm_users()
233 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
235 memcpy(ctx->scratch->ptr1, uuser->suser.auth_key, in op_usm_users()
242 ctx->scratch->int1 = uuser->suser.priv_proto; in op_usm_users()
265 ctx->scratch->ptr1 = malloc(SNMP_PRIV_KEY_SIZ); in op_usm_users()
266 if (ctx->scratch->ptr1 == NULL) in op_usm_users()
268 memcpy(ctx->scratch->ptr1, uuser->suser.priv_key, in op_usm_users()
278 ctx->scratch->ptr2 = in op_usm_users()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsExpandPseudo.cpp109 Register Scratch = I->getOperand(7).getReg(); in expandAtomicCmpSwapSubword() local
145 BuildMI(loop1MBB, DL, TII->get(LL), Scratch).addReg(Ptr).addImm(0); in expandAtomicCmpSwapSubword()
147 .addReg(Scratch) in expandAtomicCmpSwapSubword()
157 BuildMI(loop2MBB, DL, TII->get(Mips::AND), Scratch) in expandAtomicCmpSwapSubword()
158 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
160 BuildMI(loop2MBB, DL, TII->get(Mips::OR), Scratch) in expandAtomicCmpSwapSubword()
161 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
163 BuildMI(loop2MBB, DL, TII->get(SC), Scratch) in expandAtomicCmpSwapSubword()
164 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
168 .addReg(Scratch, RegState::Kill) in expandAtomicCmpSwapSubword()
[all …]
/src/sys/dev/ow/
H A Dow_temp.c91 ow_temp_read_scratchpad(device_t dev, uint8_t *scratch, int len) in ow_temp_read_scratchpad() argument
98 memcpy(scratch, cmd.xpt_read, len); in ow_temp_read_scratchpad()
132 uint8_t scratch[8 + 1]; in ow_temp_event_thread() local
154 rv = ow_temp_read_scratchpad(sc->dev, scratch, sizeof(scratch)); in ow_temp_event_thread()
156 crc = own_crc(sc->dev, scratch, sizeof(scratch) - 1); in ow_temp_event_thread()
157 if (crc == scratch[8]) { in ow_temp_event_thread()
159 if (scratch[7]) { in ow_temp_event_thread()
164 tmp = (int16_t)((scratch[0] & 0xfe) | in ow_temp_event_thread()
165 (scratch[1] << 8)) << 3; in ow_temp_event_thread()
166 tmp += 16 - scratch[6] - 4; /* count_per_c == 16 */ in ow_temp_event_thread()
[all …]
/src/contrib/llvm-project/clang/lib/APINotes/
H A DAPINotesReader.cpp706 llvm::SmallVectorImpl<uint64_t> &Scratch);
708 llvm::SmallVectorImpl<uint64_t> &Scratch);
710 llvm::SmallVectorImpl<uint64_t> &Scratch);
712 llvm::SmallVectorImpl<uint64_t> &Scratch);
714 llvm::SmallVectorImpl<uint64_t> &Scratch);
716 llvm::SmallVectorImpl<uint64_t> &Scratch);
718 llvm::SmallVectorImpl<uint64_t> &Scratch);
720 llvm::SmallVectorImpl<uint64_t> &Scratch);
722 llvm::SmallVectorImpl<uint64_t> &Scratch);
724 llvm::SmallVectorImpl<uint64_t> &Scratch);
[all …]
/src/contrib/bsnmp/snmpd/
H A Dexport.c53 * in scratch->ptr1 and the new value is allocated and copied.
63 ctx->scratch->ptr1 = *valp; in string_save()
66 *valp = ctx->scratch->ptr1; in string_save()
82 free(ctx->scratch->ptr1); in string_commit()
92 *valp = ctx->scratch->ptr1; in string_rollback()
101 free(ctx->scratch->ptr1); in string_free()
155 * Save the old IP address in scratch->int1 and set the new one.
160 ctx->scratch->int1 = (valp[0] << 24) | (valp[1] << 16) | (valp[2] << 8) in ip_save()
177 valp[0] = ctx->scratch->int1 >> 24; in ip_rollback()
178 valp[1] = ctx->scratch->int1 >> 16; in ip_rollback()
[all …]
/src/sys/crypto/openssl/
H A Dossl_arm.h56 uint32_t iv32[4], scratch[4]; in AES_CBC_ENCRYPT() local
60 * The key buffer, that normally holds round keys is used as a scratch in AES_CBC_ENCRYPT()
76 memcpy(scratch, in, AES_BLOCK_LEN); in AES_CBC_ENCRYPT()
79 scratch[0] ^= iv32[0]; in AES_CBC_ENCRYPT()
80 scratch[1] ^= iv32[1]; in AES_CBC_ENCRYPT()
81 scratch[2] ^= iv32[2]; in AES_CBC_ENCRYPT()
82 scratch[3] ^= iv32[3]; in AES_CBC_ENCRYPT()
84 AES_encrypt(scratch, out, key); in AES_CBC_ENCRYPT()
/src/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchExpandAtomicPseudoInsts.cpp159 // binop scratch, dest, val in doAtomicBinOpExpansion()
160 // sc.[w|d] scratch, scratch, (addr) in doAtomicBinOpExpansion()
161 // beqz scratch, loop in doAtomicBinOpExpansion()
251 // binop scratch, destreg, incr in doMaskedAtomicBinOpExpansion()
252 // xor scratch, destreg, scratch in doMaskedAtomicBinOpExpansion()
253 // and scratch, scratch, masktargetdata in doMaskedAtomicBinOpExpansion()
254 // xor scratch, destreg, scratch in doMaskedAtomicBinOpExpansion()
255 // sc.w scratch, scratch, (alignedaddr) in doMaskedAtomicBinOpExpansion()
256 // beqz scratch, loop in doMaskedAtomicBinOpExpansion()
515 // move scratch, newval in expandAtomicCmpXchg()
[all …]
/src/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_snmp.c154 if ((ctx->scratch->int1 = strlen(bridge_default)) >= IFNAMSIZ) in bridge_default_name_save()
157 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in bridge_default_name_save()
160 strncpy(ctx->scratch->ptr1, bridge_default, ctx->scratch->int1); in bridge_default_name_save()
208 ctx->scratch->int1 = bridge_data_maxage; in op_begemot_bridge_config()
216 ctx->scratch->int1 = val->v.integer; in op_begemot_bridge_config()
224 bridge_set_default_name(ctx->scratch->ptr1, in op_begemot_bridge_config()
225 ctx->scratch->int1); in op_begemot_bridge_config()
226 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
229 bridge_data_maxage = ctx->scratch->int1; in op_begemot_bridge_config()
237 free(ctx->scratch->ptr1); in op_begemot_bridge_config()
[all …]
H A Dbridge_if.c765 ctx->scratch->int1 = bif->priority; in op_dot1d_stp()
775 ctx->scratch->int1 = bif->bridge_max_age; in op_dot1d_stp()
785 ctx->scratch->int1 = bif->bridge_hello_time; in op_dot1d_stp()
795 ctx->scratch->int1 = bif->bridge_fwd_delay; in op_dot1d_stp()
805 ctx->scratch->int1 = bif->stp_version; in op_dot1d_stp()
815 ctx->scratch->int1 = bif->tx_hold_count; in op_dot1d_stp()
837 bridge_set_priority(bif, ctx->scratch->int1); in op_dot1d_stp()
840 bridge_set_maxage(bif, ctx->scratch->int1); in op_dot1d_stp()
843 bridge_set_hello_time(bif, ctx->scratch->int1); in op_dot1d_stp()
846 bridge_set_forward_delay(bif, ctx->scratch->int1); in op_dot1d_stp()
[all …]
/src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCFrameLowering.h38 * Find register[s] that can be use as scratch register[s] in function
43 * This method will return true if it is able to find enough unique scratch
50 * \param[in] UseAtEnd Specify whether the scratch register will be used at
51 * the end of the basic block (i.e., will the scratch
54 * require two unique scratch registers.
55 * \param[out] SR1 The scratch register to use
56 * \param[out] SR2 The second scratch register. If this pointer is not null
59 * for two unique scratch registers.
61 * false if the required number of scratch register weren't available.
62 * If either output parameter refers to a required scratch register

12345678910>>...33