in modules/material-management/src/cryptographic_material.ts [918:926]
export function unwrapDataKey(
dataKey: Uint8Array | AwsEsdkKeyObject
): Uint8Array {
if (dataKey instanceof Uint8Array) return dataKey
if (supportsKeyObject && dataKey instanceof supportsKeyObject.KeyObject)
return dataKey.export()
throw new Error('Unsupported dataKey type')
}