@@ 319-323 (lines=5) @@ | ||
316 | * sequence representing the compressed plaintext; otherwise, let M |
|
317 | * be the octet sequence representing the plaintext. |
|
318 | */ |
|
319 | if(!is_null($zip)) |
|
320 | { |
|
321 | $compression__algorithm = CompressionAlgorithms_Registry::getInstance()->get($zip->getValue()); |
|
322 | $payload = $compression__algorithm->compress($payload); |
|
323 | } |
|
324 | ||
325 | /** |
|
326 | * Encrypt M using the CEK, the JWE Initialization Vector, and the |
|
@@ 489-493 (lines=5) @@ | ||
486 | * If a "zip" parameter was included, uncompress the decrypted |
|
487 | * plaintext using the specified compression algorithm. |
|
488 | */ |
|
489 | if(!is_null($zip)) |
|
490 | { |
|
491 | $compression__algorithm = CompressionAlgorithms_Registry::getInstance()->get($zip->getValue()); |
|
492 | $plain_text = $compression__algorithm->uncompress($plain_text); |
|
493 | } |
|
494 | ||
495 | $this->setPayload(JWSPayloadFactory::build($plain_text)); |
|
496 | $this->should_decrypt = false; |