Score:3

Is there a standard I can test a ECDH against?

wf flag

I have a program in Python to do the ECDH with the NIST P-256 curve. The program is seemingly working, ie I get the same private key pair at the end. But I want to make sure it's not a coincidence in my code, and that my double-and-add algorithm is working correctly.

TLDR: Is there a strong curve that gives all the details like the NIST P-256 curve and also a tested 2 integers that give a specific private key pair?

Score:2
ru flag

In RFC 5114 appendix A.6 there are test data for NIST P-256. Other appendices give other examples for other NIST curves.

If you want a different family RFC 7027 appendix 1 has test data for the brainpoolP256r1 curve and the other appendices give other examples.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.