diff options
author | Alex van Poppelen <avanpoppelen@gmail.com> | 2015-10-17 03:45:48 +0200 |
---|---|---|
committer | Alex van Poppelen <avanpoppelen@gmail.com> | 2015-10-17 03:45:48 +0200 |
commit | 4397adf4acf11009caf62d34b5f74bb5703db4e2 (patch) | |
tree | b58c2763bc9c220826fbf36b04f938c041a8d683 /crypto/src | |
parent | cleaned up commenting a bit (diff) | |
download | BouncyCastle.NET-ed25519-4397adf4acf11009caf62d34b5f74bb5703db4e2.tar.xz |
more commenting fixes
Diffstat (limited to 'crypto/src')
-rwxr-xr-x | crypto/src/crypto/agreement/jpake/JPAKEParticipant.cs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/crypto/src/crypto/agreement/jpake/JPAKEParticipant.cs b/crypto/src/crypto/agreement/jpake/JPAKEParticipant.cs index bd18765b4..0874f3d83 100755 --- a/crypto/src/crypto/agreement/jpake/JPAKEParticipant.cs +++ b/crypto/src/crypto/agreement/jpake/JPAKEParticipant.cs @@ -108,6 +108,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake // See the <tt>STATE_*</tt> constants for possible values. private int state; + /// <summary> /// Convenience constructor for a new JPAKEParticipant that uses /// the JPAKEPrimeOrderGroups#NIST_3072 prime order group, /// a SHA-256 digest, and a default SecureRandom implementation. @@ -125,8 +126,8 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake public JPAKEParticipant(string participantId, char[] password) : this(participantId, password, JPAKEPrimeOrderGroups.NIST_3072) { } + /// <summary> /// Convenience constructor for a new JPAKEParticipant that uses - /// the JPAKEPrimeOrderGroups#NIST_3072 prime order group, /// a SHA-256 digest, and a default SecureRandom implementation. /// /// After construction, the State state will be STATE_INITIALIZED. @@ -144,9 +145,8 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake : this(participantId, password, group, new Sha256Digest(), new SecureRandom()) { } - /// Convenience constructor for a new JPAKEParticipant that uses - /// the JPAKEPrimeOrderGroups#NIST_3072 prime order group, - /// a SHA-256 digest, and a default SecureRandom implementation. + /// <summary> + /// Constructor for a new JPAKEParticipant. /// /// After construction, the State state will be STATE_INITIALIZED. /// @@ -241,6 +241,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake /// Must be called prior to CreateRound2PayloadToSend(). /// /// After execution, the State state will be STATE_ROUND_1_VALIDATED. + /// /// Throws CryptoException if validation fails. Throws InvalidOperationException /// if called multiple times. /// </summary> @@ -268,11 +269,11 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake /// <summary> /// Creates and returns the payload to send to the other participant during round 2. /// - /// ValidateRound1PayloadReceived(JPAKERound1Payload)} must be called prior to this method. + /// ValidateRound1PayloadReceived(JPAKERound1Payload) must be called prior to this method. /// - //// After execution, the State state will be STATE_ROUND_2_CREATED. + /// After execution, the State state will be STATE_ROUND_2_CREATED. /// - /// Throws InvalidOperationException if called prior to ValidateRound1PayloadReceived(JPAKERound1Payload)}, or multiple times + /// Throws InvalidOperationException if called prior to ValidateRound1PayloadReceived(JPAKERound1Payload), or multiple times /// </summary> public JPAKERound2Payload CreateRound2PayloadToSend() { @@ -304,7 +305,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake /// /// Must be called prior to CalculateKeyingMaterial(). /// - /// After execution, the State state will be STATE_ROUND_2_VALIDATED. + /// After execution, the State state will be STATE_ROUND_2_VALIDATED. /// /// Throws CryptoException if validation fails. Throws /// InvalidOperationException if called prior to ValidateRound1PayloadReceived(JPAKERound1Payload), or multiple times @@ -436,6 +437,7 @@ namespace Org.BouncyCastle.Crypto.Agreement.Jpake /// See JPAKEParticipant for more details on round 3. /// /// After execution, the State state will be STATE_ROUND_3_VALIDATED. + /// /// Throws CryptoException if validation fails. Throws InvalidOperationException if called prior to /// CalculateKeyingMaterial or multiple times /// </summary> |