fix windows compile bug

This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2020-07-07 20:37:04 +08:00
parent 11904c08f9
commit 3273d62811
2 changed files with 7 additions and 10 deletions
+6
View File
@@ -175,3 +175,9 @@ func paddingZero(s []byte, l int) []byte {
return s
}
}
func PKCS5UnPadding(src []byte) []byte {
length := len(src)
unpadding := int(src[length-1])
return src[:(length - unpadding)]
}