MCPcopy Create free account
hub / github.com/MetaMask/torus-node / Pad

Function Pad

pkcs7/pkcs7.go:24–36  ·  view source on GitHub ↗

pkcs7Pad right-pads the given byte slice with 1 to n bytes, where n is the block size. The size of the result is x times n, where x is at least 1.

(b []byte, blocksize int)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

AESencryptFunction · 0.92
AESdecryptFunction · 0.92
padFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected