Square Open-Sources Golang Crypto Package Based on JWE/JWS
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.
If anyone was could publish a Golang crypto library I'd be inclined to trust, it'd be Square, but I think you should probably avoid JOSE.