We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 306f18b commit 18bf661Copy full SHA for 18bf661
obfuscation.go
@@ -182,7 +182,7 @@ func (o *OnionErrorDecrypter) DecryptError(encryptedData []byte) (*btcec.PublicK
182
// secret to continue decryption attempts to fill out the rest
183
// of the loop. Otherwise, we'll use the next shared secret in
184
// line.
185
- if sender != nil {
+ if sender != nil || i > len(sharedSecrets)-1 {
186
sharedSecret = dummySecret
187
} else {
188
sharedSecret = sharedSecrets[i]
0 commit comments