summary refs log tree commit diff
path: root/crypto/src/math (unfollow)
Commit message (Expand)AuthorFilesLines
2014-02-07Use parallel wNAF for sumOfTwoMultipliesPeter Dettman1-4/+69
2014-02-07Small optimization for width 4Peter Dettman1-17/+19
2014-02-07Index precomputation info by namePeter Dettman5-14/+36
2014-02-07Update OCB draft referencesPeter Dettman2-2/+2
2014-02-06Use FixedPointCombMultiplier for most base-point multiplicationsPeter Dettman2-15/+16
2014-02-06Fix incomplete portPeter Dettman1-1/+1
2014-02-06Use fixed-point comb for multiplying by the base-pointPeter Dettman1-13/+11
2014-02-06A few improvements to the fixed-point combPeter Dettman2-10/+28
2014-02-06Initial work on the Curve25519 field implementationPeter Dettman4-19/+304
2014-02-06Add order/cofactor to the small test curvesPeter Dettman1-10/+18
2014-02-04Add order/cofactor to Fp curvesPeter Dettman8-802/+917
2014-02-04Initial work on a fixed-point comb multiplierPeter Dettman4-0/+141
2014-02-04For repeated doublings, use jacobian-modified coordinates internally irrespec...Peter Dettman1-1/+83
2014-02-03Implement Karatsuba multiply/square on 512-bit numbers and use as basis for P...Peter Dettman5-63/+582
2014-02-02Minor optimization for secp521r1 point doublingPeter Dettman3-5/+48
2014-02-02Bring OCB test vectors up-to-date with draft v06Peter Dettman2-81/+132
2014-02-01Add custom curve for secp521r1 (P-521)Peter Dettman9-109/+777
2014-02-01Add support for delayed modular reductionPeter Dettman3-35/+314
2014-02-01ReformattingPeter Dettman1-2/+0
2014-02-01ReformatPeter Dettman3-6/+0
2014-02-01Fix IncExtPeter Dettman1-1/+1
2014-02-01Rename locals in Reduce() methodsPeter Dettman2-33/+33
2014-02-01Optimize Reduce() methodPeter Dettman1-8/+16
2014-02-01Optimize Reduce() methodPeter Dettman1-6/+17
2014-02-01Fix Nat*.Gte methodsPeter Dettman3-6/+6
2014-01-31Make Dec/Inc/IncExt methods work at the full length and change assertions acc...Peter Dettman3-57/+55
2014-01-31Avoid modifying the input to the Reduce() methodsPeter Dettman4-50/+48
2014-01-31Improve reduction speed for secp192k1 and secp256k1 custom fieldsPeter Dettman4-16/+126
2014-01-31Add custom curves for secp192k1 and secp192r1 (P-192)Peter Dettman11-0/+2259
2014-01-31RefactoringPeter Dettman5-10/+8
2014-01-31Unroll MulWordAddExtPeter Dettman1-8/+24
2014-01-31Use BigInteger.One instead of BigInteger.ValueOf(1)Peter Dettman1-25/+25
2014-01-30Fix final step of Reduce()Peter Dettman1-10/+9
2014-01-30Fix GetBit range-checkPeter Dettman1-1/+1
2014-01-30FormattingPeter Dettman1-10/+0
2014-01-30Take advantage of special prime modulus to optimize sqrtPeter Dettman2-4/+107
2014-01-30Add SquareN to perform repeated modular squaringPeter Dettman2-0/+30
2014-01-29Cleanup various warnings, and reformattingPeter Dettman13-1112/+1104
2014-01-28Update copyrights and add missing Inc.Peter Dettman2-3/+3
2014-01-28Remove unnecessary using statementPeter Dettman1-2/+0
2014-01-28Several optimizations and make notes of possible delayed reductionsPeter Dettman1-17/+28
2014-01-28RefactoringPeter Dettman1-2/+1
2014-01-28Avoid division when decompressing a lambda-projective pointPeter Dettman1-9/+5
2014-01-28Implement multi-squaring in-place and use for F2m sqrt()Peter Dettman2-40/+39
2014-01-28Fix and re-enable twicePlus for lambda-projective coordinatesPeter Dettman1-59/+73
2014-01-28Port point-detaching stuff from JavaPeter Dettman3-0/+27
2014-01-28Port from Java order/cofactor for all curvesPeter Dettman4-41/+52
2014-01-27Port of latest EC multipliers from JavaPeter Dettman14-45/+292
2014-01-26Use custom curve if availablePeter Dettman3-220/+189
2014-01-26FormattingPeter Dettman2-359/+359
2014-01-26Add new test case for 96 bit tag from CFRGPeter Dettman1-31/+31
2014-01-26When OCB is used with incrementing nonces, the cipher processing during initi...Peter Dettman2-23/+67
2014-01-26Make class internalPeter Dettman1-1/+1
2014-01-26Port custom curve for secp256r1 from JavaPeter Dettman6-1/+758
2014-01-26Tidy up commentsPeter Dettman2-6/+2
2014-01-26Port custom curve for secp256k1 from JavaPeter Dettman7-15/+1499
2014-01-26Add methods working with uint[]Peter Dettman1-2/+44
2014-01-26Add diagnosticsPeter Dettman1-37/+42
2014-01-26Fix coord access in Negate()Peter Dettman1-36/+8
2014-01-26Refactor DecompressPointPeter Dettman1-8/+3
2014-01-26Port of jacobian/-modified coordinates from JavaPeter Dettman2-69/+354
2014-01-26Make Barrett reduction available for more prime moduliPeter Dettman1-12/+6
2014-01-26Increase number of roundsPeter Dettman1-3/+2
2014-01-26Adjust first-digit optimization to not be so conservativePeter Dettman1-12/+7
2014-01-25Port latest Java fixes for lambda-projective and make it the default for F2mPeter Dettman2-68/+92
2014-01-25Change F2m test curve to match Java version more clearlyPeter Dettman1-18/+14
2014-01-25Implement Sqrt in F2mPeter Dettman1-1/+9
2014-01-25Add 0 guard in ModInversePeter Dettman1-0/+4
2014-01-25Implement homogeneous and lambda-projective coordinate systems in F2m curvesPeter Dettman2-67/+428
2014-01-25Port of AddOne method(s) from JavaPeter Dettman1-0/+16
2014-01-25Use AesEngine by defaultPeter Dettman1-3/+8
2014-01-24FormattingPeter Dettman2-74/+70
2014-01-24Some more EC point normalizationPeter Dettman6-104/+103
2014-01-24Default to COORD_HOMOGENEOUS for FpPeter Dettman1-1/+1
2014-01-24Implement very basic Barrett reduction as alternative to very slow BigInteger...Peter Dettman1-19/+41
2014-01-24Run point test on all supported coordinate systemsPeter Dettman1-13/+36
2014-01-24Implementation of homogeneous coordinates for FpPeter Dettman20-5626/+6012
2014-01-24Optimization in ModReducePeter Dettman1-3/+6
2014-01-24Track carries for a, b to avoid unnecessary add/sub of prime modulusPeter Dettman1-17/+42
2014-01-24Fix return type in SubFromExtPeter Dettman1-4/+4
2014-01-24Make class abstractPeter Dettman1-32/+24
2014-01-24Track uvLen to reduce shifting for small operandsPeter Dettman1-9/+18
2014-01-24Move methodPeter Dettman1-16/+16
2014-01-23Port of several interrelated things from Java build:Peter Dettman12-578/+1061
2014-01-23Use ImportPoint to make sure points are on same curvePeter Dettman1-15/+49
2014-01-23Update test dataPeter Dettman1-3/+3
2014-01-23Rewrite some tests to avoid (obsoleted) explicit field element constructionPeter Dettman3-438/+423
2014-01-23FormattingPeter Dettman1-45/+45
2014-01-23Use residue-based reduction for more curves, in particular P-256Peter Dettman1-2/+8
2014-01-23Add Nat/Mod classes and use instead of (slow) BigInteger.ModInverse implement...Peter Dettman5-497/+643
2014-01-23Avoid unnecessary multiplication in final ExtEuclid iterationPeter Dettman1-32/+16
2014-01-23FormattingPeter Dettman1-987/+987
2014-01-22Add foundations for supporting other coordinate systemsPeter Dettman4-97/+260
2014-01-22Make publicPeter Dettman2-2/+2
2014-01-22Override methods to optimize for LongArrayPeter Dettman1-0/+20
2014-01-22Use new Math.Field classes in EC curves, and avoid casting in client codePeter Dettman6-362/+387
2014-01-22Implement TwicePlus optimization in Fp curvesPeter Dettman4-312/+458
2014-01-22Port LongArray from Java and use in F2mFieldElementPeter Dettman4-157/+2091
2014-01-21BMA-119Peter Dettman2-1202/+1097
2014-01-21Fix up openssl test casesPeter Dettman2-690/+689
2014-01-21Remove DerUnknownTag classPeter Dettman2-85/+0
2014-01-21Stop using DerUnknownTag (throw exceptions during parsing instead)Peter Dettman4-464/+457
2014-01-21BMA-118Peter Dettman1-95/+88
2014-01-21ReformatPeter Dettman1-44/+42
2014-01-21BMA-116Peter Dettman3-249/+266
2014-01-21Fix Equals methodsPeter Dettman2-27/+28
2014-01-21Fix digest test constructorsPeter Dettman15-261/+261
2014-01-21Update for timwPeter Dettman1-1/+1
2014-01-21Add new files to project, rename Sm3 to SM3Peter Dettman4-17/+92
2014-01-21Fix up mergePeter Dettman2-12/+29
2014-01-21Bring EC performance test up-to-date with Java versionPeter Dettman1-53/+109
2014-01-21Add new classes in Math.Field and some other EC-related stuff from JavaPeter Dettman12-0/+540
2014-01-21Use ECCurve.CreatePointPeter Dettman1-430/+428
2014-01-21FormattingPeter Dettman1-714/+714
2014-01-21FormattingPeter Dettman1-1173/+1173
2014-01-21Add target frameworks for mono-3.5 and -4.0Peter1-0/+14
2014-01-21Make typed Equals methods public (and virtual)Peter Dettman1-3/+3
2014-01-21Remove old MonoDevelop project files, since MonoDevelop now supports the Visu...Peter Dettman3-2371/+0
2014-01-21Make static utility classes abstract instead of sealedPeter Dettman6-298/+288
2014-01-21Bring Fp field element code mostly up-to-date with Java versionPeter Dettman2-778/+800
2014-01-21Fix XML commentsPeter Dettman2-5/+5
2014-01-15added Camellia tagsDavid Hook1-2/+11
2014-01-15added Camellia tagsDavid Hook1-11/+14
2014-01-03Registerize top accumulator word in Montgomery multiplication/squaringPeter Dettman1-6/+12
2014-01-03Fix tabsPeter Dettman1-2128/+2128
2013-12-29Make date format consistent with Java testsPeter Dettman3-9/+9
2013-12-18Use Platform.ToUpperInvariantPeter Dettman1-1/+1
2013-12-18Port of PrfAlgorithm and ProtocolVersion from Java TLSPeter Dettman4-0/+196
2013-12-18Factor out variation of MacUtilities.DoFinalPeter Dettman2-4/+8
2013-12-17Clean up all the special handling for IDEA stuff, back to a single release as...Peter Dettman14-3115/+3035
2013-12-17More porting from Java TLS, mainly enum replacementPeter Dettman28-821/+1100
2013-12-17A round of porting from Java TLSPeter Dettman29-1196/+1748
2013-12-07Add methods for converting from BC RSAPrivateKeyStructurePeter Dettman1-13/+34
2013-12-05Use Negate() to simplifyPeter Dettman1-1/+1
2013-12-05Add ECFieldElement.GetEncoded() methodPeter Dettman1-2/+7
2013-12-03Always apply sign guardPeter Dettman1-4/+4
2013-11-24Need to throw the new exceptions rather than leaving them to fall into the voidJeffrey Stedfast1-5/+5
2013-11-20Use 1/n-1 record splitting instead of 0/nPeter Dettman1-13/+24
2013-11-11Auto-initialize random if necessaryPeter Dettman1-0/+5
2013-11-10Don't require there to be any digests, to allow in particular for a certs-onl...Peter Dettman2-5/+20
2013-11-03Port from Java of improvements to DerBoolean and DerEnumeratedPeter Dettman3-61/+97
2013-11-02Add Poly1305 contributors entryPeter Dettman1-1/+1
2013-11-02Fix commentsPeter Dettman1-4/+5
2013-11-02Add contributor entries for recent patchesPeter Dettman1-0/+6
2013-11-01Fix namespacePeter Dettman1-5/+7
2013-11-01Clone bytes in constructor since it may be using a temp buffer in the ASN.1 p...Peter Dettman1-1/+1
2013-11-01Add EnumeratedTest classPeter Dettman3-0/+119
2013-11-01Minor edit to commentPeter Dettman1-1/+1
2013-11-01Add GMac classes to project filePeter Dettman1-0/+10
2013-11-01Fix XML commentPeter Dettman1-306/+307
2013-11-01Add new classes for ChaCha and XSalsa20Peter Dettman1-0/+20
2013-11-01Fix length in ShiftLeftPeter Dettman