AT command Source is available for using libmDot to derive the values problematically.
https://developer.mbed.org/teams/MultiTech/code/Dot-AT-Firmware/
See the definitions for the AT+NI and AT+NK commands.
What is the use case to want to do this outside of mDot/Conduit?
In most cases the EUI and Key can be used.