sha256是可以分批处理输入的,满足数据不是一次性处理完的场合
- SHA256_Init(): initializes a SHA_CTX structure.
- SHA256_Update(): can be called repeatedly with chunks of the message to be hashed (len bytes at data).
- SHA256_Final(): places the message digest in md, which must have space for SHA_DIGEST_LENGTH == 20 bytes of output, and erases the SHA_CTX.
SHA256_Update()可以被多次调用,最后通过SHA256_Final()算出最终值;