Return to cipher.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.4, 1999/09/28 04:45:36 | version 1.5, 1999/09/30 05:19:57 | ||
---|---|---|---|
|
|
||
void | void | ||
swap_bytes(const unsigned char *src, unsigned char *dst_, int n) | swap_bytes(const unsigned char *src, unsigned char *dst_, int n) | ||
{ | { | ||
uint32 *dst = (uint32 *)dst_; /* dst must be properly aligned. */ | u_int32_t *dst = (u_int32_t *)dst_; /* dst must be properly aligned. */ | ||
union { | union { | ||
uint32 i; | u_int32_t i; | ||
char c[4]; | char c[4]; | ||
} t; | } t; | ||