4 ms·
Short answer is, you don't. That's why people say to not implement your own, but use a widely vetted library. For some trivial tests against a library or appli
by marcosdumay 10y ago
Short answer is, you don't. That's why people say to not implement your own, but use a widely vetted library.
For some trivial tests against a library or application, you use test vectors calculated by hand. Every crypto algorithm has some published vectors out there. That would discover this flaw, but is not enough by a huge margin. In practice, you don't test crypto software beyond the trivial, you review it and proof correctness against the attacks you know.