diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-10 00:18:03 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2019-08-10 00:18:03 +0700 |
commit | 9c6880706476c6066b9aa2ce82c159d64c8766c6 (patch) | |
tree | 092fb747c1e8d483d4e611e08a1e648f9d864620 /crypto/src/crmf | |
parent | Use utility method (diff) | |
download | BouncyCastle.NET-ed25519-9c6880706476c6066b9aa2ce82c159d64c8766c6.tar.xz |
Add and use IntValueExact properties
Diffstat (limited to 'crypto/src/crmf')
-rw-r--r-- | crypto/src/crmf/PKMacBuilder.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/crmf/PKMacBuilder.cs b/crypto/src/crmf/PKMacBuilder.cs index b74eb6d18..156936eac 100644 --- a/crypto/src/crmf/PKMacBuilder.cs +++ b/crypto/src/crmf/PKMacBuilder.cs @@ -184,7 +184,7 @@ namespace Org.BouncyCastle.Crmf /// <returns>this</returns> public PKMacBuilder SetParameters(PbmParameter parameters) { - CheckIterationCountCeiling(parameters.IterationCount.Value.IntValue); + CheckIterationCountCeiling(parameters.IterationCount.IntValueExact); this.parameters = parameters; @@ -257,7 +257,7 @@ namespace Org.BouncyCastle.Crmf IDigest digest = provider.CreateDigest(parameters.Owf); - int iter = parameters.IterationCount.Value.IntValue; + int iter = parameters.IterationCount.IntValueExact; digest.BlockUpdate(K, 0, K.Length); |