Skip to content

Commit

Permalink
Fix AESGCM algorithm selection
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinmo committed Aug 26, 2023
1 parent 1c87c31 commit dab5a5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SimpleJWT/Crypt/KeyManagement/AESGCMKeyWrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AESGCMKeyWrap extends BaseAlgorithm implements KeyEncryptionAlgorithm {
private $aesgcm;

public function __construct($alg) {
$this->aesgcm = new AESGCM($alg);
$this->aesgcm = new AESGCM(substr($alg, 0, -2));
parent::__construct($alg);
}

Expand Down

0 comments on commit dab5a5c

Please sign in to comment.