@@ -508,11 +508,17 @@ |
||
508 | 508 | return $content_encryption_algorithm; |
509 | 509 | } |
510 | 510 | |
511 | + /** |
|
512 | + * @param integer $size |
|
513 | + */ |
|
511 | 514 | private function createCEK($size) |
512 | 515 | { |
513 | 516 | return $this->generateRandomString($size / 8); |
514 | 517 | } |
515 | 518 | |
519 | + /** |
|
520 | + * @param integer $size |
|
521 | + */ |
|
516 | 522 | private function createIV($size) |
517 | 523 | { |
518 | 524 | return $this->generateRandomString($size / 8); |
@@ -124,7 +124,7 @@ |
||
124 | 124 | * @param string $cek |
125 | 125 | * @param \Jose\Algorithm\ContentEncryption\ContentEncryptionInterface $content_encryption_algorithm |
126 | 126 | * |
127 | - * @return \Jose\Object\JWEInterface |
|
127 | + * @return boolean |
|
128 | 128 | */ |
129 | 129 | private function decryptPayload(JWEInterface &$jwe, $cek, $content_encryption_algorithm) |
130 | 130 | { |