-
Notifications
You must be signed in to change notification settings - Fork 34
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.