summary refs log tree commit diff
path: root/crypto (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-06-26Move lazy initialization under lockPeter Dettman1-16/+19
2015-06-19Latest custom EC updates from Java APIPeter Dettman15-12/+1484
2015-06-16Changed PkixCertPathChecker Check method signature, so chosen unsupported ↵Marcin Paszylk2-4/+2
certificate extensions can be removed from collection in Check method implementation. Change-Id: I2041e4dc7be1b041bbe3a4ff0537be921b1f317b
2015-06-12Performance optimizationPeter Dettman1-14/+42
2015-06-11Improve limit-testing to avoid overflow problemsPeter Dettman1-3/+3
2015-06-11Add new class PrimesPeter Dettman2-0/+287
- Initial implementation of Shawe-Taylor (FIPS 186-4 C.6)
2015-06-09Add range checks to F2m field elementsPeter Dettman9-8/+11
2015-05-27Code cleanupPeter Dettman1-59/+69
2015-05-25Change default DH group chosen by TLS server to 2048 bitsPeter Dettman5-16/+36
TLS client will not accept < 1024 bits DH group by default
2015-04-18Port recent Java updatesPeter Dettman9-5/+331
2015-04-11Remove overly strict check on ECC extensionsPeter Dettman1-2/+6
2015-04-10Support (low-level) for non-default PRFs for PKCS5v2bartland1-13/+59
2015-03-30Update version to 1.8.0-RC.1 prior to release release-1.8.0-RC.1Peter Dettman1-1/+1
2015-03-27ValidDays only returns 0 if there is no expiry, and is ObsoletePeter Dettman1-21/+26
- Thanks to Severin Friede for reporting (see JIRA BMA-127)
2015-03-26Improved docs and code cleanupPeter Dettman1-46/+11
2015-03-26Provide a KeyContainerName when creating an RSACryptoServiceProviderPeter Dettman1-1/+3
- Thanks to Frederik Carlier for reporting and providing a fix (see JIRA BMA-130)
2015-03-26Retain the OID actually used when initialized by keysizePeter Dettman1-0/+1
- Thanks to Kyle Hamilton for the patch (see bcgit/bc-csharp#16)
2015-03-26Added AES, IDEA, and CAST5 CBC S/MIME Capability identifiersJeffrey Stedfast1-0/+6
2015-03-26F2mCurve cleanupPeter Dettman3-6/+30
2015-03-25FormattingPeter Dettman1-1/+2
2015-03-25Include ANSSI curves in getByOID lookupPeter Dettman1-1/+6
2015-03-24Delete spurious filePeter Dettman1-1985/+0
2015-03-24Add custom implementations of SEC binary curvesPeter Dettman50-1/+12040
2015-03-24Add GetHashCode methods for ulong[]Peter Dettman1-0/+42
2015-03-24Correct duplicate key exception when more than one signer use the same ↵Carlos Alberto Costa Beppler1-8/+13
digest algorithm.
2015-03-24Custom curves for secp128r1 and secp160r1/r2/k1Peter Dettman16-32/+2820
2015-03-24Only test each named curve oncePeter Dettman1-1/+3
2015-03-23F2m changes in preparation for custom binary curvesPeter Dettman5-376/+354
2015-03-23Fix case-handling for custom curve namesPeter Dettman1-16/+26
2015-03-23Math.Raw support for custom binary curvesPeter Dettman43-46/+2430
- Also migrate the 'raw' stuff into Math.Raw following Java build
2015-03-23Improve handling of extensions for session resumptionPeter Dettman8-224/+2258
2015-03-23Reduce memory usage of INTERLEAVE2_TABLEPeter Dettman1-1/+1
2015-03-23Add SquarePow method to ECFieldElementPeter Dettman1-8/+16
2015-03-23Add ANSSI curve FRP256v1 and refactor curve registriesPeter Dettman9-70/+213
2015-03-10Update TLS for draft-ietf-tls-session-hash-04Peter Dettman9-50/+47
2015-03-09Port of DTLS tests from JavaPeter Dettman13-14/+775
2015-03-09Port of TlsTestSuite from Java, and misc. TLS codePeter Dettman27-178/+1325
- Upgrade to NUnit 2.6.4 and adjust various test code
2015-03-09Remove extraneous class referencePeter Dettman1-1/+1
2015-03-09Add constants for GNU protection modesPeter Dettman1-0/+2
2015-03-09Add SignerUtilities handling for X931SignerPeter Dettman2-2/+21
2015-03-09Port X931Signer and tests from JavaPeter Dettman14-48/+438
2015-03-09Refactor TLS ciphersuite processingPeter Dettman9-1493/+652
2015-03-09Porting from Java buildPeter Dettman41-263/+1693
- SRP6 evidence messages and standard groups - TLS_SRP server-side support added - TLS_DHE server-side fixes - Improved support for DSA/ECDSA signing in TLS
2015-03-08Port TLS-PSK tests from JavaPeter Dettman4-0/+332
2015-03-08Don't override default ciphersuites in testPeter Dettman1-12/+12
2015-03-08Spelling fixesPeter Dettman5-6/+6
2015-03-08Clear the shared secret after usePeter Dettman1-4/+10
2015-03-08Add newer TLS test data from Java buildPeter Dettman10-3/+176
2015-03-08Guard against small private keys, and optimize for common public exponentsPeter Dettman1-18/+18
2015-03-08Add explicit delegate type to keep .NET 1.1 happyPeter Dettman1-1/+1
2015-03-07Port of some of the TLS tests from JavaPeter Dettman5-0/+342
2015-03-07Various updates from Java buildPeter Dettman56-584/+666
2015-03-06Tighten ChangeCipherSpec ordering checksPeter Dettman1-0/+8
2015-03-06Refuse client-initiated renegotiation gracefullyPeter Dettman3-9/+18
2015-03-06Improved handling for out-of-order Finished messagePeter Dettman1-2/+10
2015-02-23Fix parsing of implicit tagged objectPeter Dettman1-2/+2
2015-02-08Port of WNaf precomp optimization from JavaPeter Dettman3-36/+140
2015-02-08Update copyright yearPeter Dettman2-2/+2
2015-02-05Spelling fixesPeter Dettman1-2/+2
2015-01-22Port of recent TLS-PSK work from Java buildPeter Dettman12-85/+605
2014-12-31TLS update from JavaPeter Dettman1-9/+17
2014-12-16Various updates to GCM from Java buildPeter Dettman5-197/+217
2014-12-11Add ECDHE_ECDSA CCM ciphersuites from RFC 7251Peter Dettman6-0/+44
2014-12-11Add some more Verisign OIDsPeter Dettman1-28/+33
2014-12-11Port of unexpected server extension mechanism, including special case for ↵Peter Dettman1-8/+36
Supported Elliptic Curves
2014-12-11Port of a few Java updatesPeter Dettman5-472/+509
2014-10-18Update draft references after renamePeter Dettman6-12/+12
2014-10-17Initial port of DTLS client/server from JavaPeter Dettman12-0/+2934
2014-10-15Implement draft-bmoeller-tls-downgrade-scsv-02Peter Dettman8-4/+77
2014-09-28Update version to beta.5 following beta.4 releasePeter Dettman1-1/+1
2014-09-28Use platform RNG as master, where available release-1.8.0-beta.4Peter Dettman3-115/+154
Obsolete seeded constructor in favour of GetInstance variant
2014-09-28FormattingPeter Dettman1-205/+205
2014-09-28Port of GenericSIgner fix from JavaPeter Dettman1-114/+115
2014-09-27Early code-point assignment for draft-ietf-tls-session-hashPeter Dettman1-6/+6
2014-09-27Update comments now that encrypt-then-MAC is out of draft (RFC 7366)Peter Dettman3-10/+12
2014-09-17RefactoringPeter Dettman1-138/+139
2014-08-28Constants and support functions for draft-ietf-tls-negotiated-ff-dhe-01Peter Dettman4-2/+408
2014-08-28Small refactoringPeter Dettman1-7/+7
2014-08-28Minor improvements to MaxFragmentLength handlingPeter Dettman2-11/+5
2014-08-28FormattingPeter Dettman1-12/+2
2014-08-27Refactor redundant blocksPeter Dettman1-296/+169
Support no-password operation (as best we can)
2014-08-27Improve sorting for SETsPeter Dettman1-53/+47
2014-08-26Extended master secret uses a different label in PRFPeter Dettman2-10/+13
2014-08-26Initial implementation of draft-ietf-tls-session-hash-01Peter Dettman7-31/+101
2014-08-26Add methods to give readable text for alertsPeter Dettman5-9/+101
2014-08-26Cleanup obsolete code warningsPeter Dettman3-5/+4
2014-08-25Rework the nonce-random initialisation and avoid GenerateSeedPeter Dettman1-5/+8
2014-08-25Port TLS server impl/test from Java APIPeter Dettman5-2/+976
2014-08-24Fix NAnt build issuePeter Dettman1-1/+2
2014-08-24Exclude some files in the TLS test dataPeter Dettman1-0/+1
2014-08-24Fix initial bugs revealed by new TLS testPeter Dettman2-4/+8
2014-08-24Fix TLS test namespacePeter Dettman3-4/+4
2014-08-24Finish initial porting of TLS 1.2 client from Java APIPeter Dettman17-1370/+3423
2014-08-24Add TLS test data from Java APIPeter Dettman11-0/+207
2014-08-24Obsolete class/method cleanupPeter Dettman14-193/+7
2014-08-23Port latest TLS key exchange stuff from Java APIPeter Dettman14-702/+1437
2014-08-22More TLS porting from Java APIPeter Dettman15-157/+721
2014-08-22More TLS porting from Java APIPeter Dettman20-558/+1882
2014-08-22Add support for a 'cause' Exception to TlsFatalAlert and usePeter Dettman11-36/+40
2014-08-21Cater for possibly null ecPointFormatsPeter Dettman1-1/+4
2014-08-21More TLS ported from Java APIPeter Dettman24-711/+1944
2014-08-20A few minor followups to the previous batch of TLS updatesPeter Dettman5-8/+16
2014-08-20A round of TLS updates from Java APIPeter Dettman37-325/+957
2014-08-20Bring RsaDigestSigner uptodate with Java APIPeter Dettman2-102/+92
2014-08-20Add Times utility classPeter Dettman2-0/+19
2014-08-20Port of Deterministic-DSA from Java APIPeter Dettman8-20/+838
2014-08-20Fix warningPeter Dettman1-1/+1
2014-08-20BMA-125 Remove duplicate/wrong RIPEMD160/ECDSA entriesPeter Dettman1-364/+361
2014-08-05In SecureRandom, the usage of ReversedWindowGenerator only reordered the ↵Edward Ned Harvey1-3/+1
output of sha256Generator. It added computation overhead and zero cryptographic value. Removed.
2014-08-05GetInstance() returns a seeded instance. If you want an unseeded instance, ↵Edward Ned Harvey1-10/+6
you must use the unseeded ctor in which you supply your own generator
2014-08-05SecureRandom ctor: given this is a sha1Generator, seed with 20 bytes instead ↵Edward Ned Harvey1-1/+1
of 8
2014-08-05use CryptoApiRandomGenerator in addition to other entropy sourcesEdward Ned Harvey1-1/+6
2014-08-05after seeding, pointlessly threw away the first few bytes. Removed.Edward Ned Harvey1-1/+0
2014-08-05use 32 bytes instead of 24 for seed material from ThreadedSeedGeneratorEdward Ned Harvey1-1/+5
2014-07-25Check point against cofactor after decompressionPeter Dettman2-5/+10
2014-07-24Add GetCipherType method and refactorPeter Dettman1-41/+41
2014-07-24Another round of TLS porting from JavaPeter Dettman13-97/+930
2014-07-24Add more variations of Check/IsValidPeter Dettman1-0/+34
2014-07-24Apply low-hamming-weight NAF check for more generatorsPeter Dettman3-90/+135
2014-07-24Improve git ignore listPeter Dettman1-3/+12
2014-07-23More porting from Java TLSPeter Dettman4-85/+876
2014-07-23Update cipher suites from JavaPeter Dettman2-73/+127
2014-07-23Port of new TlsEccUtilities class from JavaPeter Dettman17-71/+901
Various support methods in TlsUtilities and Arrays Fix short->byte for several enumeration types
2014-07-23Add automatic EC point validation for decoded points and for multiplier outputsPeter Dettman24-494/+375
2014-07-23Update encrypt_then_mac entryPeter Dettman1-4/+2
2014-07-22Port of encoding fix from JavaPeter Dettman1-2/+2
2014-07-21BMA-105Peter Dettman3-121/+148
Support for parsing Gost3410x2001 private keys encoded as DER Integer Miscellaneous support methods ported from Java
2014-07-21Port of PrivateKeyInfo changes from JavaPeter Dettman5-1293/+1302
2014-07-21Port update from JavaPeter Dettman1-2/+3
2014-07-21[BMA-117]Peter Dettman1-41/+41
Cope with redundant ExtendedKeyUsage entries
2014-07-21Port a few Java openpgp updatesPeter Dettman7-971/+1265
2014-07-21Port constant-time extensions from JavaPeter Dettman1-221/+371
2014-07-21Use AddTo/SubFrom and add a generic modular-addition methodPeter Dettman1-7/+17
2014-07-21Port a few more GCM/GMac updatesPeter Dettman4-266/+275
2014-07-21Reduce the number of test casesPeter Dettman1-1/+1
2014-07-21De-tabifyPeter Dettman1-176/+176
2014-07-21Port of latest GCM/OCB changesPeter Dettman5-74/+389
2014-07-21Registerize inner loopsPeter Dettman3-226/+184
2014-07-21De-tabifyPeter Dettman3-1302/+1302
2014-07-21De-tabifyPeter Dettman1-88/+88
2014-07-21De-tabifyPeter Dettman1-458/+458
2014-07-02Asterisk the default coordinates for each curvePeter Dettman1-3/+5
2014-07-02Use higher precision approximations for g1/g2 (GLV Type B)Peter Dettman2-21/+21
2014-07-01Port ECAlgorithmsTest from JavaPeter Dettman4-5/+162
2014-06-30Fix inverted sense of "negs" in ImplSumOfMultiplies (porting error)Peter Dettman1-1/+1
2014-05-19Check the low-bit of y is consistent with the header byte in hybrid EC point ↵Peter Dettman1-6/+20
encodings
2014-04-17Port some minor updates from JavaPeter Dettman1-4/+4
2014-04-16Set the SecureRandom more intelligentlyPeter Dettman2-144/+141
Change access modifiers to support subclassing
2014-04-16Add low-weight guard to ECKeyPairGeneratorPeter Dettman1-2/+16
2014-04-11Check for low-weight numbers in DH parameter generation and RSA key generationPeter Dettman3-167/+207
2014-04-10Update version to beta.4 following beta.3 releasePeter Dettman1-1/+1
2014-04-10Fixed-point-comb uses existing precomputation info if it's for the same _or ↵ release-1.8.0-beta.3Peter Dettman3-9/+24
greater_ width as requested
2014-04-06Port from Java many of the new TLS classes and a few minor changesPeter Dettman26-45/+479
2014-04-06Move NullOutputStream to util/ioPeter Dettman2-8/+6
2014-04-04Remove redundant Mac.Init callsPeter Dettman1-3/+1
2014-04-04Use the TLS 1.0 PRF for the random blockPeter Dettman8-3/+128
2014-03-21Optimize Curve25519 point operationsPeter Dettman2-111/+214
2014-03-17Port of latest Curve25519 stuff from Java buildPeter Dettman9-30/+710
2014-03-14Take advantage of GLV (when available) in sum-of-multiplies methodsPeter Dettman1-7/+89
2014-03-14Change primary measurement to multiplication rate using fixed-duration roundsPeter Dettman1-24/+47
2014-03-14Optimize squaring by inlining the ShiftUpBitPeter Dettman3-118/+262
2014-03-14GlvMultiplier.cs missed in last commitPeter Dettman2-0/+45
2014-03-13Port GLV implementation from JavaPeter Dettman13-18/+439
2014-03-13Fix bug in DoFinal introduced by last changePeter Dettman1-18/+25
2014-03-13Add ScaleX, ScaleY methods to ECPointPeter Dettman1-0/+74
2014-03-13Add new CreateRawPoint method on ECCurve that includes the Z coordsPeter Dettman9-0/+52
2014-03-12All subclasses to control the choice of width to usePeter Dettman1-2/+6
2014-03-12Allow subclasses to override the ECMultiplier used for base-point multiplicationPeter Dettman3-8/+21
2014-03-12Weight the performance test more towards random pointsPeter Dettman1-3/+9
2014-03-12Add new methodPeter Dettman1-0/+9
2014-03-12Add extra random tests for SipHash to check consistency across different ↵Peter Dettman1-0/+34
update methods
2014-03-11Optimization (faster at all input lengths, but especially for long ↵Peter Dettman1-17/+39
block-aligned inputs)
2014-03-11Improve SipHashTest to cover varying update methodsPeter Dettman1-4/+50
2014-03-10Optimize some of the addition/doubling internalsPeter Dettman8-92/+114
2014-03-10Adapt performance test to exclude outliers form averagePeter Dettman1-15/+32
2014-03-10Add MultiplyAddToExt method to fieldsPeter Dettman6-2/+71
2014-03-10Refactor temporary variables in reductionsPeter Dettman3-28/+30
2014-03-10Inline Reduce32 calls and registerize some values to avoid extra writesPeter Dettman2-12/+53
2014-03-10Use more specific Nat methodsPeter Dettman1-2/+2
2014-03-06Change version to beta.3 after release of beta.2Peter Dettman1-1/+1
2014-03-06Minor improvement to reduction release-1.8.0-beta.2Peter Dettman3-9/+15
2014-03-06Avoid redundant subtractionPeter Dettman1-43/+43
2014-03-05Improved reductionPeter Dettman4-63/+101
2014-03-05Reduction optimization for secp256r1Peter Dettman1-5/+73
2014-03-05Use Nat methods instead of specific Nat*.*Ext methodsPeter Dettman10-84/+44
Reduction improvements in curve25519 and secp256r1
2014-03-04Fix infinite loop issue when there is no sqrtPeter Dettman2-30/+80
Add test case to check that Sqrt returns null for non-squares
2014-03-04Remove some length-specific methods in favour of the Nat classPeter Dettman12-558/+487
Add more method variations to Nat Use customized reductions in various fields
2014-03-04Just use shift methods from Nat class evverywherePeter Dettman10-271/+25
2014-03-03Refactoring in the Nat* classes and some new method variationsPeter Dettman15-187/+634
Improved reduction in some fields
2014-03-03Share single temp variable across calls in Sqrt()Peter Dettman1-10/+9
2014-03-03Refactor reduction methods and change scope of PExt fieldsPeter Dettman7-115/+103
2014-03-03Add/rename MulAddTo variationsPeter Dettman3-2/+167
2014-03-02Allow for (very rare) cases where the Sqrt() algorithm needs to retryPeter Dettman1-36/+40
2014-02-28Avoid a few negations in Sqrt()Peter Dettman1-7/+8
2014-02-27Optimized Sqrt() for custom secp224r1Peter Dettman2-2/+112
2014-02-27Equality/hashcode should ignore "excess" wordsPeter Dettman12-23/+107
2014-02-27Optimize Sqrt() for custom secp384r1Peter Dettman1-2/+56
2014-02-27Optimize final adjustments in Reduce()Peter Dettman1-13/+4
2014-02-27Simplify Twice()Peter Dettman1-7/+3
2014-02-27Add custom curve for secp384r1 (P-384)Peter Dettman7-0/+858
2014-02-27Optimize final adjustments in Reduce()Peter Dettman1-11/+8
2014-02-26Round out the Nat192 methodsPeter Dettman7-20/+275
Use Nat*.Copy methods in fields
2014-02-26Add extra arg to AddWord() and add variant of Copy()Peter Dettman2-6/+12
2014-02-26Optimization for custom curve reduction when only a few bits need reducing; ↵Peter Dettman15-30/+205
used to delay reduction in point doubling.
2014-02-26Optimize Sqrt() for custom curve secp224k1Peter Dettman1-2/+87
2014-02-26Refactoring in Sqrt()Peter Dettman1-14/+6
2014-02-26Add custom curve for secp224k1Peter Dettman6-0/+717
2014-02-26Special handling for zero-valued scalarsPeter Dettman1-20/+38
Some optimizations for NAF generation
2014-02-25Update release versionPeter Dettman1-1/+1
2014-02-25Refactoring in Sqrt()Peter Dettman1-13/+12
2014-02-25Add custom curve for secp224r1 (P-224)Peter Dettman7-0/+2028
2014-02-25Add new test to regression testsPeter Dettman1-10/+11
2014-02-25Tabs -> spacesPeter Dettman1-4/+4
2014-02-25Port some openpgp updates from Java build for secret keysPeter Dettman5-206/+436
2014-02-25Check a few more points in the encoding testPeter Dettman1-1/+7
2014-02-25