I am trying to port the hashlib library from python to C#:
shaA = hashlib.sha256()
shaA.update(yy)
shaA.update(xx)
shaB = shaA.copy()
hashA = shaA.digest()
#Hash B
shaB.update(yy)
shaA = shaB.copy()
hashB = shaB.digest()
#Hash C
shaA.update(xx)
hashC = shaA.digest()
My problem is that I dont really know what update() means in terms of SHA256() in .NET, and also the copy (which SHA256 in .NET doesnt support) and digest.
If anyone can help me out with that, i'd be more than grateful!
Thanks