DTLS management using non-blocking architecture

I am trying to add DTLS support on my server, which is currently based on Netty. Netty gives me the ability to add handlers to the pipeline, where packets are processed in a specific order and changed when they need to be changed.

BouncyCastle support for TLS and DTLS is currently limited to using "old" blocking I / O. This makes it difficult (possibly impossible) to use BC with non-blocking NIO infrastructures such as Netty.

Does anyone know of any DTLS implementation that can be used with non-blocking frameworks such as Netty, or a possible workaround for creating regular cryptography libraries that Bouncy Castle works in this situation?

Thanks.

+6
source share
1 answer

There is a pull request for the Bouncy Castle library that implements DTLS using a non-blocking API. You can apply it to the BC source code and create your own version.

+1
source

Source: https://habr.com/ru/post/972315/


All Articles