I’d consider this to be a bug in Sha256 since it only accepts String as input and not raw Bytes.
Sha256
String
Bytes