otrv4 / ed448

A golang implementation of Ed448-Goldilocks. This is a mirror of https://bugs.otr.im/otrv4/ed448
GNU General Public License v3.0
40 stars 7 forks source link

public key size is 56 bytes, but not 57 bytes #8

Open SashaZezulinsky opened 3 years ago

SashaZezulinsky commented 3 years ago

otrv4/ed448 public key size is 56 bytes, private key size is 144 bytes, signature is 112 bytes

According the rfc8032 standard: https://tools.ietf.org/html/rfc8032

  1. EdDSA uses small public keys (32 or 57 bytes) and signatures (64 or 114 bytes) for Ed25519 and Ed448, respectively;

Why are pub/priv/sig sizes for otrv4/ed448 are so different from a rfc8032 standard? What standard does otrv4/ed448 implementation follow?

claucece commented 3 years ago

Hi, @SashaZezulinsky .

The code that implements eddsa as per the RFC is here: https://github.com/otrv4/ed448/blob/master/eddsa.go and it is 57 and 114 bytes.

What are you referring to?