async decrypt (passphrase){
    if(!this._isEncrypted) throw new Error('NotEncrypted');
    let jwkey;
    if(this._current.der && typeof passphrase === 'string'){
      jwkey = await toJwkFrom('der', this._der, {passphrase}); // type is not specified here to import jwk
    }
    else throw new Error('FailedToDecrypt');
    this._setJwk(jwkey);

    return true;
  }
/**
   * Decrypted stored key and set the decrypted key in JWK to this instance.
   * @param passphrase {string}
   * @return {Promise<boolean>}
   */
Decrypted stored key and set the decrypted key in JWK to this instance.
@param passphrase {string}
@return {Promise}
Decrypted stored key and set the decrypted key in JWK to this instance . @param passphrase { string } @return { Promise }
async decrypt (passphrase){
    if(!this._isEncrypted) throw new Error('NotEncrypted');
    let jwkey;
    if(this._current.der && typeof passphrase === 'string'){
      jwkey = await toJwkFrom('der', this._der, {passphrase}); 
    }
    else throw new Error('FailedToDecrypt');
    this._setJwk(jwkey);
    return true;
  }
async decrypt ( passphrase ) { if ( ! this . _isEncrypted ) throw new Error ( 'NotEncrypted' ) ; let jwkey ; if ( this . _current . der && typeof passphrase === 'string' ) { jwkey = await toJwkFrom ( 'der' , this . _der , { passphrase } ) ; } else throw new Error ( 'FailedToDecrypt' ) ; this . _setJwk ( jwkey ) ; return true ; }
Decrypted stored key and set the decrypted key in JWK to this instance.
Decrypted stored key and set the decrypted key in JWK to this instance .
// type is not specified here to import jwk