Skip to content

Commit

Permalink
Format comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sop committed Jun 7, 2016
1 parent dd210fb commit 82d3b66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/AESKW/Algorithm.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct($iv = self::DEFAULT_IV) {
*
* @param string $key Key to wrap
* @param string $kek Key encryption key
* @throws \UnexpectedValueException
* @throws \UnexpectedValueException If the key length is invalid
* @return string Ciphertext
*/
public function wrap($key, $kek) {
Expand Down Expand Up @@ -102,7 +102,7 @@ public function wrap($key, $kek) {
*
* @param string $ciphertext Ciphertext of the wrapped key
* @param string $kek Key encryption key
* @throws \UnexpectedValueException
* @throws \UnexpectedValueException If the ciphertext is invalid
* @return string Unwrapped key
*/
public function unwrap($ciphertext, $kek) {
Expand Down Expand Up @@ -132,6 +132,7 @@ public function unwrap($ciphertext, $kek) {
*
* @param string $key Key to wrap
* @param string $kek Key encryption key
* @throws \UnexpectedValueException If the key length is invalid
* @return string Ciphertext
*/
public function wrapPad($key, $kek) {
Expand Down Expand Up @@ -173,8 +174,7 @@ public function wrapPad($key, $kek) {
*
* @param string $ciphertext Ciphertext of the wrapped and padded key
* @param string $kek Key encryption key
* @throws \UnexpectedValueException
* @throws \RangeException
* @throws \UnexpectedValueException If the ciphertext is invalid
* @return string Unwrapped key
*/
public function unwrapPad($ciphertext, $kek) {
Expand Down Expand Up @@ -399,7 +399,7 @@ protected function _decrypt($kek, $block) {
}

/**
* Get latest OpenSSL error message.
* Get the latest OpenSSL error message.
*
* @return string
*/
Expand Down

0 comments on commit 82d3b66

Please sign in to comment.