Fix driver token table and IV padding

This commit is contained in:
Hamza-Ayed
2026-04-25 11:48:52 +03:00
parent fe5fa1feff
commit d78da5de88
3 changed files with 10 additions and 4 deletions

View File

@@ -20,6 +20,9 @@ class LegacyEncryption
}
$this->iv = config('intaleq.legacy_iv', env('initializationVector', ''));
if (strlen($this->iv) !== 16) {
$this->iv = str_pad($this->iv, 16, "\0");
}
if (strlen($this->key) !== 32) {
// Log warning or throw error in production