-
Notifications
You must be signed in to change notification settings - Fork 32
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
base: support/SDK-V3
Are you sure you want to change the base?
Feature/test phpseclib 3 #133
Conversation
$privateKey->setHash('sha256'); | ||
$privateKey->setMGFHash('sha256'); | ||
// $privateKey->setHash('sha256'); | ||
// $privateKey->setMGFHash('sha256'); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
No description provided.