init: v1.0.0

This commit is contained in:
yaole
2026-05-27 23:03:00 +08:00
commit 8d97f750eb
466 changed files with 80067 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package sm4
// TODO: implemt the 3 funcs in asm_*.s
//should implement in asm, add go:noescape
// xk 轮密钥,指向32个uint32 dst,src分别指向一个分组。
// func encryptBlockAsm(xk *uint32, dst, src *byte) {
func encryptBlockAsm(xk []uint32, dst, src []byte) {
encryptBlockGo(xk, dst, src)
}
//should implement in asm, add go:noescape
// func decryptBlockAsm(xk *uint32, dst, src *byte) {
func decryptBlockAsm(xk []uint32, dst, src []byte) {
decryptBlockGo(xk, dst, src)
}
//should implement in asm, add go:noescape
// func expandKeyAsm(key *byte, enc *uint32, dec *uint32) {
func expandKeyAsm(key []byte, enc, dec []uint32) {
expandKeyGo(key, enc, dec)
}