| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 227093b commit 0c5e589
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -169,16 +169,16 @@ const privateDsa = fixtures.readKey('dsa_private_encrypted_1025.pem', | |||
| 169 | 169 | assert.strictEqual(derivedPublicKey.symmetricKeySize, undefined); | |
| 170 | 170 | ||
| 171 | 171 | const publicKeyFromJwk = createPublicKey({ key: publicJwk, format: 'jwk' }); | |
| 172 | - assert.strictEqual(publicKey.type, 'public'); | ||
| 173 | - assert.strictEqual(publicKey.toString(), '[object KeyObject]'); | ||
| 174 | - assert.strictEqual(publicKey.asymmetricKeyType, 'rsa'); | ||
| 175 | - assert.strictEqual(publicKey.symmetricKeySize, undefined); | ||
| 172 | + assert.strictEqual(publicKeyFromJwk.type, 'public'); | ||
| 173 | + assert.strictEqual(publicKeyFromJwk.toString(), '[object KeyObject]'); | ||
| 174 | + assert.strictEqual(publicKeyFromJwk.asymmetricKeyType, 'rsa'); | ||
| 175 | + assert.strictEqual(publicKeyFromJwk.symmetricKeySize, undefined); | ||
| 176 | 176 | ||
| 177 | 177 | const privateKeyFromJwk = createPrivateKey({ key: jwk, format: 'jwk' }); | |
| 178 | - assert.strictEqual(privateKey.type, 'private'); | ||
| 179 | - assert.strictEqual(privateKey.toString(), '[object KeyObject]'); | ||
| 180 | - assert.strictEqual(privateKey.asymmetricKeyType, 'rsa'); | ||
| 181 | - assert.strictEqual(privateKey.symmetricKeySize, undefined); | ||
| 178 | + assert.strictEqual(privateKeyFromJwk.type, 'private'); | ||
| 179 | + assert.strictEqual(privateKeyFromJwk.toString(), '[object KeyObject]'); | ||
| 180 | + assert.strictEqual(privateKeyFromJwk.asymmetricKeyType, 'rsa'); | ||
| 181 | + assert.strictEqual(privateKeyFromJwk.symmetricKeySize, undefined); | ||
| 182 | 182 | ||
| 183 | 183 | // It should also be possible to import an encrypted private key as a public | |
| 184 | 184 | // key. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments