curve25519 uses Go compiler directives (go:noescape), which apparently mockgen doesn't understand and therefore throws errors.
By doing so, we can mock private methods of the stream, so they cannot be type-asserted by users of quic-go.