/testing/guestbin/swan-prep
west #
 echo "initdone"
initdone
west #
 sed -i "s/seedbits=.*$/seedbits=520/" /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 egrep "bits random|bytes from|seeded" /tmp/pluto.log
| need 520 bits random for extra seeding of the NSS PRNG
| read 65 bytes from /dev/random for NSS PRNG
seeded 65 bytes into the NSS PRNG
west #
 sed -i "s/seedbits=.*$/seedbits=1024/" /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 egrep "bits random|bytes from|seeded" /tmp/pluto.log
| need 1024 bits random for extra seeding of the NSS PRNG
| read 128 bytes from /dev/random for NSS PRNG
seeded 128 bytes into the NSS PRNG
west #
 sed -i "s/seedbits=.*$/seedbits=2048/" /etc/ipsec.conf
west #
 ipsec start
Redirecting to: [initsystem]
west #
 /testing/pluto/bin/wait-until-pluto-started
west #
 ipsec stop
Redirecting to: [initsystem]
west #
 egrep "bits random|bytes from|seeded" /tmp/pluto.log
| need 2048 bits random for extra seeding of the NSS PRNG
| read 256 bytes from /dev/random for NSS PRNG
seeded 256 bytes into the NSS PRNG
west #
 
