Crypto Wrapper merge requestshttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests2022-06-07T15:11:18+02:00https://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/6Fix Turris 1.x detection2022-06-07T15:11:18+02:00Josef SchlehoferFix Turris 1.x detectionThis fixes behavior when command hw-type failed to detect which model
are Turris 1.x routers.
Before:
```
root@turris:~# crypto-wrapper hw-type
crypto-wrapper: error: Unknown device model: 'Turris 1.x'
```
After:
```
root@turris:~# cry...This fixes behavior when command hw-type failed to detect which model
are Turris 1.x routers.
Before:
```
root@turris:~# crypto-wrapper hw-type
crypto-wrapper: error: Unknown device model: 'Turris 1.x'
```
After:
```
root@turris:~# crypto-wrapper hw-type
atsha
```
The model is taken from /tmp/sysinfo/model (row 15), this returns:
```
root@turris:~# cat /tmp/sysinfo/model
Turris 1.x
```
____
Please check this on HBK branch, I encountered it on HBL branch.Turris OS 6.0Lukas JelinekLukas Jelinekhttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/5Fix atsha file signing2019-03-18T12:48:19+01:00Vojtech MyslivecFix atsha file signingCloses #3Closes #3Turris OS 4.0Vojtech MyslivecVojtech Myslivechttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/4Add HW type support2019-02-26T15:47:03+01:00Vojtech MyslivecAdd HW type supportSupport query the hardware type
Closes #2Support query the hardware type
Closes #2Turris OS 4.0Vojtech MyslivecVojtech Myslivechttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/3MAC address support2019-02-26T15:47:03+01:00Vojtech MyslivecMAC address support- Add MAC address query wrapper
- Improve script security- Add MAC address query wrapper
- Improve script securityTurris OS 4.0Vojtech MyslivecVojtech Myslivechttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/2Initial implementation2019-02-11T16:41:25+01:00Vojtech MyslivecInitial implementationInitial implementation includes
- Caching output of commands
- Turris 1.x, Omnia, and MOX device recognition
- Wrapper functions of `atsha204cmd` and `mox-otp`
- Support for `serial-number`, `sign` and `sign-hash` functions
Closes...Initial implementation includes
- Caching output of commands
- Turris 1.x, Omnia, and MOX device recognition
- Wrapper functions of `atsha204cmd` and `mox-otp`
- Support for `serial-number`, `sign` and `sign-hash` functions
Closes #1
Turris OS 4.0Vojtech MyslivecVojtech Myslivechttps://gitlab.nic.cz/turris/crypto-wrapper/-/merge_requests/1Prvni implementace mox-otp nastroje2019-02-12T03:41:15+01:00Vojtech MyslivecPrvni implementace mox-otp nastrojeJedna se o `atsha204cmd`-like nastroj pro MOXe
- Muze se to jmenovat jinak a melo by to mit vlastni repozitar (prozatim je to zde)
- "Prvni", jelikoz tu Markovu povazuji spis za PoC
- Potrebuju to proto, abych mohl vubec psat ten crypto...Jedna se o `atsha204cmd`-like nastroj pro MOXe
- Muze se to jmenovat jinak a melo by to mit vlastni repozitar (prozatim je to zde)
- "Prvni", jelikoz tu Markovu povazuji spis za PoC
- Potrebuju to proto, abych mohl vubec psat ten crypto wrapper
- Udelal jsem podobny feature set, jako ma `atsha204cmd` (snad i vhodnejsi pouziti, ale omezeny)
- Prosim o review – je to python3 a pobezi to na routeru
To Do
- [x] Licence
- [x] Hlavicka
- [x] Usage
- [x] Release/version
Ke zvazeni
- [x] Chybove hlasky/kody pomoci vyjimek
- [x] Vylepsit cteni ze souboru (`readlines()`, `read(MAX_LENGTH)` apod.)Vojtech MyslivecVojtech Myslivec