Is EVP_CipherFinal required?

Stef Bon <[email protected]> Thu, 28 May 2026 23:33:11 -0700 (PDT)
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <[email protected]>
------=_Part_58936_1112776242.1780036391716
Content-Type: multipart/alternative; 
	boundary="----=_Part_58937_1824125403.1780036391716"

------=_Part_58937_1824125403.1780036391716
Content-Type: text/plain; charset="UTF-8"

Hi,

I'm using openssl for a SSH client and server, using EVP_CIPHER_fetch, 
EVP_CIPHER_CTX, 
and EVP_CipherInit to init,
and EVP_CipherUpdate to encrypt and decrypt. Now the data to de/encrypt 
with SSH is always a multiple of the blocksize (cause the SSH protocol 
takes care of the padding) so is the function EVP_CipherFinal required? 
There are no partial blocks...

Stef

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/17169225-a61f-4b2f-93ec-c62cc3666682n%40openssl.org.

------=_Part_58937_1824125403.1780036391716
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Hi,</div><div><br /></div><div>I'm using openssl for a SSH client and =
server, using EVP_CIPHER_fetch, EVP_CIPHER_CTX,=C2=A0</div><div>and EVP_Cip=
herInit to init,</div><div>and EVP_CipherUpdate to encrypt and decrypt. Now=
 the data to de/encrypt with SSH is always a multiple of the blocksize (cau=
se the SSH protocol takes care of the padding) so is the function EVP_Ciphe=
rFinal required? There are no partial blocks...</div><div><br /></div><div>=
Stef</div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;openssl-users&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:openssl-users+unsubscribe-MCmKBN63+BlAfugRpC6u6w@public.gmane.org">openssl-us=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/a/openss=
l.org/d/msgid/openssl-users/17169225-a61f-4b2f-93ec-c62cc3666682n%40openssl=
.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/a/op=
enssl.org/d/msgid/openssl-users/17169225-a61f-4b2f-93ec-c62cc3666682n%40ope=
nssl.org</a>.<br />

------=_Part_58937_1824125403.1780036391716--

------=_Part_58936_1112776242.1780036391716--