Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Wrong ECC keys length ? 512 to 521 #426

Description

@Guiforge

Description

File: https://github.com/mozilla/tls-observatory/blob/cf43108d68808f5db37116cb54b7b42341db4cab/worker/mozillaGradingWorker/keyexchangeGrading.go

//ECCRSAKeySize is used to translate ECC keys length to their corresponding RSA ones
var ECCRSAKeySize = map[float64]float64{
	160: 1024,
	224: 2048,
	256: 3072,
	384: 7680,
	512: 15360,
}

I'm not sure.
I think that instead of value 512 it is necessary to put the value 521
It seems to me that the possible values are:

//ECCRSAKeySize is used to translate ECC keys length to their corresponding RSA ones
var ECCRSAKeySize = map[float64]float64{
	160: 1024,
	224: 2048,
	256: 3072,
	384: 7680,
	521: 15360,
}

Example:

massmailer.io
image

getBitsForKeyExchange return probably -1

image

Ref:

In the curves file, there is no curve that is equal to 512: (https://github.com/mozilla/tls-observatory/blob/cf43108d68808f5db37116cb54b7b42341db4cab/constants/curves.go)
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions