Assert that a full sign-then-verify round-trip succeeds for the given algorithm. Generates a fresh key pair, signs the test vector plaintext, and verifies the signature.
Signing algorithm (e.g. "ed25519", "ecdsa-p256").
"ed25519"
"ecdsa-p256"
import { expectSignVerifyRoundTrip } from "@sebastienrousseau/crypto-testing";expectSignVerifyRoundTrip("ed25519");expectSignVerifyRoundTrip("ecdsa-p256"); Copy
import { expectSignVerifyRoundTrip } from "@sebastienrousseau/crypto-testing";expectSignVerifyRoundTrip("ed25519");expectSignVerifyRoundTrip("ecdsa-p256");
If signing or verification fails.
Assert that a full sign-then-verify round-trip succeeds for the given algorithm. Generates a fresh key pair, signs the test vector plaintext, and verifies the signature.