• zelig's avatar
    rewrite to comply with latest spec · b855f671
    zelig authored
    - correct sizes for the blocks : sec signature 65, ecies sklen 16, keylength 32
    - added allocation to Xor (should be optimized later)
    - no pubkey reader needed, just do with copy
    - restructuring now into INITIATE, RESPOND, COMPLETE -> newSession initialises the encryption/authentication layer
    - crypto identity can be part of client identity, some initialisation when server created
    b855f671
crypto.go 8.76 KB