Optimierte Hashgenerierungswerte für mehr Sicherheit bei ausgewogener Geschwindigkeit beim Berechnen.
This commit is contained in:
@@ -38,7 +38,7 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 24
|
||||
Argon.Iterations = nIterations * 2
|
||||
Argon.MemorySize = (((nIterations * 4.98 - (nIterations * 1.23) / 4 * 1.5) / 1.05) + 1 * 290)
|
||||
Argon.MemorySize = (((nIterations * 7.98 - (nIterations * 0.23) / 4 * 2) / 4.05) + 1 * 290)
|
||||
|
||||
Return Argon.GetBytes(nHash)
|
||||
Else
|
||||
@@ -46,7 +46,7 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 28
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 5)
|
||||
Argon.MemorySize = (((nIterations * 6.685 - (nIterations * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416)
|
||||
Argon.MemorySize = (((nIterations * 8.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 816)
|
||||
Return Argon.GetBytes(nHash)
|
||||
End If
|
||||
|
||||
@@ -59,7 +59,7 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 24
|
||||
Argon.Iterations = nIterations * 2
|
||||
Argon.MemorySize = (((nIterations * 4.98 - (nIterations * 1.23) / 4 * 1.5) / 1.05) + 1 * 290)
|
||||
Argon.MemorySize = (((nIterations * 7.98 - (nIterations * 0.23) / 4 * 2) / 4.05) + 1 * 290)
|
||||
|
||||
Return Await Argon.GetBytesAsync(nHash)
|
||||
Else
|
||||
@@ -67,7 +67,7 @@ Public Class VERAG_VARIABLES
|
||||
Argon.Salt = salt
|
||||
Argon.DegreeOfParallelism = 28
|
||||
Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 5)
|
||||
Argon.MemorySize = (((nIterations * 6.685 - (nIterations * 0.56) / 1.85 * 2.28) / 8.28) + 1.024 * 416)
|
||||
Argon.MemorySize = (((nIterations * 8.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 816)
|
||||
Return Await Argon.GetBytesAsync(nHash)
|
||||
End If
|
||||
End Function
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user