Home | History | Annotate | Download | only in UsbSerialNumberLib

Lines Matching defs:RandomSN

62   OUT RANDOM_SERIAL_NUMBER   *RandomSN
68 if (RandomSN == NULL) {
71 ZeroMem (RandomSN, sizeof (RANDOM_SERIAL_NUMBER));
76 RandomSN->Data = (Tmp << 32) | Seed;
77 UnicodeSPrint (RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN->Data);
78 RandomSN->Magic = RANDOM_MAGIC;
90 RANDOM_SERIAL_NUMBER RandomSN;
95 ZeroMem (&RandomSN, sizeof (RANDOM_SERIAL_NUMBER));
101 RandomSN.Data = (Tmp << 32) | Seed;
102 UnicodeSPrint (RandomSN.UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN.Data);
103 StrCpyS (UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), RandomSN.UnicodeSN);
119 RANDOM_SERIAL_NUMBER *RandomSN;
157 RandomSN = (RANDOM_SERIAL_NUMBER *)DataPtr;
158 if (RandomSN->Magic == RANDOM_MAGIC) {
162 UnicodeSPrint (UnicodeStr, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN->Data);
163 if (StrLen (RandomSN->UnicodeSN) != StrLen (UnicodeStr)) {
166 if (StrnCmp (RandomSN->UnicodeSN, UnicodeStr, StrLen (UnicodeStr)) != 0) {
171 Status = GenerateUsbSNBySeed (Seed, RandomSN);
189 CopyMem (UnicodeSN, RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16));
206 RANDOM_SERIAL_NUMBER *RandomSN;
230 RandomSN = (RANDOM_SERIAL_NUMBER *)DataPtr;
231 RandomSN->Magic = RANDOM_MAGIC;
232 StrnCpyS (RandomSN->UnicodeSN, SERIAL_NUMBER_SIZE * sizeof (CHAR16), UnicodeSN, StrSize (UnicodeSN));
233 RandomSN->Data = StrHexToUint64 (RandomSN->UnicodeSN);
237 UnicodeSPrint (UnicodeStr, SERIAL_NUMBER_SIZE * sizeof (CHAR16), L"%lx", RandomSN->Data);
238 if (StrLen (RandomSN->UnicodeSN) != StrLen (UnicodeStr)) {
242 if (StrnCmp (RandomSN->UnicodeSN, UnicodeStr, StrLen (UnicodeStr)) != 0) {