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
A JsonWebKey object
Last updated: Sep 30, 2025