t_in_p = (unsigned char *) t_input;
#ifdef MUSTALIGN
if ((long) ivec & 3) {
- bcopy((char *)ivec++,(char *)&t_output[0],sizeof(t_output[0]));
- bcopy((char *)ivec,(char *)&t_output[1],sizeof(t_output[1]));
+ memcpy((char *)&t_output[0],(char *)ivec++,sizeof(t_output[0]));
+ memcpy((char *)&t_output[1],(char *)ivec,sizeof(t_output[1]));
}
else
#endif
/* get input */
#ifdef MUSTALIGN
if ((long) input & 3) {
- bcopy((char *)input++,(char *)&t_input[0],sizeof(t_input[0]));
- bcopy((char *)input++,(char *)&t_input[1],sizeof(t_input[1]));
+ memcpy((char *)&t_input[0],(char *)input++,sizeof(t_input[0]));
+ memcpy((char *)&t_input[1],(char *)input++,sizeof(t_input[1]));
}
else
#endif
/* copy temp output and save it for checksum */
#ifdef MUSTALIGN
if ((long) output & 3) {
- bcopy((char *)&t_output[0],(char *)output++,sizeof(t_output[0]));
- bcopy((char *)&t_output[1],(char *)output,sizeof(t_output[1]));
+ memcpy((char *)output++,(char *)&t_output[0],sizeof(t_output[0]));
+ memcpy((char *)output,(char *)&t_output[1],sizeof(t_output[1]));
}
else
#endif
}
#endif
if ((long) clear & 3) {
- bcopy((char *)clear++,(char *)&L_save,sizeof(L_save));
- bcopy((char *)clear,(char *)&R_save,sizeof(R_save));
+ memcpy((char *)&L_save,(char *)clear++,sizeof(L_save));
+ memcpy((char *)&R_save,(char *)clear,sizeof(R_save));
L1 = L_save;
R1 = R_save;
}
if ((long) cipher & 3) {
L_save = L2; /* cant bcopy a reg */
R_save = R2;
- bcopy((char *)&L_save,(char *)cipher++,sizeof(L_save));
- bcopy((char *)&R_save,(char *)cipher,sizeof(R_save));
+ memcpy((char *)cipher++,(char *)&L_save,sizeof(L_save));
+ memcpy((char *)cipher,(char *)&R_save,sizeof(R_save));
}
else
#endif
*/
bzero((char *)seed, sizeof(seed));
if (!krb5_os_localaddr(&addrs) && *addrs) {
- bcopy((char *)addrs[0]->contents, (char *)seed,
+ memcpy((char *)seed, (char *)addrs[0]->contents,
min(sizeof(seed), addrs[0]->length));
/* XXX may not do all of the seed. */
}
mit_des_cblock new_sequence_number;
mit_des_random_key_seed *p_seed;
{
- bcopy((char *)new_sequence_number, (char *)p_seed->sequence_number,
+ memcpy((char *)p_seed->sequence_number, (char *)new_sequence_number,
sizeof(p_seed->sequence_number));
}