encryptCompactJwe
encryptCompactJwe
Encrypts one compact JWE for the limited RSA-OAEP-512/A256GCM profile (RFC 7516 §5.1). Generates a fresh 32-byte CEK and 12-byte IV; no externally supplied IV, compression or external AAD. The protected header's ORIGINAL base64url segment is the ASCII AAD (RFC 7516 §5.1 step 14).
ts
function encryptCompactJwe(
input: EncryptJweInput,
): Promise<JoseResult<string, JweErrorCode>>Parameters
input:EncryptJweInput