private static function LockrAesCbcKeyWrapper::decode in Lockr 7.3
Same name and namespace in other branches
- 7.2 vendor/lockr/lockr-client/src/KeyWrapper/LockrAesCbcKeyWrapper.php \Lockr\KeyWrapper\LockrAesCbcKeyWrapper::decode()
2 calls to LockrAesCbcKeyWrapper::decode()
- LockrAesCbcKeyWrapper::decrypt in vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAesCbcKeyWrapper.php - Decrypt the given ciphertext.
- LockrAesCbcKeyWrapper::reencrypt in vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAesCbcKeyWrapper.php - Encrypt the given plaintext reusing state.
File
- vendor/
lockr/ lockr/ src/ KeyWrapper/ LockrAesCbcKeyWrapper.php, line 80
Class
Namespace
Lockr\KeyWrapperCode
private static function decode($wrapping_key) {
$parts = explode('$', $wrapping_key, 4);
if (!$parts || count($parts) != 4) {
return false;
}
list($cipher, $mode, $iv, $key) = $parts;
$iv = base64_decode($iv);
$key = base64_decode($key);
return [
$cipher,
$mode,
$iv,
$key,
];
}