Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test phpseclib 3 #133

Open
wants to merge 4 commits into
base: support/SDK-V3
Choose a base branch
from

Conversation

fernandocoronatomf
Copy link

No description provided.

$privateKey->setHash('sha256');
$privateKey->setMGFHash('sha256');
// $privateKey->setHash('sha256');
// $privateKey->setMGFHash('sha256');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

phpseclib v3 $privateKey is now a PrivateKey object and not RSA object, it changed completely so i am not sure if i should remove this or not.

$publicKey->setHash('sha256');
$publicKey->setMGFHash('sha256');
// $publicKey->setHash('sha256');
// $publicKey->setMGFHash('sha256');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

case 'A128CBC-HS256':
case 'A256CBC-HS512':
$cipher = new AES(AES::MODE_CBC);
$cipher = new AES('cbc');
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing an integer now doesn't work as well

@@ -94,10 +106,10 @@ private function cipher() {
break;
case 'A256GCM':
case 'A256CBC-HS512':
$cipher->setBlockLength(256);
// $cipher->setBlockLength(256);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AES class now throws an error when setting block length

@coveralls
Copy link

Coverage Status

coverage: 89.764% (-8.1%) from 97.851%
when pulling acf57c6 on CoverGenius:feature/test-phpseclib-3
into 90ebb02 on hyperwallet:support/SDK-V3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants