Oops - fix addr instead of unsafeAddr anachronism.

This commit is contained in:
Charles Blake 2023-05-16 14:04:06 -04:00
parent f8649cff63
commit d3f052f7c1
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -100,4 +100,5 @@ proc sha256_64Bs(o: pua Digest, i: pua Block64, bN: int) =
proc sha256_64Bs*(o: var seq[Digest], i: openArray[Block64]) =
## A high level batch interface to SHA256 hashing of `bN` 64 Byte blocks.
o.setLen i.len
sha256_64Bs cast[pua Digest](o[0].addr), cast[pua Block64](i[0].addr), i.len
sha256_64Bs cast[pua Digest](o[0].addr), cast[pua Block64](i[0].unsafeAddr),
i.len