public static A CreateGenerator <A>(IGenerationServiceType <A> type)
 {
     return(ThreadSecurityContext.CreateGenerator(type, CryptoServicesRegistrar.GetSecureRandom()));
 }
 public static A CreateGenerator <A>(IGenerationServiceType <A> type, SecureRandom random)
 {
     return(ThreadSecurityContext.CreateGenerator(type, random));
 }
Exemple #3
0
        internal A CreateGenerator <A>(IGenerationServiceType <A> type, SecureRandom random)
        {
            CryptoStatus.IsReady();

            return((type as IGenerationService <A>).GetFunc(this).Invoke(type as IParameters <Algorithm>, random));
        }