[client.keyset] removed 'max' that is now in 'ctx'

This commit is contained in:
xdrm-brackets 2018-04-21 19:46:37 +02:00
parent 69bcb46641
commit 9a787951b1
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ const SecretSize = scha.HSIZE * 4;
type T struct {
ctx *context.T // current context
depth uint16 // cur depth
max uint16 // max depth
sec []byte // secret
consumed bool // if secret is consumed
@ -125,7 +124,7 @@ func (s *T) Decrement() uint16 {
s.consumed = s.depth <= s.ctx.MinDepth()+s.ctx.DepthThreshold()
/* (3) Return remaining attempts */
return s.depth - s.max
return s.depth - s.ctx.MaxDepth()
}