Fix driver token table and IV padding
This commit is contained in:
@@ -28,7 +28,10 @@ class LegacyEncryption
|
||||
}
|
||||
|
||||
$this->key = trim(file_get_contents($keyPath));
|
||||
$this->iv = config('intaleq.legacy_iv', '');
|
||||
$this->iv = config('intaleq.legacy_iv', env('initializationVector', ''));
|
||||
if (strlen($this->iv) !== 16) {
|
||||
$this->iv = str_pad($this->iv, 16, "\0");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user