public byte[] GenerateDerivedKey(byte[] label, byte[] nonce, int derivedKeySize, int position) { if (label == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("label"); } if (nonce == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("nonce"); } ManagedPsha1 dkcp = new ManagedPsha1(key, label, nonce); return dkcp.GetDerivedKey(derivedKeySize, position); }
public byte[] GenerateDerivedKey(byte[] label, byte[] nonce, int derivedKeySize, int position) { if (label == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(label)); } if (nonce == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(nonce)); } ManagedPsha1 dkcp = new ManagedPsha1(_key, label, nonce); return(dkcp.GetDerivedKey(derivedKeySize, position)); }
public byte[] GenerateDerivedKey(byte[] label, byte[] nonce, int derivedKeySize, int position) { if (label == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("label"); } if (nonce == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("nonce"); } ManagedPsha1 psha = new ManagedPsha1(this.key, label, nonce); return(psha.GetDerivedKey(derivedKeySize, position)); }