crypto/internal/bigmod.Nat.SetBytes (method)
10 uses
crypto/internal/bigmod (current package)
nat.go#L154: func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) {
crypto/ecdsa
ecdsa.go#L227: if _, err = k.SetBytes(b, c.N); err == nil && k.IsZero() == 0 {
ecdsa.go#L322: s, err := bigmod.NewNat().SetBytes(priv.D.Bytes(), c.N)
ecdsa.go#L371: _, err := kInv.SetBytes(kBytes, c.N)
ecdsa.go#L509: r, err := bigmod.NewNat().SetBytes(rBytes, c.N)
ecdsa.go#L513: s, err := bigmod.NewNat().SetBytes(sBytes, c.N)
crypto/rsa
rsa.go#L489: m, err := bigmod.NewNat().SetBytes(plaintext, N)
rsa.go#L657: c, err = bigmod.NewNat().SetBytes(ciphertext, N)
rsa.go#L665: Qinv, err := bigmod.NewNat().SetBytes(priv.Precomputed.Qinv.Bytes(), P)
rsa.go#L669: c, err = bigmod.NewNat().SetBytes(ciphertext, N)
|
The pages are generated with Golds v0.6.7. (GOOS=linux 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. |