Searched refs:Seed (Results 1 - 15 of 15) sorted by relevance

/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Library/BaseCryptLib/Rand/
H A DCryptRand.c27 If Seed is not NULL, then the seed passed in is used.
28 If Seed is NULL, then default seed is used.
30 @param[in] Seed Pointer to seed value.
33 If Seed is NULL, this parameter is ignored.
42 IN CONST UINT8 *Seed OPTIONAL,
47 // Seed the pseudorandom number generator with user-supplied value.
50 if (Seed != NULL) {
51 RAND_seed (Seed, (UINT32) SeedSize);
H A DCryptRandItc.c23 If Seed is not NULL, then the seed passed in is used.
24 If Seed is NULL, then default seed is used.
26 @param[in] Seed Pointer to seed value.
29 If Seed is NULL, this parameter is ignored.
38 IN CONST UINT8 *Seed OPTIONAL,
45 // Seed the pseudorandom number generator with user-supplied value.
48 if (Seed != NULL) {
49 RAND_seed (Seed, (UINT32) SeedSize);
H A DCryptRandTsc.c23 If Seed is not NULL, then the seed passed in is used.
24 If Seed is NULL, then default seed is used.
26 @param[in] Seed Pointer to seed value.
29 If Seed is NULL, this parameter is ignored.
38 IN CONST UINT8 *Seed OPTIONAL,
45 // Seed the pseudorandom number generator with user-supplied value.
48 if (Seed != NULL) {
49 RAND_seed (Seed, (UINT32) SeedSize);
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/Dhcp4Dxe/
H A DDhcp4Io.h93 @param[in] Seed The seed packet which the new packet is based on
94 @param[in] Para The DHCP parameter of the Seed packet
108 IN EFI_DHCP4_PACKET *Seed,
H A DDhcp4Io.c1149 @param[in] Seed The seed packet which the new packet is based on
1150 @param[in] Para The DHCP parameter of the Seed packet
1164 IN EFI_DHCP4_PACKET *Seed,
1210 if (Seed != NULL) {
1211 SeedHead = &Seed->Dhcp4.Header;
1162 DhcpSendMessage( IN DHCP_SERVICE *DhcpSb, IN EFI_DHCP4_PACKET *Seed, IN DHCP_PARAMETER *Para, IN UINT8 Type, IN UINT8 *Msg ) argument
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/Tcp4Dxe/
H A DTcp4Driver.c157 UINT32 Seed; local
174 Seed = NetRandomInitSeed ();
175 mTcpGlobalIss = NET_RANDOM (Seed) % mTcpGlobalIss;
177 (UINT16) (NET_RANDOM(Seed) % TCP4_PORT_KNOWN));
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/Dhcp6Dxe/
H A DDhcp6Utility.c331 UINT32 Seed; local
339 Seed = ((Time.Nanosecond >> 10) & DHCP6_10_BIT_MASK);
350 // The (Seed / 0x3ff / 10) is used to a random range (0, 0.1).
354 Expire = Base - (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10);
358 Expire = Base + (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10);
362 Expire = 2 * Base - (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10);
366 Expire = 2 * Base + (UINT32) (Base * Seed / DHCP6_10_BIT_MASK / 10);
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/TcpDxe/
H A DTcpDriver.c167 UINT32 Seed; local
187 Seed = NetRandomInitSeed ();
188 mTcpGlobalIss = NET_RANDOM (Seed) % mTcpGlobalIss;
189 mTcp4RandomPort = (UINT16) (TCP_PORT_KNOWN + (NET_RANDOM (Seed) % TCP_PORT_KNOWN));
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Universal/Network/UefiPxeBcDxe/
H A DPxeBcDhcp.c37 @param Seed Pointer to the message instance of the DHCP4 packet.
43 IN EFI_DHCP4_PACKET *Seed,
52 Seed->Size = sizeof (EFI_DHCP4_PACKET);
53 Seed->Length = sizeof (Seed->Dhcp4);
55 Header = &Seed->Dhcp4.Header;
63 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC;
64 Seed->Dhcp4.Option[0] = PXEBC_DHCP4_TAG_EOP;
42 PxeBcInitSeedPacket( IN EFI_DHCP4_PACKET *Seed, IN EFI_UDP4_PROTOCOL *Udp4 ) argument
H A DPxeBcDhcp.h300 @param Seed Pointer to the message instance of the DHCP4 packet.
306 IN EFI_DHCP4_PACKET *Seed,
/vbox/src/VBox/Devices/EFI/Firmware/NetworkPkg/UefiPxeBcDxe/
H A DPxeBcDhcp4.c389 @param[out] Seed Pointer to the seed packet.
395 OUT EFI_DHCP4_PACKET *Seed,
407 Seed->Size = sizeof (EFI_DHCP4_PACKET);
408 Seed->Length = sizeof (Seed->Dhcp4);
409 Header = &Seed->Dhcp4.Header;
416 Seed->Dhcp4.Magik = PXEBC_DHCP4_MAGIC;
417 Seed->Dhcp4.Option[0] = PXEBC_DHCP4_TAG_EOP;
394 PxeBcSeedDhcp4Packet( OUT EFI_DHCP4_PACKET *Seed, IN EFI_UDP4_PROTOCOL *Udp4 ) argument
H A DPxeBcDhcp4.h317 @param[out] Seed Pointer to the seed packet.
323 OUT EFI_DHCP4_PACKET *Seed,
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Library/DxeNetLib/
H A DDxeNetLib.c874 UINT32 Seed; local
877 Seed = (~Time.Hour << 24 | Time.Day << 16 | Time.Minute << 8 | Time.Second);
878 Seed ^= Time.Nanosecond;
879 Seed ^= Time.Year << 7;
881 return Seed;
/vbox/src/VBox/Devices/EFI/Firmware/MdeModulePkg/Include/Library/
H A DNetLib.h496 #define NET_RANDOM(Seed) ((UINT32) ((UINT32) (Seed) * 1103515245UL + 12345) % 4294967295UL)
/vbox/src/VBox/Devices/EFI/Firmware/CryptoPkg/Include/Library/
H A DBaseCryptLib.h1885 If Seed is not NULL, then the seed passed in is used.
1886 If Seed is NULL, then default seed is used.
1888 @param[in] Seed Pointer to seed value.
1891 If Seed is NULL, this parameter is ignored.
1900 IN CONST UINT8 *Seed OPTIONAL,

Completed in 114 milliseconds