Source File
elgamal.go
Belonging Package
golang.org/x/crypto/openpgp/elgamal
package elgamal // import "golang.org/x/crypto/openpgp/elgamal"
import (
)
type PrivateKey struct {
PublicKey
X *big.Int
}
var , int
= 1
for := 1; < len(); ++ {
:= subtle.ConstantTimeByteEq([], 0)
= subtle.ConstantTimeSelect(&, , )
= subtle.ConstantTimeSelect(, 0, )
}
if != 1 || != 0 || < 9 {
return nil, errors.New("elgamal: decryption error")
}
return [+1:], nil
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |