You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
205 B

  1. package crypto
  2. import "fmt"
  3. const KeyLength = 32
  4. // Key can be a Scalar or a Point
  5. type Key [KeyLength]byte
  6. func (k Key) MarshalText() ([]byte, error) {
  7. return []byte(fmt.Sprintf("%x", k[:])), nil
  8. }