> TLS does not use AES in a way that is consistent with what you would get if
> you just used a typical AES library.
Let me agree with Eric: TLS adds things like padding and identifiers that make
it *impossible* to use a TLS library to get AES, unless that library exposes an
AES API.
AES can
On 6/25/23 9:21 AM, Soni L. wrote:
Python doesn't expose raw AES, etc. But it does expose a fairly rich TLS
library.
If you're not comfortable using the Python cryptography hazmat module,
check out pycryptodome.
Melinda
--
Melinda Shore
melinda.sh...@nomountain.net
Software longa, hardware
Pure-python forbids using the cryptography package. Only python code and
the python stdlib are allowed. The fact that TLS uses AES at all means
it might be possible to trick the python ssl module to do arbitrary AES,
with some effort.
At the end of the day, the TLS protocol is also part of
I believe https://cryptography.io/en/latest/ is what you want.
TLS does not use AES in a way that is consistent with what you would get if
you just used a typical AES library.
-Ekr
On Sun, Jun 25, 2023 at 10:21 AM Soni L. wrote:
> Python doesn't expose raw AES, etc. But it does expose a
Python doesn't expose raw AES, etc. But it does expose a fairly rich TLS
library. Wondering if it would be possible to just connect a TLS socket
to a raw TCP socket and somehow write bytes into TLS and get ciphertext
out or write bytes into the raw TCP socket and get plaintext out.
The point
I'm not aware of any. Why would you want to do this? Most such libraries I
am aware of expose low-level primitives or are built on libraries which do.
-Ekr
On Sun, Jun 25, 2023 at 6:28 AM Soni L. wrote:
> Has anyone done any work towards tricking a TLS library into providing
> cryptographic
Has anyone done any work towards tricking a TLS library into providing
cryptographic primitives? We know of similar work with regards to
javacard https://arxiv.org/abs/1810.01662 but not sure if it can be
applied to TLS.
___
TLS mailing list