crypto/internal/bigmod.Nat.SetBytes (method)

10 uses

	crypto/internal/bigmod (current package)
		nat.go#L142: func (x *Nat) SetBytes(b []byte, m *Modulus) (*Nat, error) {

	crypto/ecdsa
		ecdsa.go#L231: 		if _, err = k.SetBytes(b, c.N); err == nil && k.IsZero() == 0 {
		ecdsa.go#L326: 	s, err := bigmod.NewNat().SetBytes(priv.D.Bytes(), c.N)
		ecdsa.go#L375: 			_, err := kInv.SetBytes(kBytes, c.N)
		ecdsa.go#L514: 	r, err := bigmod.NewNat().SetBytes(rBytes, c.N)
		ecdsa.go#L518: 	s, err := bigmod.NewNat().SetBytes(sBytes, c.N)

	crypto/rsa
		rsa.go#L488: 	m, err := bigmod.NewNat().SetBytes(plaintext, N)
		rsa.go#L656: 		c, err = bigmod.NewNat().SetBytes(ciphertext, N)
		rsa.go#L664: 		Qinv, err := bigmod.NewNat().SetBytes(priv.Precomputed.Qinv.Bytes(), P)
		rsa.go#L668: 		c, err = bigmod.NewNat().SetBytes(ciphertext, N)