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)