as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

getModulusLengthFromRsaDer

getModulusLengthFromRsaDer(derKey): number

Extracts the modulus length in bits from a DER-encoded RSA key

Parameters

derKey

ArrayBuffer

The DER-encoded RSA key as ArrayBuffer

Returns

number

The modulus length in bits (e.g., 2048 for RSA-2048)


Last updated: Sep 30, 2025