isaacs
426b4c6258
stream: _write takes an encoding argument
This vastly reduces the overhead of decodeStrings:false streams,
such as net and http.
12 years ago
isaacs
cd68d86c32
stream: Remove output function from _transform
Just use stream.push(outputChunk) instead.
12 years ago
Ben Noordhuis
4231dab39f
crypto: fix base64 padding regression
Commit 9901b69c
introduces a small regression where the trailing base64
padding is no longer written out when Cipher#final is called. Rectify
that.
Fixes #4837 .
12 years ago
isaacs
dd3ebb8cf6
crypto: Streaming interface for Sign and Verify
12 years ago
isaacs
e336134658
crypto: Streaming interface for cipher/decipher/iv
12 years ago
isaacs
175f78c6ba
crypto: Streaming api for Hmac
12 years ago
isaacs
90de2ddb77
crypto: Streaming interface for Hash
12 years ago
isaacs
d7da20c812
crypto: pbkdf2 throws when no callback provided
12 years ago
isaacs
c87b524c5f
crypto: Clean up buffer handling and DH methods
12 years ago
isaacs
76b0bdf720
crypto: Add crypto.DEFAULT_ENCODING (defaults to 'buffer')
This is a flag to make it easier for users to upgrade through the
breaking crypto change, and easier for us to switch it back if it's a
problem.
Explicitly set default encoding to 'buffer' in other tests, in case it
ever changes back.
12 years ago
isaacs
bfb9d5bbe6
crypto: Binding only accepts buffers
12 years ago
isaacs
9901b69c8e
crypto: Move encoding logic to JS, default=buffer
crypto: Hash and Hmac default to buffers
crypto: Move Cipher encoding logic to JS
crypto: Move Cipheriv encoding logic to JS
crypto: Move Decipher encoding logic to JS
crypto: Move Decipheriv into JS, default to buffers
crypto: Move Sign class to JS
crypto: Better encoding handling in Hash.update
crypto: Move Verify class to JS
crypto: Move DiffieHellman to JS, default to buffers
crypto: Move DiffieHellmanGroup to JS, default to buffers
Also, create a test for this feature
12 years ago
Ben Noordhuis
2fbf0612a1
crypto: sort return value of getCiphers/getHashes
12 years ago
Ben Noordhuis
14a6c4efb8
crypto: add crypto.getHashes()
12 years ago
Ben Noordhuis
f53441ab1f
crypto: add crypto.getCiphers()
Returns a list of, unsurprisingly, the available ciphers.
12 years ago
ssuda
fb7348ae06
crypto: add PKCS12/PFX support
Fixes #2845 .
13 years ago
Tomasz Buchert
c6a04ce78f
crypto: add function getDiffieHellman()
Returns a well known, predefined RFC group.
13 years ago
koichik
f53d092a2a
tls, https: add passphrase option
Fixes #1925 .
13 years ago
koichik
19a855382c
tls: requestCert unusable with Firefox and Chrome
Fixes #1516 .
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ben Noordhuis
c4eaf7e5a9
crypto: implement randomBytes() and pseudoRandomBytes()
13 years ago
Glen Low
04122ad2d3
crypto: PBKDF2 function from OpenSSL
13 years ago
koichik
d32971a8cb
Doc improvements and change argument name.
Fixes #1318 .
13 years ago
Brian White
2de0611b43
Remove unused variable
Fixes #1077
14 years ago
Fedor Indutny
21724ecaec
Share SSL context between server connections
Fixes #1073 .
14 years ago
Håvard Stranden
9f0b1a9bc6
Add Diffie-Hellman support to crypto module
Fixes #573
14 years ago
Theo Schlossnagle
d6f5b8a2a6
allow setting of ciphers in credentials
fixes #873
14 years ago
Theo Schlossnagle
2a88dd3bc1
TLS: Add secureOptions flag
Also, secureOptions flag was added (and passed through) and allows
the context to have all supported SSL_OP_* set via createCredentials.
All SSL_OP_ flags (outside of ALL) have been added to constants.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Theo Schlossnagle
01a864a29d
TLS: CRL support
Needs more tests.
14 years ago
Ryan Dahl
e65f6b4ce1
Initial pass at https client
14 years ago
Ryan Dahl
e3d1808ef0
Rename node::SecureStream to node::crypto::Connection
node::SecureStream is definitely not a "stream" in the Node sense. Renaming
it to avoid ambiguity. (Adding namespace to not confuse with some other
Connection object.)
14 years ago
Ryan Dahl
0b0faceb19
Move securepair stuff into tls.js
14 years ago
Ryan Dahl
f22c248e4c
more lint
14 years ago
Ryan Dahl
5dab4be53c
Remove useless shouldVerify assignments
14 years ago
Ryan Dahl
89e398f075
Better array check in Cert Authority list
14 years ago
Ryan Dahl
4b947310b2
Move root certs out of JavaScript
14 years ago
Ryan Dahl
09157369b3
style
14 years ago
Ryan Dahl
bf89872306
style
14 years ago
Paul Querna
1128c0bf67
Add SecurePair for handling of a ssl/tls stream.
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
Joshaven Potter
3d4e4d8909
syntax fixes to pass jslint
14 years ago
Aaron Heckmann
7c5cc57ece
quicker loops
14 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
ed5f4f3a44
RootCaCerts shouldn't be global
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Rhys Jones
afce4c3ae8
Added default CAs, updated openssl verify behaviour, added crypto and https documentation
15 years ago
Rhys Jones
1a317135c5
Additional OpenSSL tests
15 years ago
Rhys Jones
80174392bb
Moved Credentials into crypto module. Added node_crypto into crypto module
15 years ago