To paste content (from the clipboard) into a Layer mask, Option (Mac)/ Alt (Win) -click the Layer mask icon on the Layers panel and then select Edit > Paste.
If you have an active selection in your document (marching ants) and have content on the clipboard, selecting “Paste Into” will paste the content from the clipboard into your selection – and automatically convert the selection into a Layer mask.
