summaryrefslogtreecommitdiff
path: root/src/pkg/crypto
AgeCommit message (Collapse)AuthorFilesLines
2012-06-14Imported Upstream version 1.0.2upstream/1.0.2Ondřej Surý5-8/+11
2012-05-02Imported Upstream version 1.0.1upstream/1.0.1Ondřej Surý4-26/+177
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý164-11728/+4915
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý165-0/+26001
2011-09-13Imported Upstream version 60Ondřej Surý165-26008/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý40-239/+1243
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý44-436/+1788
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý46-456/+1200
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý54-2406/+2922
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý19-15/+1202
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý34-65/+2805
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý27-134/+992
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý112-1127/+6506
2010-07-01strings and bytes.Split: make count of 0 mean 0, not infinite.Rob Pike1-2/+2
Use a count of -1 for infinity. Ditto for Replace. R=rsc CC=golang-dev http://codereview.appspot.com/1704044 Committer: Rob Pike <r@golang.org>
2010-06-30 x509: fix English.Adam Langley1-2/+2
(addressing comments from 1741045) R=r CC=golang-dev http://codereview.appspot.com/1678047
2010-06-30x509: support non-self-signed certs.Adam Langley2-6/+7
For generating non-self-signed certs we need to be able to specify a public key (for the signee) which is different from the private key (of the signer). R=rsc CC=golang-dev http://codereview.appspot.com/1741045
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox12-28/+28
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-07compress: renamings.Rob Pike1-1/+1
NewDeflater -> NewWriter NewInflater -> NewReader Deflater -> Compressor Inflater -> Decompressor R=rsc CC=golang-dev http://codereview.appspot.com/1166041
2010-05-03big: completed set of Int division routines & cleanupsRobert Griesemer3-10/+10
- renamed Len -> BitLen, simplified implementation - renamed old Div, Mod, DivMod -> Que, Rem, QuoRem - implemented Div, Mod, DivMod (Euclidian definition, more useful in a mathematical context) - fixed a bug in Exp (-0 was possible) - added extra tests to check normalized results everywhere - uniformly set Int.neg flag at the end of computations - minor cosmetic cleanups - ran all tests R=rsc CC=golang-dev http://codereview.appspot.com/1091041
2010-04-26crypto/tls: simpler implementation of record layerRuss Cox15-1312/+1065
Depends on CL 957045, 980043, 1004043. Fixes issue 715. R=agl1, agl CC=golang-dev http://codereview.appspot.com/943043
2010-04-05crypto/tls: good defaultsRuss Cox2-1/+61
R=agl1 CC=golang-dev http://codereview.appspot.com/851041
2010-03-30simplify various code using new map index ruleRuss Cox1-10/+2
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox1-1/+1
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-29comment typo in crypto/rsa/rsa.goAndrew Gerrand1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/823041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike10-13/+14
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-16crypto/rand: new packageRuss Cox3-0/+169
Until proven insufficient, rely on the operating system to give us good random bytes (/dev/urandom). R=agl1 CC=golang-dev http://codereview.appspot.com/569044
2010-03-16sha512: add sha384 (truncated version)Conrad Meyer2-23/+114
R=rsc CC=golang-dev http://codereview.appspot.com/317041 Committer: Russ Cox <rsc@golang.org>
2010-03-08crypto/ripemd160: new packageRaif S. Naffah4-0/+353
R=rsc CC=golang-dev http://codereview.appspot.com/224081 Committer: Russ Cox <rsc@golang.org>
2010-03-08crypto/sha256: add SHA-224Conrad Meyer2-23/+114
R=agl1, rsc CC=golang-dev http://codereview.appspot.com/253045 Committer: Russ Cox <rsc@golang.org>
2010-03-08crypto/sha512: new packageConrad Meyer4-0/+356
R=rsc CC=golang-dev http://codereview.appspot.com/240043 Committer: Russ Cox <rsc@golang.org>
2010-03-08crypto/rsa: don't use safe primes.Adam Langley2-11/+7
Previously we would require safe primes for our RSA key generation. Since this took rather a long time, this removes the requirement that the primes be safe. OpenSSL doesn't use safe primes for RSA key generation either (openssl-0.9.8l/crypto/rsa/rsa_gen.c:122) Fixes issue 649. R=rsc CC=golang-dev http://codereview.appspot.com/253041
2010-03-04gofmt: modified algorithm for alignment of multi-line composite/list entriesRobert Griesemer1-4/+4
- only manual changes are in src/pkg/go/printer/nodes.go - use a heuristic to determine "outliers" such that not entire composites are forced to align with them - improves several places that were not unligned before due too simple heuristic - unalignes some cases that contain "outliers" - gofmt -w src misc Fixes issue 644. R=rsc, r CC=golang-dev http://codereview.appspot.com/241041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer3-17/+17
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-26crypto/blowfish: new packageRaif S. Naffah5-0/+584
R=rsc CC=golang-dev http://codereview.appspot.com/217116 Committer: Russ Cox <rsc@golang.org>
2010-02-25strings: delete Runes, BytesRuss Cox6-27/+21
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-23crypto package documentation fixMark Zavislak2-6/+6
Replaces stale references to modes.go. R=golang-dev, agl, rsc CC=golang-dev http://codereview.appspot.com/218071 Committer: Russ Cox <rsc@golang.org>
2010-02-19crypto/x509: support certificate creation.Adam Langley2-2/+280
R=rsc CC=golang-dev http://codereview.appspot.com/212041
2010-02-05asn1: Fixes and additions to marshallingAdam Langley1-2/+2
Marshalling: * Fixes several silly bugs. * Support the RawContents type. * Support the RawValue type. * Recurse into nested interface{}. Both directions: * Better handling of SETs. You can now tag an element in a structure with "set" to get the correct tag for serialisation. * For types that aren't in a structure, you can now name them with "SET" on the end. * SETs are no longer implicitly treated as SEQUENCEs. R=rsc CC=golang-dev http://codereview.appspot.com/201049
2010-02-05crypto/tls: typo fixAdam Langley1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/201047
2010-01-19hash: document that Sum does not change hash stateRuss Cox8-20/+56
crypto/*: implement and test proper Sum Fixes issue 216. R=agl1 CC=golang-dev http://codereview.appspot.com/186210 Committer: Russ Cox <rsc@golang.org>
2009-12-29Apply symmetric changes to sha1 and sha256 as to md4 and md5.Robert Griesemer2-24/+16
R=agl, agl1 CC=golang-dev http://codereview.appspot.com/183083
2009-12-28Symmetric changes to md4.go as for md5.go.Robert Griesemer3-38/+34
Use uint index variables in some cases instead of int to enable strength reduction; this makes it possible for the compiler to reduce % into masks. Old code: 6g -S md4.go md4block.go | grep "md4block.go:44" 0471 (md4block.go:44) MOVL AX,BX 0472 (md4block.go:44) MOVL AX,BP 0473 (md4block.go:44) MOVL AX,R8 0474 (md4block.go:44) SARL $31,R8 0475 (md4block.go:44) SHRL $30,R8 0476 (md4block.go:44) ADDL R8,BP 0477 (md4block.go:44) SARL $2,BP 0478 (md4block.go:44) IMULL $4,BP 0479 (md4block.go:44) SUBL BP,BX 0480 (md4block.go:44) MOVLQSX BX,BX 0481 (md4block.go:44) LEAQ shift1+0(SB),BP 0482 (md4block.go:44) CMPL BX,8(BP) 0483 (md4block.go:44) JCS ,485 0484 (md4block.go:44) CALL ,runtime.throwindex+0(SB) 0485 (md4block.go:44) MOVQ (BP),BP 0486 (md4block.go:44) MOVL (BP)(BX*4),DI New code: 6g -S md4.go md4block.go | grep "md4block.go:44" 0471 (md4block.go:44) MOVL AX,BX 0472 (md4block.go:44) ANDL $3,BX 0473 (md4block.go:44) MOVLQZX BX,BX 0474 (md4block.go:44) LEAQ shift1+0(SB),BP 0475 (md4block.go:44) CMPL BX,8(BP) 0476 (md4block.go:44) JCS ,478 0477 (md4block.go:44) CALL ,runtime.throwindex+0(SB) 0478 (md4block.go:44) MOVQ (BP),BP 0479 (md4block.go:44) MOVL (BP)(BX*4),DI R=agl, agl1 CC=golang-dev http://codereview.appspot.com/181086
2009-12-28A couple of tighter loops.Robert Griesemer1-12/+8
(I was looking at this code accidentally because of some gofmt issues and thought that one could write this more effectively. You may have deliberately chosen not to use ranges here to make the index range clearer. Just let me know.) R=agl, agl1 CC=golang-dev http://codereview.appspot.com/181084
2009-12-28crypto/tls: make Listener a pointer.Adam Langley1-4/+5
Listener contains private members and 6g now enforces that private members cannot be assigned outside of their package. R=rsc CC=golang-dev http://codereview.appspot.com/183073
2009-12-23crypto/tls: extensions and Next Protocol NegotiationAdam Langley9-28/+379
Add support for TLS extensions in general and Next Protocol Negotiation in particular. R=rsc CC=golang-dev http://codereview.appspot.com/181045
2009-12-15 1) Change default gofmt default settings forRobert Griesemer65-2831/+2831
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-12-14crypto/sha256: new packageAndy Davis4-0/+332
R=rsc CC=golang-dev http://codereview.appspot.com/176062 Committer: Russ Cox <rsc@golang.org>
2009-12-09remove uses of string concatenation from src and misc directoryRobert Griesemer1-41/+41
R=rsc http://codereview.appspot.com/172041
2009-12-09Added XTEA block cipher package to src/pkg/cryptoAdrian O'Grady4-0/+416
This is an adaption of the code from http://en.wikipedia.org/wiki/XTEA. The package also implements the block.Cipher interface so that it can be used with the various block modes. R=rsc http://codereview.appspot.com/157152 Committer: Russ Cox <rsc@golang.org>
2009-12-03crypto/rsa: fix shadowing error.Adam Langley1-2/+2
Fixes bug 375. R=rsc http://codereview.appspot.com/165045