You might will be interest to read this RFC if you need to develop applications that need to handle encryption.
for an example if you have a legacy system (e.g. MF) and you need to write your own low level procedures to handle encryption then
this RFC is for you.(RFC2527)