_copy() function
Copy the the buffer 'from' to the buffer 'to'.
Arguments
to
OUT -- destination buffer
to_len
IN -- length of destination buffer
from_len
IN -- length of origin buffer
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: from_len > to_len.
![]()
unsigned int _copy(uint8_t *to, unsigned int to_len,![]()
unsigned int _copy(uint8_t *to, unsigned int to_len,![]()
unsigned int _copy(uint8_t *to, unsigned int to_len,![]()
unsigned int _copy(uint8_t *to, unsigned int to_len,![]()
(void)_copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(state, sizeof(state), in, sizeof(state));![]()
(void)_copy(out, sizeof(state), state, sizeof(state));![]()
(void)_copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(state, sizeof(state), in, sizeof(state));![]()
(void)_copy(out, sizeof(state), state, sizeof(state));![]()
(void) _copy(s, sizeof(t), t, sizeof(t));![]()
(void) _copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(state, sizeof(state), in, sizeof(state));![]()
(void)_copy(out, sizeof(state), state, sizeof(state));![]()
(void) _copy(s, sizeof(t), t, sizeof(t));![]()
(void) _copy(s, sizeof(t), t, sizeof(t));![]()
(void)_copy(state, sizeof(state), in, sizeof(state));![]()
(void)_copy(out, sizeof(state), state, sizeof(state));![]()
(void) _copy(nonce, sizeof(nonce), ctr, sizeof(nonce));![]()
(void) _copy(nonce, sizeof(nonce), ctr, sizeof(nonce));![]()
(void)_copy(nonce, sizeof(nonce), ctr, sizeof(nonce));![]()
(void)_copy(nonce, sizeof(nonce), ctr, sizeof(nonce));![]()
(void)_copy(out, bufferlen, prng->v, bufferlen);![]()
(void)_copy(out, bufferlen, prng->v, bufferlen);
_copy() is called by 16 functions:
![]()
_copy()
_copy():
![]()
_copy()