@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @param Key $management_key |
| 35 | - * @param $key_management_mode |
|
| 35 | + * @param string $key_management_mode |
|
| 36 | 36 | * @param ContentEncryptionAlgorithm $enc |
| 37 | 37 | * @return Key |
| 38 | 38 | * @throws \Exception |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | final class IVFactory { |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | - * @param $size |
|
| 26 | + * @param integer $size |
|
| 27 | 27 | * @return string |
| 28 | 28 | */ |
| 29 | 29 | static public function build($size){ |
@@ -95,8 +95,8 @@ |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | /** |
| 98 | - * @return int |
|
| 99 | - */ |
|
| 98 | + * @return int |
|
| 99 | + */ |
|
| 100 | 100 | public function getVisibility() |
| 101 | 101 | { |
| 102 | 102 | return $this->visibility; |
@@ -305,11 +305,11 @@ |
||
| 305 | 305 | } |
| 306 | 306 | |
| 307 | 307 | /** |
| 308 | - * @param IJOSEHeader $header |
|
| 309 | - * @param IJWSPayloadSpec $payload |
|
| 310 | - * @param string $signature |
|
| 311 | - * @return IJWS |
|
| 312 | - */ |
|
| 308 | + * @param IJOSEHeader $header |
|
| 309 | + * @param IJWSPayloadSpec $payload |
|
| 310 | + * @param string $signature |
|
| 311 | + * @return IJWS |
|
| 312 | + */ |
|
| 313 | 313 | static public function fromHeaderClaimsAndSignature(IJOSEHeader $header, IJWSPayloadSpec $payload = null , $signature = '') |
| 314 | 314 | { |
| 315 | 315 | return new JWS($header, $payload, $signature ); |
@@ -90,10 +90,10 @@ |
||
| 90 | 90 | // MAC_KEY = initial MAC_KEY_LEN octets of K |
| 91 | 91 | $mac_key = substr($key, 0, $mac_key_len); |
| 92 | 92 | /** |
| 93 | - * The octet string AL is equal to the number of bits in the |
|
| 94 | - * Additional Authenticated Data ($aad) expressed as a 64-bit unsigned |
|
| 95 | - * big-endian integer |
|
| 96 | - */ |
|
| 93 | + * The octet string AL is equal to the number of bits in the |
|
| 94 | + * Additional Authenticated Data ($aad) expressed as a 64-bit unsigned |
|
| 95 | + * big-endian integer |
|
| 96 | + */ |
|
| 97 | 97 | $al = ByteUtil::convert2UnsignedLongBE(strlen($aad) * 8); |
| 98 | 98 | // M = MAC(MAC_KEY, A || IV || E || AL) |
| 99 | 99 | $secured_input = implode('', array( |