Skip to content

Commit

Permalink
Fix typos (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Feb 13, 2024
1 parent 9dd48a8 commit 4b762e7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ st: vendor ## Run static analyse

################################################

ci-mu: vendor ## Mutation tests (for Github only)
ci-mu: vendor ## Mutation tests (for GitHub only)
vendor/bin/infection --logger-github -s --threads=$$(nproc) --min-msi=45 --min-covered-msi=60

ci-cc: vendor ## Show test coverage rates (console)
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Encryption/JWE.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getRecipient(int $id): Recipient
/**
* Returns the ciphertext. This method will return null is the JWE has not yet been encrypted.
*
* @return string|null The cyphertext
* @return string|null The ciphertext
*/
public function getCiphertext(): ?string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Library/Encryption/JWEBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function addRecipient(JWK $recipientKey, array $recipientHeader = []): se
return $clone;
}

//TODO: Verify if the key is compatible with the key encrytion algorithm like is done to the ECDH-ES
//TODO: Verify if the key is compatible with the key encryption algorithm like is done to the ECDH-ES
/**
* Set the sender JWK to be used instead of the internal generated JWK
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Library/KeyManagement/Analyzer/MixedKeyTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function analyze(JWKSet $jwkset, MessageBag $bag): void
}

if ($hasAsymmetricKeys && $hasSymmetricKeys) {
$bag->add(Message::medium('This key set mixes symmetric and assymetric keys.'));
$bag->add(Message::medium('This key set mixes symmetric and asymmetric keys.'));
}
}
}
2 changes: 1 addition & 1 deletion src/Library/KeyManagement/Analyzer/UsageAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function analyze(JWK $jwk, MessageBag $bag): void
Message::high(sprintf(
'The parameter "key_ops" has an unsupported value "%s". Please use one of the following values: %s.',
$jwk->get('key_ops'),
implode(', ', ['verify', 'sign', 'encryp', 'decrypt', 'wrapKey', 'unwrapKey'])
implode(', ', ['verify', 'sign', 'encrypt', 'decrypt', 'wrapKey', 'unwrapKey'])
))
);
}
Expand Down

0 comments on commit 4b762e7

Please sign in to comment.