Home
last modified time | relevance | path

Searched refs:Seed (Results 1 – 25 of 26) sorted by relevance

12

/device/linaro/bootloader/OpenPlatformPkg/Library/UsbSerialNumberLib/
DUsbSerialNumberLib.c40 IN UINT32 Seed, in GenerateRandomData() argument
49 Quotient = (INT64) Seed / 127773; in GenerateRandomData()
50 Remainder = (INT64) Seed % 127773; in GenerateRandomData()
62 IN UINT32 Seed, in GenerateUsbSNBySeed() argument
73 Status = GenerateRandomData (Seed, &Tmp); in GenerateUsbSNBySeed()
77 RandomSN->Data = (Tmp << 32) | Seed; in GenerateUsbSNBySeed()
90 UINT32 Seed; in GenerateUsbSN() local
97 Seed = ArmGenericTimerGetSystemCount (); in GenerateUsbSN()
98 Status = GenerateRandomData (Seed, &Tmp); in GenerateUsbSN()
102 RandomSN.Data = (Tmp << 32) | Seed; in GenerateUsbSN()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/RandomNumberGenerator/RngDxe/
DRdRand.c142 UINT8 Seed[16]; in RdRandGenerateEntropy() local
153 Status = RdRandGetSeed128 (Seed); in RdRandGenerateEntropy()
157 CopyMem (Ptr, Seed, 16); in RdRandGenerateEntropy()
166 Status = RdRandGetSeed128 (Seed); in RdRandGenerateEntropy()
170 CopyMem (Ptr, Seed, (Length % 16)); in RdRandGenerateEntropy()
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Rand/
DCryptRand.c43 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
63 if (Seed != NULL) { in RandomSeed()
64 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
DCryptRandTsc.c39 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
61 if (Seed != NULL) { in RandomSeed()
62 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
DCryptRandItc.c39 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
61 if (Seed != NULL) { in RandomSeed()
62 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
DCryptRandNull.c35 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
/device/google/bonito/json-c/
Dconfigure.ac12 [Enable RDRAND Hardware RNG Hash Seed generation on supported x86/x64 platforms.]),
15 AC_DEFINE(ENABLE_RDRAND, 1, [Enable RDRANR Hardware RNG Hash Seed])
19 AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms])
21 AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable])
Dconfig.h.in3 /* Enable RDRANR Hardware RNG Hash Seed */
/device/google/crosshatch/json-c/
Dconfigure.ac12 [Enable RDRAND Hardware RNG Hash Seed generation on supported x86/x64 platforms.]),
15 AC_DEFINE(ENABLE_RDRAND, 1, [Enable RDRANR Hardware RNG Hash Seed])
19 AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed enabled on supported x86/x64 platforms])
21 AC_MSG_RESULT([RDRAND Hardware RNG Hash Seed disabled. Use --enable-rdrand to enable])
Dconfig.h.in3 /* Enable RDRANR Hardware RNG Hash Seed */
/device/linaro/bootloader/edk2/NetworkPkg/DnsDxe/
DDnsDhcp.c28 OUT EFI_DHCP4_PACKET *Seed, in DnsInitSeedPacket() argument
37 Seed->Size = sizeof (EFI_DHCP4_PACKET); in DnsInitSeedPacket()
38 Seed->Length = sizeof (Seed->Dhcp4); in DnsInitSeedPacket()
39 Header = &Seed->Dhcp4.Header; in DnsInitSeedPacket()
46 Seed->Dhcp4.Magik = DHCP4_MAGIC; in DnsInitSeedPacket()
47 Seed->Dhcp4.Option[0] = DHCP4_TAG_EOP; in DnsInitSeedPacket()
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Rand/
DCryptRandNull.c35 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/
DTcp4Driver.c196 UINT32 Seed; in Tcp4DriverEntryPoint() local
213 Seed = NetRandomInitSeed (); in Tcp4DriverEntryPoint()
214 mTcpGlobalIss = NET_RANDOM (Seed) % mTcpGlobalIss; in Tcp4DriverEntryPoint()
216 (UINT16) (NET_RANDOM(Seed) % TCP4_PORT_KNOWN)); in Tcp4DriverEntryPoint()
/device/linaro/bootloader/OpenPlatformPkg/Include/Library/
DUsbSerialNumberLib.h30 IN UINT32 Seed,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/
DDhcp4Io.h108 IN EFI_DHCP4_PACKET *Seed,
DDhcp4Io.c1161 IN EFI_DHCP4_PACKET *Seed, in DhcpSendMessage() argument
1207 if (Seed != NULL) { in DhcpSendMessage()
1208 SeedHead = &Seed->Dhcp4.Header; in DhcpSendMessage()
/device/linaro/bootloader/edk2/NetworkPkg/Dhcp6Dxe/
DDhcp6Utility.c335 UINT32 Seed; in Dhcp6CalculateExpireTime() local
343 Seed = ((Time.Nanosecond >> 10) & DHCP6_10_BIT_MASK); in Dhcp6CalculateExpireTime()
358 Expire = Base - (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10); in Dhcp6CalculateExpireTime()
362 Expire = Base + (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10); in Dhcp6CalculateExpireTime()
366 Expire = 2 * Base - (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10); in Dhcp6CalculateExpireTime()
370 Expire = 2 * Base + (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10); in Dhcp6CalculateExpireTime()
/device/linaro/bootloader/edk2/FatPkg/FatPei/
DFatLiteLib.c149 STATIC UINT8 Seed; in FatGetCacheBlock() local
180 Index = (Seed++) % PEI_FAT_CACHE_SIZE; in FatGetCacheBlock()
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/
DTcpDriver.c176 UINT32 Seed; in TcpDriverEntryPoint() local
221 Seed = NetRandomInitSeed (); in TcpDriverEntryPoint()
222 mTcpGlobalIss = NET_RANDOM (Seed) % mTcpGlobalIss; in TcpDriverEntryPoint()
223 mTcp4RandomPort = (UINT16) (TCP_PORT_KNOWN + (NET_RANDOM (Seed) % TCP_PORT_KNOWN)); in TcpDriverEntryPoint()
/device/linaro/bootloader/edk2/NetworkPkg/UefiPxeBcDxe/
DPxeBcDhcp4.c395 OUT EFI_DHCP4_PACKET *Seed, in PxeBcSeedDhcp4Packet() argument
407 Seed->Size = sizeof (EFI_DHCP4_PACKET); in PxeBcSeedDhcp4Packet()
408 Seed->Length = sizeof (Seed->Dhcp4); in PxeBcSeedDhcp4Packet()
409 Header = &Seed->Dhcp4.Header; in PxeBcSeedDhcp4Packet()
416 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC; in PxeBcSeedDhcp4Packet()
417 Seed->Dhcp4.Option[0] = DHCP4_TAG_EOP; in PxeBcSeedDhcp4Packet()
DPxeBcDhcp4.h291 OUT EFI_DHCP4_PACKET *Seed,
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
DPxeBcDhcp.c44 IN EFI_DHCP4_PACKET *Seed, in PxeBcInitSeedPacket() argument
53 Seed->Size = sizeof (EFI_DHCP4_PACKET); in PxeBcInitSeedPacket()
54 Seed->Length = sizeof (Seed->Dhcp4); in PxeBcInitSeedPacket()
56 Header = &Seed->Dhcp4.Header; in PxeBcInitSeedPacket()
64 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC; in PxeBcInitSeedPacket()
65 Seed->Dhcp4.Option[0] = DHCP4_TAG_EOP; in PxeBcInitSeedPacket()
DPxeBcDhcp.h268 IN EFI_DHCP4_PACKET *Seed,
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/
DDxeNetLib.c871 UINT32 Seed; in NetRandomInitSeed() local
875 Seed = (~Time.Hour << 24 | Time.Day << 16 | Time.Minute << 8 | Time.Second); in NetRandomInitSeed()
876 Seed ^= Time.Nanosecond; in NetRandomInitSeed()
877 Seed ^= Time.Year << 7; in NetRandomInitSeed()
880 Seed += (UINT32) MonotonicCount; in NetRandomInitSeed()
882 return Seed; in NetRandomInitSeed()
/device/linaro/bootloader/edk2/MdeModulePkg/Include/Library/
DNetLib.h534 #define NET_RANDOM(Seed) ((UINT32) ((UINT32) (Seed) * 1103515245UL + 12345) % 4294967295UL) argument

12