Skip to content

Commit 7a22a92

Browse files
authored
Update JWKFactory.php (#358)
1 parent 0e42ec4 commit 7a22a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component/KeyManagement/JWKFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function createOKPKey(string $curve, array $values = []): JWK
103103
switch ($curve) {
104104
case 'X25519':
105105
$keyPair = sodium_crypto_box_keypair();
106-
$secret = sodium_crypto_box_secretkey($keyPair);
106+
$secret = $keyPair;
107107
$x = sodium_crypto_box_publickey($keyPair);
108108

109109
break;

0 commit comments

Comments
 (0)