3DS crypto library