Searched refs:rand_data (Results 1 – 2 of 2) sorted by relevance
128 void get_random(int num_rand_bytes, uint8_t *rand_data);132 static inline void get_random_NZ(int num_rand_bytes, uint8_t *rand_data) { in get_random_NZ() argument133 memset ( rand_data, 0x01, num_rand_bytes ); in get_random_NZ()
1606 unsigned char *rand_data = (unsigned char *)malloc(rand_length); in ptp_mtpz_validatehandshakeresponse() local1607 memcpy(rand_data, act_reader, rand_length); in ptp_mtpz_validatehandshakeresponse()1608 if (memcmp(rand_data, random, 16) != 0) in ptp_mtpz_validatehandshakeresponse()1610 free(rand_data); in ptp_mtpz_validatehandshakeresponse()1613 free(rand_data); in ptp_mtpz_validatehandshakeresponse()