The cipher subpackage is importing a third party package `github.com/apexskier/cryptoPadding` and uses only this part of it:
https://github.com/apexskier/cryptoPadding/blob/master/pkcs7...
I think it would be a good idea to avoid that otherwise small dependency with some copy-pasta/vendoring.