PHPackages                             trailofbits/wycheproof - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. trailofbits/wycheproof

ActiveLibrary[Testing &amp; Quality](/categories/testing)

trailofbits/wycheproof
======================

Wycheproof test vectors for PHP — easy integration with PHPUnit

v0.1.0(today)00Apache-2.0PHPPHP ^8.1CI passing

Since Mar 24Pushed todayCompare

[ Source](https://github.com/trailofbits/wycheproof-php)[ Packagist](https://packagist.org/packages/trailofbits/wycheproof)[ RSS](/packages/trailofbits-wycheproof/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Wycheproof for PHP
==================

[](#wycheproof-for-php)

[![CI](https://github.com/trailofbits/wycheproof-php/actions/workflows/ci.yml/badge.svg)](https://github.com/trailofbits/wycheproof-php/actions/workflows/ci.yml)

[Wycheproof](https://github.com/C2SP/wycheproof) is an extensive collection of test vectors designed to verify the correctness and test against known attacks for existing cryptographic algorithms. Originally developed by Google, Wycheproof is a community-managed project where contributors can add test vectors for specific cryptographic constructions.

Learn more about Wycheproof from [the Testing Handbook](https://appsec.guide/docs/crypto/wycheproof/).

This library provides PHPUnit data providers and traits for running the Wycheproof tests in PHP software.

Installation
------------

[](#installation)

```
composer require --dev trailofbits/wycheproof
```

Quick Start
-----------

[](#quick-start)

Add a trait to your PHPUnit test class and use the provided data providers:

```
