The following methods: generateKey, generateKeySync, generateKeyPair, and generateKeyPairSync are all methods that are not implemented. Despite that, cloudflare's docs suggest that all of these methods are supported.
Upon looking at the code base, this is what all of the functions state
export function generateKey(
_type: SecretKeyType,
_options: GenerateKeyOptions,
callback: GenerateKeyCallback
) {
// We intentionally have not implemented key generation up to this point.
// The reason is that generation of cryptographically safe keys is a CPU
// intensive operation that can often exceed limits on the amount of CPU
// time a worker is allowed.
callback(new ERR_METHOD_NOT_IMPLEMENTED('crypto.generateKeySync'));
}
Should the docs be updated to reflect this reality?