-
Notifications
You must be signed in to change notification settings - Fork 41
Unused R
in decryption
#29
Comments
It's strange that staticcheck considers it unused, because it is consumed later on in the for loop with Strictly speaking, I suppose it doesn't actually need to be a standalone variable, but I felt that for readability it makes sense to follow the algorithm definition/spec, Step 6.ii - In the code, |
I see, a false positive (a rather odd one too). I'm all in favor of the readability aspect of intermediate variables. Thanks for setting the record straight and for such a detailed response! |
Technically, it isn't. |
Reopening in light of @dominikh point - it appears not to be a false positive after all. |
Yeah indeed, thanks for pointing it out folks. |
Looking here:
fpe/ff1/ff1.go
Line 484 in e6bfa0d
The comment suggests
R
should be used but it is entirely unused. (As reported by staticcheck here). Is this dead/delete-able or does it indicate a decryption error?The text was updated successfully, but these errors were encountered: