~cbehrens/openstack-guest-agents/lp764221

« back to all changes in this revision

Viewing changes to src/xenserver/windows/src/Rackspace.Cloud.Server.Agent.DiffieHellman/mono/ConfidenceFactor.cs

  • Committer: Antony Messerli
  • Date: 2011-03-02 21:56:51 UTC
  • Revision ID: amesserl@rackspace.com-20110302215651-0clqh49spumg13c6
Initial commit Rackspace Windows Guest Agent

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Mono.Math.Prime.ConfidenceFactor.cs - Confidence factor for prime generation
 
3
//
 
4
// Authors:
 
5
//      Ben Maurer
 
6
//
 
7
// Copyright (c) 2003 Ben Maurer. All rights reserved
 
8
//
 
9
 
 
10
using System;
 
11
 
 
12
namespace Mono.Math.Prime {
 
13
        /// <summary>
 
14
        /// A factor of confidence.
 
15
        /// </summary>
 
16
        internal enum ConfidenceFactor {
 
17
                /// <summary>
 
18
                /// Only suitable for development use, probability of failure may be greater than 1/2^20.
 
19
                /// </summary>
 
20
                ExtraLow,
 
21
                /// <summary>
 
22
                /// Suitable only for transactions which do not require forward secrecy.  Probability of failure about 1/2^40
 
23
                /// </summary>
 
24
                Low,
 
25
                /// <summary>
 
26
                /// Designed for production use. Probability of failure about 1/2^80.
 
27
                /// </summary>
 
28
                Medium,
 
29
                /// <summary>
 
30
                /// Suitable for sensitive data. Probability of failure about 1/2^160.
 
31
                /// </summary>
 
32
                High,
 
33
                /// <summary>
 
34
                /// Use only if you have lots of time! Probability of failure about 1/2^320.
 
35
                /// </summary>
 
36
                ExtraHigh,
 
37
                /// <summary>
 
38
                /// Only use methods which generate provable primes. Not yet implemented.
 
39
                /// </summary>
 
40
                Provable
 
41
        }
 
42
}