summaryrefslogtreecommitdiff
path: root/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'openssl.c')
-rw-r--r--openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openssl.c b/openssl.c
index df2f744..119b56b 100644
--- a/openssl.c
+++ b/openssl.c
@@ -3571,7 +3571,7 @@ static int cipher_init(lua_State *L, _Bool encrypt) {
3571 m = (size_t)EVP_CIPHER_CTX_key_length(ctx); 3571 m = (size_t)EVP_CIPHER_CTX_key_length(ctx);
3572 luaL_argcheck(L, 2, n == m, lua_pushfstring(L, "%u: invalid key length (should be %u)", (unsigned)n, (unsigned)m)); 3572 luaL_argcheck(L, 2, n == m, lua_pushfstring(L, "%u: invalid key length (should be %u)", (unsigned)n, (unsigned)m));
3573 3573
3574 iv = luaL_checklstring(L, 3, &n); 3574 iv = luaL_optlstring(L, 3, NULL, &n);
3575 m = (size_t)EVP_CIPHER_CTX_iv_length(ctx); 3575 m = (size_t)EVP_CIPHER_CTX_iv_length(ctx);
3576 luaL_argcheck(L, 3, n == m, lua_pushfstring(L, "%u: invalid IV length (should be %u)", (unsigned)n, (unsigned)m)); 3576 luaL_argcheck(L, 3, n == m, lua_pushfstring(L, "%u: invalid IV length (should be %u)", (unsigned)n, (unsigned)m));
3577 3577