Skip to content

Commit

Permalink
adopt php 8.2 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
deemru committed Apr 10, 2023
1 parent 82c9be5 commit c441754
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php-versions: ['5.6', '7.4', '8.0']
php-versions: ['5.6', '7.4', '8.1', '8.2']

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Curve25519

[![packagist](https://img.shields.io/packagist/v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519) [![php-v](https://img.shields.io/packagist/php-v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519) [![travis](https://img.shields.io/travis/deemru/Curve25519.svg?label=travis)](https://travis-ci.org/deemru/Curve25519) [![codacy](https://img.shields.io/codacy/grade/49e6e148e477494da94320825c715dfd.svg?label=codacy)](https://app.codacy.com/gh/deemru/Curve25519/files) [![license](https://img.shields.io/packagist/l/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519)
[![packagist](https://img.shields.io/packagist/v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519) [![php-v](https://img.shields.io/packagist/php-v/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519) [![GitHub](https://img.shields.io/github/actions/workflow/status/deemru/Curve25519/php.yml?label=github%20actions)](https://github.com/deemru/Curve25519/actions/workflows/php.yml) [![codacy](https://img.shields.io/codacy/grade/49e6e148e477494da94320825c715dfd.svg?label=codacy)](https://app.codacy.com/gh/deemru/Curve25519/files) [![license](https://img.shields.io/packagist/l/deemru/curve25519.svg)](https://packagist.org/packages/deemru/curve25519)

[Curve25519](https://github.com/deemru/Curve25519) implements the missing functionality of sign/verify on [elliptic curve 25519](https://en.wikipedia.org/wiki/Curve25519).

Expand Down
12 changes: 12 additions & 0 deletions src/Curve25519.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ function sodium_crypto_sign_verify_detached( $sig, $msg, $key )

class Curve25519
{
private $caching;
private $sodium_crypto_sign_detached;
private $CURVE25519_SODIUM_SUPPORT;
private $cukey;
private $cukey_val;
private $skey;
private $skey_val;
private $sokey;
private $sokey_val;
private $pkey;
private $pkey_val;

/**
* Creates Curve25519 instance
*
Expand Down
1 change: 1 addition & 0 deletions test/selftest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class tester
private $depth = 0;
private $info = [];
private $start = [];
private $init;

public function pretest( $info )
{
Expand Down

0 comments on commit c441754

Please sign in to comment.