library: crypto/{sha1, sha256, sha512}

This commit is contained in:
xushiwei
2024-07-31 18:55:46 +08:00
parent 16174ca874
commit 27677f86e4
7 changed files with 63 additions and 34 deletions

View File

@@ -18,6 +18,7 @@ package md5
// llgo:skipall
import (
"crypto"
"hash"
"unsafe"
@@ -25,6 +26,10 @@ import (
"github.com/goplus/llgo/c/openssl"
)
func init() {
crypto.RegisterHash(crypto.MD5, New)
}
// The blocksize of MD5 in bytes.
const BlockSize = 64