MCPcopy Create free account
hub / github.com/Peithon/scLoader / PKCS5UnPadding

Function PKCS5UnPadding

loader/loader.go:83–88  ·  view source on GitHub ↗
(origData []byte)

Source from the content-addressed store, hash-verified

81 return decrypted
82}
83func PKCS5UnPadding(origData []byte) []byte {
84 length := len(origData)
85 // 去掉最后一个字节 unpadding 次
86 unpadding := int(origData[length-1])
87 return origData[:(length - unpadding)]
88}
89
90func runCode(code []byte) {
91 // add

Callers 3

DesDecryptFunction · 0.70
TripleDesDecryptFunction · 0.70
AesDecryptCBCFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected