mirror of
https://github.com/brmlab/timingattack.git
synced 2025-06-08 09:04:00 +02:00
Issues with timing.
This commit is contained in:
parent
de28e95a26
commit
604a8f36d9
2 changed files with 3 additions and 2 deletions
|
@ -12,7 +12,8 @@ fi
|
||||||
|
|
||||||
milis=0
|
milis=0
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
nanos=1000000
|
nanos=0
|
||||||
|
milis=1
|
||||||
elif [ $1 -eq 1 ]; then
|
elif [ $1 -eq 1 ]; then
|
||||||
nanos=10000
|
nanos=10000
|
||||||
elif [ $1 -eq 2 ]; then
|
elif [ $1 -eq 2 ]; then
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class HmacKey extends KeyczarKey {
|
||||||
if ((System.getProperty("milis") != null) && (System.getProperty("nanos") != null)) {
|
if ((System.getProperty("milis") != null) && (System.getProperty("nanos") != null)) {
|
||||||
this.milis = Long.parseLong(System.getProperty("milis"));
|
this.milis = Long.parseLong(System.getProperty("milis"));
|
||||||
this.nanos = Integer.parseInt(System.getProperty("nanos"));
|
this.nanos = Integer.parseInt(System.getProperty("nanos"));
|
||||||
if (milis != 0 && nanos != 0) delay = true;
|
if (milis > 0 || nanos > 0) delay = true;
|
||||||
}
|
}
|
||||||
if (delay) System.out.println("Delay setting: milis="+milis+", nanos="+nanos);
|
if (delay) System.out.println("Delay setting: milis="+milis+", nanos="+nanos);
|
||||||
else System.out.println("Delay setting: none");
|
else System.out.println("Delay setting: none");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue