companyzero / sntrup4591761

Streamlined NTRU Prime 4591^761 in Go
ISC License
36 stars 8 forks source link

add exported function to derive public key from private key #7

Open david415 opened 1 year ago

david415 commented 1 year ago
func (sk *PrivateKey) Public() *PublicKey {
    pk := new(PublicKey)
    copy(pk[:], sk[382:])
    return pk
}