GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — crypto: KeyObject.asymmetricKeySize API by paroga · Pull Request #26387 · nodejs/node Conversation
|
|
Landed in 4895927 🎉 I updated the commit message while landing as suggested. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Expose the size of asymetric keys of crypto key object from the crypto module added in v11.6.0. PR-URL: nodejs#26387 Refs: nodejs#24234 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
|
👋 Maybe i'm missing something but This is apparent with Ed25519 and Ed448 and possibly EC keys as well. pem =`-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAEXRYV3v5ucrHVR3mKqyPXxXqU34lASwc7Y7MoOvaqcs=\n-----END PUBLIC KEY-----` k=crypto.createPublicKey(pem) // PublicKeyObject { [Symbol(kKeyType)]: 'public' } k.asymmetricKeyType // 'ed25519' k.asymmetricKeySize // 114 114 bytes is the length of a signature, key is in fact 57 bytes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@panva That's probably worth posting a new issue for. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Will do, wanted to check first if i missed something |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
created #26631 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
i only checked it with RSA, since there are only RSA tests for the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm assuming this should have been marked as semver-minor. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Notable Changes
* build:
* Enable v8's siphash for hash seed creation (Rod Vagg)
#26367
* crypto:
* Add `KeyObject.asymmetricKeySize` (Patrick Gansterer)
#26387
* deps:
* Upgrade openssl to 1.1.1b (Sam Roberts)
#26327
* process:
* Make `process[Symbol.toStringTag]` writable again
(Ruben Bridgewater) #26488
* repl:
* Add `util.inspect.replDefaults` to customize the writer
(Ruben Bridgewater) #26375
* report:
* Rename `triggerReport()` to `writeReport()` (Colin Ihrig)
#26527
|
I'll back out this PR from v11.12.0 due to the concerns by @tniessen. If this should indeed land in a PR, please update the labels accordingly. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.