I am currently developing a client-server program, the client in Java/C and server in C. I have to transport cryptographic data(like the client should pass data to Server to encrypt/decrypt, compute digest etc) and the server has to return the result to Client.
In this scenario, I realize the importance of using some transport protocol to identify data and pass data efficiently.
With this regard, my question is: Is ASN.1 a good protocol to use? I know that it is supported by BC(on Java) and OpenSSL on C. So is it a good idea to transport data between the client and server using ASN.1 notation?
Can you also please give me some starting points to this? Also if you have a better idea of an existing protocol please let me know.
Thanks!!