public void Init(SkeinParameters parameters) { this.chain = null; this.key = null; this.preMessageParameters = null; this.postMessageParameters = null; if (parameters != null) { byte[] array = parameters.GetKey(); if (array.Length < 16) { throw new ArgumentException("Skein key must be at least 128 bits."); } this.InitParams(parameters.GetParameters()); } this.CreateInitialState(); this.UbiInit(48); }
public void Init(SkeinParameters parameters) { //IL_0032: Unknown result type (might be due to invalid IL or missing references) chain = null; key = null; preMessageParameters = null; postMessageParameters = null; if (parameters != null) { byte[] array = parameters.GetKey(); if (array.Length < 16) { throw new ArgumentException("Skein key must be at least 128 bits."); } InitParams(parameters.GetParameters()); } CreateInitialState(); UbiInit(48); }
/// <summary> /// Initialises the Skein engine with the provided parameters. See <see cref="Org.BouncyCastle.Crypto.Parameters.SkeinParameters"/> for /// details on the parameterisation of the Skein hash function. /// </summary> /// <param name="parameters">the parameters to apply to this engine, or <code>null</code> to use no parameters.</param> public void Init(SkeinParameters parameters) { this.chain = null; this.key = null; this.preMessageParameters = null; this.postMessageParameters = null; if (parameters != null) { byte[] key = parameters.GetKey(); if (key.Length < 16) { throw new ArgumentException("Skein key must be at least 128 bits."); } InitParams(parameters.GetParameters()); } CreateInitialState(); // Initialise message block UbiInit(PARAM_TYPE_MESSAGE); }