Search code examples
cryptographyencryptionopensshencryption-symmetric

Where does openssh decrypt and react to received packets?


I am trying to add a second layer of encryption (encrypted on the client side, and decrypted on the server side).

EDIT: I apologize if I wasn't clear. I was looking for the function in the OpenSSH source in C where the ssh connection on the server side responds to activity from the client side. I did end up finding what I was looking for...


Solution

  • Found it! It is in the file channels.c and in the function void channel_input_data(int type, u_int32_t seq, void *ctxt).