Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dh/sidh/sidh.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ func NewPublicKey(id uint8, v KeyVariant) *PublicKey {

// Import clears content of the public key currently stored in the structure
// and imports key stored in the byte string. Returns error in case byte string
// size is wrong. Doesn't perform any validation.
// size is wrong. Doesn't perform any validation. In particular, sikep434,
// sikep503, and sikep751 all accept non-canonical encoding of field elements.
func (pub *PublicKey) Import(input []byte) error {
if len(input) != pub.Size() {
return errors.New("sidh: input to short")
Expand Down
Loading