Re: bits vs bytes

Michael Kjörling <michael-/[email protected]>
Newsgroups gmane.linux.kernel.device-mapper.dm-crypt
Message-ID <ed117975-e332-44b4-9cc8-431f10739146@localhost>
On 30 Mar 2020 20:03 +0000, from [email protected] (JT Morée):
> When I run luksDump i see that multiple locations give sizes in
> 'bits'.  Is that correct?   Normally, we operate in 8 bit => bytes. 
> If I read this correctly then
> 
> 2: luks2 (unbound)
>   Key:        512 bits = 64 bytes

Cryptographic key sizes, hash lengths, block sizes, and similar
quantities are commonly stated in bits, not bytes, especially for
algorithms typically implemented on digital, binary computers (in
either hardware or software).

There's likely a variety of reasons for this; some historical, some
mathematical.

Certainly you can convert the number of bits to a number of bytes by
dividing by 8 _if_ you prefer that for some reason, but a _lot_ more
people will know what you mean if you say, for example, "128-bit AES"
than "16-byte AES". (Never mind "AES-128" versus "AES-16", the latter
of which seems likely to just be confusing.) So for communicating with
others, I _really_ suggest using the more common form.

-- 
Michael Kjörling • https://michael.kjorling.se • [email protected]
 “Remember when, on the Internet, nobody cared that you were a dog?”

_______________________________________________
dm-crypt mailing list
[email protected]
https://www.saout.de/mailman/listinfo/dm-crypt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.