SHA256 doesn't work with Crypto

Hi guyz , i wante to send data from ESP8266 to a remote server and i tried to hash them with Crypto and SHA256 in Arduino IDE 2.3.5 but no matter how much i try always getting this error saying SHA256 is not declared inside the scope..... then somehow on internet i found that instead of crypto i could use bearssl which also have SHA256 hashing algorithm and it worked just fine..... so i just wanna know is Crypto deprecated ?

Due to an error in your code.

No idea, but why not just fix the simple error in your code?