Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
ytret's comments
login
ytret
on Dec 16, 2023
|
parent
|
context
|
next
[–]
| on:
What is the point of a public key fingerprint?
I think one can verify the fingerprint by other means, e.g. phone
ytret
on June 24, 2023
|
parent
|
context
|
prev
[–]
| on:
Finally getting two's complement
Another way to understand what e.g. 0xFE means as a signed integer is to just add a number until it equals 0. So, 0xFE + 1 = 0xFF, not zero. 0xFE + 2 = 0. Therefore, 0xFE is -2.
amelius
on June 24, 2023
|
parent
|
next
[–]
Yes and the formula to negate x can be simplified to:
0x100 - x
dropping the 9th bit (assuming 8 bit)
Solvency
on June 24, 2023
|
parent
|
prev
[–]
Uh, it's simpler than that. 0x0 is 0. 0xFF is -1. What more is there to "understand".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: