as

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

exportRawToJwk

exportRawToJwk(buffer, algorithm?, keyOps?): JsonWebKey

Utility function to export raw key material to JWK format Supports symmetric keys (AES, HMAC) and raw EC points

Parameters

buffer

ArrayBuffer

The raw key material as ArrayBuffer

algorithm?

string

Optional algorithm identifier (e.g., 'AES-GCM', 'HMAC', 'ES256')

keyOps?

string[]

Array of key operations (e.g., ['encrypt', 'decrypt'])

Returns

JsonWebKey

A JsonWebKey object


Last updated: Sep 30, 2025