[.NET 4.0] System.Numerics.BigInteger and SRP 6 menu

User Tag List

Results 1 to 3 of 3
  1. #1
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [.NET 4.0] System.Numerics.BigInteger and SRP 6

    Has anyone managed to make this class work with WoW's SRP implementation?

    [.NET 4.0] System.Numerics.BigInteger and SRP 6
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Just add one byte 0x00 at the end of source byte array (if you creating instances of this class from byte array ofc) and it should work fine. Something like that:
    Code:
    using System.Linq;
    using System.Numerics;
    
    BigInteger _bn;
    var newdata = new byte[0]
        .Concat(source)
        .Concat(new byte[] { 0 })
        .ToArray();
    
    _bn = new BigInteger(newdata);

  3. #3
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, and after that, I can just do operations on it without "patching" the array anymore?

    Also, what if I'm parsing a string? Any precautions there?
    Last edited by XTZGZoReX; 12-11-2010 at 11:56 PM.

Similar Threads

  1. [Selling] Battle.net acc, 85 pala, 84 shaman and more!
    By fbn231 in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 01-02-2011, 09:07 AM
  2. [Selling] [EU] Fresh B.Net Account with Cata Digital Upgrade and 1 Toon
    By Meursault in forum World of Warcraft Buy Sell Trade
    Replies: 7
    Last Post: 12-17-2010, 06:21 AM
  3. [Selling] [EU] Fresh B.Net Account with Cata Digital Upgrade and 1 Toon
    By Meursault in forum Members Only Accounts And CD Keys Buy Sell
    Replies: 0
    Last Post: 12-03-2010, 10:54 AM
  4. Replies: 6
    Last Post: 08-04-2009, 11:08 AM
All times are GMT -5. The time now is 02:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search