fix bug with SetPadding and add go.mod

This commit is contained in:
Jeff Wendling 2018-09-05 07:04:03 -06:00
parent 33d609e316
commit 9386dd2f5b
3 changed files with 7 additions and 1 deletions

View File

@ -151,8 +151,9 @@ func (ctx *cipherCtx) IVSize() int {
func (ctx *cipherCtx) SetPadding(pad bool) {
if pad {
C.X_EVP_CIPHER_CTX_set_padding(ctx.ctx, 1)
} else {
C.X_EVP_CIPHER_CTX_set_padding(ctx.ctx, 0)
}
C.X_EVP_CIPHER_CTX_set_padding(ctx.ctx, 0)
}
func (ctx *cipherCtx) setCtrl(code, arg int) error {

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module github.com/spacemonkeygo/openssl
require github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572

2
go.sum Normal file
View File

@ -0,0 +1,2 @@
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572 h1:RC6RW7j+1+HkWaX/Yh71Ee5ZHaHYt7ZP4sQgUrm6cDU=
github.com/spacemonkeygo/spacelog v0.0.0-20180420211403-2296661a0572/go.mod h1:w0SWMsp6j9O/dk4/ZpIhL+3CkG8ofA2vuv7k+ltqUMc=