top | item 47010419

(no title)

AtlasBarfed | 16 days ago

Do you want garbage collection in your SSL?

discuss

order

jezek2|15 days ago

Clearing of the secrets is a separate issue from memory allocation mechanism. It must be done all the way from the encryption layer to the program to avoid the leaks.

This is typically not done, only certain parts such as handling of the crypto keys. That's because it's pervasive and requires reworking everything with that in mind (TLS library, web framework, application).

On the other hand the centralization and global usage of GC in the process allows to modify it to always zero out the memory that it deallocated and to do GC at regular intervals so it can have advantage here (it's very easy to inadvertly leak the secrets to some string).

KingOfCoders|16 days ago

Where do you see the problems? Because of memory that was not cleaned up and leaks secrets?

There the new runtime/secret could help.

rurban|16 days ago

Better than no memory safety, sure. Also a kernel should be memory safe, so garbage collected.

codys|15 days ago

Garbage collection is not required for memory safety.

Languages that have garbage collection are not all memory safe.