plan9fox/sys/src/libsec
cinap_lenrek ff47cbd464 libsec: implement server side ECDHE key exchange with secp256r1, move DH state in TlsSec structure, simplify
implement ECDHE key exchange with secp256r1 on the server side, providing
perfect forward secrecy (tho slowly).

it is easier to just keep the ECDH/DH state in the TlsSec structure,
which fits better with the grouping of the functions. we do the cleanup
in tlsConnectionFree() now, so a lot of error handling logic could go
away.

reinvestigated some error paths and removed the ones that cannot error.

move functions to fit the logical grouping.

combine the code for signing handshake hashes (for client certs) and
DH parameters. provide digestDHparams() function to be shared between
server and client code.
2016-04-18 19:24:57 +02:00
..
386
alpha
amd64
arm
mips
port libsec: implement server side ECDHE key exchange with secp256r1, move DH state in TlsSec structure, simplify 2016-04-18 19:24:57 +02:00
power
spim libsec: dont use mips assembly routines for spim, wrong endianess 2016-04-10 20:22:00 +02:00
mkfile libsec: make #include headers consistent 2016-04-10 20:23:18 +02:00