Devessier / ssl

Clone of openssl in C for 42 School
GNU General Public License v3.0
0 stars 0 forks source link

Read file descriptor efficiently #2

Closed Devessier closed 3 years ago

Devessier commented 3 years ago

We must have a flexible method to read.

Firstly, we will have to read from STDIN or from a regular file. Secondly, cryptographic algorithms don't all use a buffer of the same size to compute operations.

That is, we must:

Devessier commented 3 years ago

When STDIN read mode is activated, we must start a loop that reads until the end.

Ctrl + D breaks the reading and launches command evaluation. It only does that only when there is no previous character on the line. (Probably does that automatically breaks STDIN?) We must test how things work.