/// <summary>Add a PBE encryption method to the encrypted object.</summary>
        public void AddMethod(ReadOnlySpan <byte> rawPassPhrase, PgpHashAlgorithm s2kDigest)
        {
            S2k s2k = PgpUtilities.GenerateS2k(s2kDigest, 0x60);

            byte[] key = new byte[PgpUtilities.GetKeySize(defAlgorithm) / 8];
            S2kBasedEncryption.MakeKey(rawPassPhrase, s2kDigest, s2k.GetIV(), s2k.IterationCount, key);
            methods.Add(new PbeMethod(defAlgorithm, s2k, key));
        }