internal byte[] GetKey(string strProviderName, KeyProviderQueryContext ctx,
                               out bool bPerformHash)
        {
            Debug.Assert(strProviderName != null); if (strProviderName == null)
            {
                throw new ArgumentNullException("strProviderName");
            }

            bPerformHash = true;

            foreach (KeyProvider prov in m_vProviders)
            {
                if (prov.Name == strProviderName)
                {
                    bPerformHash = !prov.DirectKey;
                    return(prov.GetKey(ctx));
                }
            }

            Debug.Assert(false);
            return(null);
        }
Esempio n. 2
0
 public override byte[] GetKey(KeyProviderQueryContext ctx)
 {
     return(new byte[] { 2, 3, 5, 7, 11, 13 });
 }
Esempio n. 3
0
 public abstract byte[] GetKey(KeyProviderQueryContext ctx);