/device/linaro/bootloader/OpenPlatformPkg/Library/UsbSerialNumberLib/ |
D | UsbSerialNumberLib.c | 40 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/ |
D | RdRand.c | 142 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/ |
D | CryptRand.c | 43 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed() 63 if (Seed != NULL) { in RandomSeed() 64 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
|
D | CryptRandTsc.c | 39 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed() 61 if (Seed != NULL) { in RandomSeed() 62 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
|
D | CryptRandItc.c | 39 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed() 61 if (Seed != NULL) { in RandomSeed() 62 RAND_seed (Seed, (UINT32) SeedSize); in RandomSeed()
|
D | CryptRandNull.c | 35 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
|
/device/google/bonito/json-c/ |
D | configure.ac | 12 [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])
|
D | config.h.in | 3 /* Enable RDRANR Hardware RNG Hash Seed */
|
/device/google/crosshatch/json-c/ |
D | configure.ac | 12 [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])
|
D | config.h.in | 3 /* Enable RDRANR Hardware RNG Hash Seed */
|
/device/linaro/bootloader/edk2/NetworkPkg/DnsDxe/ |
D | DnsDhcp.c | 28 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/ |
D | CryptRandNull.c | 35 IN CONST UINT8 *Seed OPTIONAL, in RandomSeed()
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Tcp4Dxe/ |
D | Tcp4Driver.c | 196 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/ |
D | UsbSerialNumberLib.h | 30 IN UINT32 Seed,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Dhcp4Dxe/ |
D | Dhcp4Io.h | 108 IN EFI_DHCP4_PACKET *Seed,
|
D | Dhcp4Io.c | 1161 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/ |
D | Dhcp6Utility.c | 335 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/ |
D | FatLiteLib.c | 149 STATIC UINT8 Seed; in FatGetCacheBlock() local 180 Index = (Seed++) % PEI_FAT_CACHE_SIZE; in FatGetCacheBlock()
|
/device/linaro/bootloader/edk2/NetworkPkg/TcpDxe/ |
D | TcpDriver.c | 176 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/ |
D | PxeBcDhcp4.c | 395 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()
|
D | PxeBcDhcp4.h | 291 OUT EFI_DHCP4_PACKET *Seed,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/UefiPxeBcDxe/ |
D | PxeBcDhcp.c | 44 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()
|
D | PxeBcDhcp.h | 268 IN EFI_DHCP4_PACKET *Seed,
|
/device/linaro/bootloader/edk2/MdeModulePkg/Library/DxeNetLib/ |
D | DxeNetLib.c | 871 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/ |
D | NetLib.h | 534 #define NET_RANDOM(Seed) ((UINT32) ((UINT32) (Seed) * 1103515245UL + 12345) % 4294967295UL) argument
|