diff options
| author | Teddy Wing | 2018-10-23 15:45:01 +0200 |
|---|---|---|
| committer | Teddy Wing | 2018-10-23 15:45:01 +0200 |
| commit | eb970dc9f199acaa003abd517fbdc736563021e8 (patch) | |
| tree | 458f5e79b4a7ce07ff75c68d4e7f9bb1589f5eff /src/errors.rs | |
| parent | c7a4a028cbeda1eb50e71b92b0c725d1d0cb02c9 (diff) | |
| download | dome-key-map-eb970dc9f199acaa003abd517fbdc736563021e8.tar.bz2 | |
decode_datetime(): Fix incorrect encoded & IV string splitting
I was using `rsplitn` to split the encoded value into an encrypted
timestamp and initialisation vector. Originally, I had used `splitn`,
but upon discovering `rsplitn` decided to use that instead to ensure we
captured the initialisation vector first, and that anything else would
be captured to a single string.
Didn't realise, though, that `rsplitn` orders element in reverse order
compared to `splitn`. Correct the capture order.
Diffstat (limited to 'src/errors.rs')
0 files changed, 0 insertions, 0 deletions
