2,373 karma · joined Aug 2, 2012 (14y ago) · 1,086 submissions
comment 3y ago · link · parent
1. They're already in the car. So how you authenticate the ECU and door modules to each other is really irrelevant. They bypassed that already.
2. They can just go ahead and replace the ECU and all the door modules with their own. So, again, how auth works doesn't matter.
3. At some point, you have to ask: Am I replacing the electronics in the car, or am I replacing swapping all the non-electrical parts from one car to another?
comment 3y ago · link · parent
Erm... using the LSB of a network RX timer is common way to add entropy (and perfectly feasible here). You could also use the LSB of the +voltage rail sense or the thermometer that probably exists on your MCU.
comment 3y ago · link · parent
Just use a simple rolling code, like a garage door opener, HOTP, or the key fob itself, and enforce a rate limit for bad codes. 3 bytes can hold 6 packed digits, which is plenty.
The threat model here is that the thief walks up to your car and tries to broadcast messages to the door controller. If they can't observe prior messages to the controller, the chance that they will correctly guess the next code is, literally, 1 in a million.
Let the door controller start rate limiting (ignoring messages) after 10 bad attempts, and then only listen to one code per second. The thief will have to stand here for a week for a 50% chance of correctly guessing a 6 digit code.
comment 3y ago · link · parent
Each device that needs to sign messages (which probably should be only the ECU) is provisioned with a certificate signed by the carmaker. The device is also provisioned with a public-key pair, which is signed by the certificate (so you have chain of trust back to the manufacturer). The public key pair could be either programmed when the firmware is first flashed or generated at first boot.
A new door BCM accepts the first broadcasted public key from the ECU which is correctly signed. This would happen inside the factory for a new car, or when a new BCM is installed to replace a faulty one.
A used door BCM from a junk yard car could be programmed to accept a different (signed) public key by:
1. Being in the unlocked (and perhaps window-down) state; and 2. Pressing some combination of door buttons; and 3. Sending an appropriate command over the CANbus
It, of course, then verifies that the new key is correctly signed and reprograms itself to the new key.
comment 3y ago · link · parent
Differential GPS, by contrast, transmits the difference between the surveyed location of a base station and the GPS-derived position of the same station. That offset can be used locally to correct other nearby GPS receivers.
Phones also use trilateration on the cell tower signals to get an approximate solution before trying to solve 3d+time on the GPS signal.
comment 3y ago · link · parent
Indeed, if we assume that the each launch is an IID binomial coin flip (which isn’t really the right way to evaluate right-censored data), and observe (by reading Wikipedia) that SpaceX has had at least 450 successful Falcon 9 launches since the last in-flight failure, then they have at least five nines of reliability:
0.999995^450 ~= 449/450.
Which appears to be an industry-leading stat.
For context (excluding the Columbia re-entry failure), the space shuttle only had 4 nines:
0.99994^125 ~= 124/125
comment 3y ago · link · parent
The standard actually anticipates you might want to do that, so the token’s manufacturer can sign the token so that a relying party can whitelist (or, presumably, blacklist) certain tokens.
comment 3y ago · link · parent
Can’t work with FIDO/U2F, I’m afraid.
The protocol works a little differently than most people expect, which is what allows the hardware token to “store” an unlimited number of auth credentials.
What really happens at auth time is that the server (the one you are trying to authenticate to) sends a crypto package including the challenge and a key used to sign the challenge to the token. (That signing key was generated at enrollment time and encrypted using the token’s private key). The token then uses its internal private key to decrypt the signing key sent by the server, sign the challenge and send back the signed challenge.
So there is no way to transfer credentials because the credentials literally aren’t in the token (they’re stored—in encrypted form—on the servers you log in to). The only way that transfer could maybe work is by copying the token’s private key… but that kind of defeats the purpose of a security token.
comment 3y ago · link · parent
Less than 10% of Americans had a 4 year degree at the end of WWII, and less than 50% of adults had a high school education. In the kingdom of the blind, the one eyed man in king, and all that.
Compare that to today, where over 35% have a bachelors (over 50% have “some college”), over 90% have a high school diploma, and nearly 10% have a PhD.
comment 3y ago · link · parent
I think that’s not wrong, but one of Southwest’s efficiencies is that they only operate one “type” (term of art) of airplane. So theoretically any crew can operate any airplane.
So, in theory, it doesn’t matter which crew is at the airport as long as they meet the rest requirements. You could just use the greedy algorithm and assign the first available crew in the queue to the next flight at each airport. And, since you need a crew to get the airplane to the airport, there are usually crews in the same places as airplanes. (But you have to know that an available crew exists at that airport to do this)
Where that breaks down a bit (and where you need a smart algorithm or more compute) is that you can end up with crews at an airport, but the crews are all timed out. So while the airplanes are mostly fungible, the crews are mostly not.
The complexity is really filling all the planes for the next-n rounds of flights with crews such that none of the crews times out up to your time horizon. But that only works if you know where all the crews and planes are (and how much time each crew has left)
Also, keeping a backup crew at each airport isn’t super expensive because crews are only paid for the time they are operating the airplane while the doors are shut.
comment 3y ago · link · parent
Commoditize your complements: If you sell VMS software, it stands to reason you would like there to be people who know how to use it. Even better if you don’t have to pay the train them.
Tons of people know how to use Linux because you can just download a distro and start using it… It’s the same reason MS and Cisco have all those certificate programs.
I never understood why IBM didn’t make a hobbyist version of their mainframe OSes for Hercules.
comment 3y ago · link · parent
Interestingly: I have heard that, for loans on commercial real estate, having vacant space with a high rent is better for the landlord than having a paying tenant and lower rent. Specifically, that banks:
1. Often allow the landlord to defer a fraction of the mortgage payment (proportional to vacant space) to the end of the loan
2. Often require an additional payment (to reduce the LTV) if the average rent of non-vacant units falls below the level when the loan was originated.
So, landlords keep the space vacant because a) they can; and b) reducing rent means they have to pay the bank extra money they may not have.
comment 3y ago · link · parent
Partially disagree.
Maybe I'm not representative, but most of my family's driving is specifically _commuting_. All other weekly errands add up to less than one day of commute driving. Actually, less than one way of one day of commuting.
Unless you compare a "fully rural" drive-60-miles-to-get-groceries lifestyle to basically a "downtown manhattan" walk-to-the-office one, I'm skeptical that total car-miles will increase when transitioning from WFO to WFH.
Most "completely non-walkable" suburbs will still have a grocery store within a few miles, usually in a so-called super center with a bunch of other stores. I don't have data to back this up (other than talking with coworkers), but my sense is that people who talk about transitioning to a "rural" WFH really mean "move to a small town" or "move to the outskirts of an exurb".
So, even if they become completely car dependent, they're still reducing from 50 commuting miles per day to 2-3 "errands" miles.
comment 3y ago · link · parent
It was a design issue, which many people like to blame on the pilot because they don't know any better.
The problem was that the rate-of-change of control-force per rudder angle is/was negative for that particular Airbus model... which is generally known to lead to PIO (pilot induced oscillations). When I say generally known, I mean it has been documented since at least as early as pre-WWII NACA (the precursor to NASA) studies.
In fact, that's what led to the installation of MCAS on 737 Max's: The FAA requires that, for the elevator (but not rudder), the control force should increase as deflection increases. So Boeing tried to simulate that behavior with elevator trim + software.
In other words, MCAS was a bad, hacky "solution" to a problem very similar to what happened on AA587 (but for pitch instead of yaw).
> On the other hand I’ve seen a B-52 lose just about the entirety of its vertical stabilizer and it didn’t seem to care at all; landed safely.
Yea, but a B-52 probably has more elevator authority than most commercial airliners (both because it is meant to go supersonic and need to deal with Mach tuck and because B-52 is expected to shed some "payload" while airborne). The problem is that the vertical stabilizer weighs a ton and is waaaay out at the end of the fuselage, so it really throws off your weight and balance if it falls off.
comment 3y ago · link · parent
Right and right.
And, you’d normally want that to be a contiguous 100 MHz band of frequencies (you could in principle have multiple discontiguous bands that add up to 100 MHz if they are spaced right (they don’t fold down to the same base frequencies), but that would be quite an unusual application).
comment 3y ago · link · parent
Apple could ship cheaper memory modules with the same stupid-wide bus and achieve nearly the same performance for a fraction of the cost.
And that’s what I want. Give me 4x as much DDR4 on the same 1024 bit wide bus, and I’d be happy.
comment 3y ago · link · parent
Meanwhile, for actual real-world workloads, not spilling to swap (because you have enough memory) will result in real-world performance that is many times (even an order of magnitude) better. Even with Apples blazing fast SSDs.
Oh, and you can also spec a cheaper SSD because you don’t need one that can take a bajillion writes (because you aren’t treating your SSD as memory). AND the cheaper SSD will last longer too.
In short, Apple could spec cheaper components AND get better real world performance by simply shipping computers that have enough memory.
Edit: also 3% comes from shipping the absolute fasted DDR5 modules vs the second fasted DDR5.
comment 3y ago · link · parent
You can think of it as multiplying the original signal by a comb (in the time domain) of delta functions, which folds everything (in the frequency domain) back into the nyquist frequency of your ADC. Each delta function corresponds to one sample. If your original signal was truly band-limited to 100MHz, then what comes out is a replica of the band limited signal.
One catch (which is actually fairly easy to do in practice) is that the sampling window needs to correspond to around 1/f of the carrier frequency. This is what YakBizzaro is talking about (ADC analog bandwidth) in their sibling post.
comment 3y ago · link · parent
In California, especially Southern California, many homes still have wall-mounted natural-convention gas heaters. Mainly because natural gas is plentiful (LA is basically sitting on top of an oil and gas reservoir) and heating isn't needed much of the year. Often they are placed in/on a wall between the two largest rooms, so that both are heated.
The technology is actually pretty neat: A thermopile sits in the pilot light's flame, which provides electricity to hold open the main shutoff solenoid valve and run a thermostat, so it needs no external electricity.