I need to wrap an RSA Key in PKCS-8 format using an AES GCM key using the WebCrypto API. I need the wrapped key to be interoperable with PKCS11 UnwrapKey API of HSMs (mainly Thales).
My question is, what is the output format of the wrapped key? Ideally it should be the RFC-5989 Encrypted Private Key Info ASN.1 format, but it seems WebCrypto just outputs the encrypted bytes without any ASN.1 formatting.
Wondering if anyone knows what the format it? (Can't find it documented anywhere.)