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);
        }
Beispiel #2
0
 public override byte[] GetKey(KeyProviderQueryContext ctx)
 {
     return(new byte[] { 2, 3, 5, 7, 11, 13 });
 }
Beispiel #3
0
 public abstract byte[] GetKey(KeyProviderQueryContext ctx);