fidm / x509

Pure JavaScript X509 certificate tools for Node.js
https://fidm.github.io/x509/
MIT License
82 stars 16 forks source link

How we can calculate the Public key size(1024 or 2048) from Buffer array when we parse the PEM file #18

Open imdhiru opened 3 years ago

imdhiru commented 3 years ago

I am getting a Uint8array(buffer) value for _finalKey in PublicKey. So, How I can get the size of the public key. Any method to calculate bitlength for public key.