Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Nguyen <nguyennv1981@gmail.com>
  • Loading branch information
nguyennv committed Nov 5, 2024
1 parent 18b6946 commit 7af75e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Enum/KeyAlgorithm.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public function forEncryption(): bool
public function keyVersion(): int
{
return match ($this) {
self::X25519, self::X448, self::Ed25519, self::Ed448 => KeyVersion
::V6->value,
self::X25519, self::X448, self::Ed25519, self::Ed448
=> KeyVersion::V6->value,
default => Config::useV6Key()
? KeyVersion::V6->value
: KeyVersion::V4->value,
Expand Down

0 comments on commit 7af75e7

Please sign in to comment.