public void PRFn_WithValidInput_ShouldReturnByteArrayWithCorrectLength() { // Arrange and Act byte[] resultBytes = CryptographyWrapper.PRFn(_length, _prfKey, _prefix, _data); // Assert Assert.AreEqual((int)_length, resultBytes.Length); }
public void PRFn_WithValidInput_ShouldReturnCorrectBytes() { // Arrange and Act byte[] resultBytes = CryptographyWrapper.PRFn(_length, _prfKey, _prefix, _data); bool resultIsCorrect = HelperMethods.CompareBuffers(resultBytes, _prf512, (int)_length) == 0; // Assert Assert.IsTrue(resultIsCorrect); }