public void Dispose() { Destination = null; MiscFuncs.GetRandomBytes(PrivateKey); MiscFuncs.GetRandomBytes(SigningPrivateKey); PrivateKey = null; SigningPrivateKey = null; }
private void LoadData(Stream inStream) { var converter = new BigEndianBitConverter(); using (var endianReader = new EndianBinaryReader(converter, inStream)) { Destination = new I2PDestination(endianReader); PrivateKey = endianReader.ReadBytesOrThrow(PrivateKeyLength); SigningPrivateKey = endianReader.ReadBytes(8192); //enough i think } }
private void LoadData(Stream inStream) { var converter = new BigEndianBitConverter(); using (var endianReader = new EndianBinaryReader(converter, inStream)) { Destination = new I2PDestination(endianReader); PrivateKey = endianReader.ReadBytesOrThrow(PrivateKeyLength); SigningPrivateKey = endianReader.ReadBytes(8192); //enough i think } }
public static bool IsDestinationStringValid( string destination ) { if (string.IsNullOrWhiteSpace(destination)) { return(false); } try { var dest = new I2PDestination(destination); return(true); } catch (Exception) { return(false); } }
public static bool IsDestinationStringValid( string destination ) { if (string.IsNullOrWhiteSpace(destination)) return false; try { var dest = new I2PDestination(destination); return true; } catch (Exception) { return false; } }
public void Dispose() { Destination = null; MiscFuncs.GetRandomBytes(PrivateKey); MiscFuncs.GetRandomBytes(SigningPrivateKey); PrivateKey = null; SigningPrivateKey = null; }