nl_tokens: Returns a key object for an RSA key .
pl_tokens: function _makeRsaKey ( rsaKey ) { var key = { keyhash : _rsaHash ( rsaKey ) , size : rsaKey . n . bitLength ( ) } ; <mask> . encrypt = function ( plaintext ) { // needed to make this work with private keys var tempKey = forge . pki . setRsaPublicKey ( rsaKey . n , rsaKey . e ) ; var ciphertext = tempKey . encrypt ( plaintext , 'RSA-OAEP' ) ; return _packOutput ( key . keyhash , ciphertext ) ; } ; key . verify = function ( message , signature ) { signature = _unpackOutput ( signature ) ; _checkKeyHash ( key . keyhash , signature ) ; var digest = _mdForSignature ( message ) . digest ( ) . getBytes ( ) ; // needed to make this work with private keys var tempKey = forge . pki . setRsaPublicKey ( rsaKey . n , rsaKey . e ) ; return tempKey . verify ( digest , signature . message ) ; } ; return key ; }