public void Reseed(byte[] additionalInput) { CryptoStatus.IsReady(); lock (this) { block = new byte[0]; nextBlock = new byte[0]; drbg.Reseed(additionalInput); } }
/// <summary> /// Return a message indicating the current status. /// </summary> /// <returns>READY if all is well, an exception message otherwise.</returns> public static string GetStatusMessage() { try { CryptoStatus.IsReady(); } catch (CryptoOperationError) { // ignore as loader exception will now be set. } if (statusException != null) { return(statusException.Message); } return(READY); }