scapy icon indicating copy to clipboard operation
scapy copied to clipboard

`0x0807: "ed25519"` and `0x0808: "ed448" not supported?

Open SurienDG opened this issue 5 years ago • 2 comments

Brief description

Are 0x0807: "ed25519" and 0x0808: "ed448" not supported?

image

Since, if verify is called on them the split method will fail as there is no plus in the names?

From keyexchange.py: image

Environment

  • Scapy version: 2.4.3
  • Python version: 3.7

SurienDG avatar Jul 02 '20 06:07 SurienDG

Yeah i don't think this works. Looks like this was copy pasted from the rfc https://tools.ietf.org/html/rfc8446

enum {
          /* RSASSA-PKCS1-v1_5 algorithms */
          rsa_pkcs1_sha256(0x0401),
          rsa_pkcs1_sha384(0x0501),
          rsa_pkcs1_sha512(0x0601),

          /* ECDSA algorithms */
          ecdsa_secp256r1_sha256(0x0403),
          ecdsa_secp384r1_sha384(0x0503),
          ecdsa_secp521r1_sha512(0x0603),

          /* RSASSA-PSS algorithms with public key OID rsaEncryption */
          rsa_pss_rsae_sha256(0x0804),
          rsa_pss_rsae_sha384(0x0805),
          rsa_pss_rsae_sha512(0x0806),

          /* EdDSA algorithms */
          ed25519(0x0807),
          ed448(0x0808),

          /* RSASSA-PSS algorithms with public key OID RSASSA-PSS */
          rsa_pss_pss_sha256(0x0809),
          rsa_pss_pss_sha384(0x080a),
          rsa_pss_pss_sha512(0x080b),

          /* Legacy algorithms */
          rsa_pkcs1_sha1(0x0201),
          ecdsa_sha1(0x0203),

          /* Reserved Code Points */
          private_use(0xFE00..0xFFFF),
          (0xFFFF)
      } SignatureScheme;

However there's probably very little work to do to fix this.

gpotter2 avatar Jul 02 '20 18:07 gpotter2