Skip to content

Test suite #44

Open
Open

Description

@jedisct1

We need a test suite.

The Rust and AssemblyScript host and guest implementations have a couple tests, but this is neither extensive, nor useful to ensure interoperability between implementations.

The language doesn't matter; all we need is a .wasm file that should produce the same output across runtimes.

@sonder-joker is it something you'd like to collaborate on?

Activity

  1. sonder-joker commented on Jan 25, 2022

    @sonder-joker
    Collaborator

    Ok. In fact, I have already create some simple tests refer to rfc. I will work on it.

  2. stevedoyle commented on Mar 24, 2023

    @stevedoyle
    Contributor

    @jedisct1 I've submitted a PR#87 to get feedback on an approach for a test suite.

    It is based on using the wycheproof test vecors to test wasi-crypto implementations for the algorithm set that is covered by the wycheproof test vectors. To get some initial feedback, I created some Rust "integration tests" using these vectors to test some of the symmetric crypto algorithms (AES-128-GCM, AES-256, CHACHA20-POLY1305, HMAC/SHA-256, HMAC/SHA-512 and HKDF with SHA-256 and SHA-2512).

    Please take a look and let me know if this is the right direction to take or if there are issues with it. If the direction is OK, I'll expand the PR to inlcude tests for more algorithms.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions