diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-07 10:26:00 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-07 10:26:00 -0900 |
| commit | d568782fcafcd9d88e7e66c6fd68a22ca99d76b8 (patch) | |
| tree | 7d7c23eb189d1affb7418d6ccd4b0409bef04362 | |
| parent | cc4eae02c768fce17f697532c54e20a1e269eb8b (diff) | |
| download | otputils-d568782fcafcd9d88e7e66c6fd68a22ca99d76b8.tar.gz otputils-d568782fcafcd9d88e7e66c6fd68a22ca99d76b8.tar.bz2 otputils-d568782fcafcd9d88e7e66c6fd68a22ca99d76b8.tar.xz otputils-d568782fcafcd9d88e7e66c6fd68a22ca99d76b8.zip | |
libotputil: making struct _otputil_secret smaller
| -rw-r--r-- | lib/libotputil/libotputil.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libotputil/libotputil.h b/lib/libotputil/libotputil.h index 5072ddf..16cc6d5 100644 --- a/lib/libotputil/libotputil.h +++ b/lib/libotputil/libotputil.h | |||
| @@ -71,17 +71,17 @@ | |||
| 71 | // k:c:0:hmac:desc | 71 | // k:c:0:hmac:desc |
| 72 | struct _otputil_secret | 72 | struct _otputil_secret |
| 73 | { | 73 | { |
| 74 | int32_t otp_method; | ||
| 75 | int8_t hotp_digits; | ||
| 76 | int8_t hotp_hmac; | ||
| 77 | int8_t totp_digits; | ||
| 78 | int8_t totp_hmac; | ||
| 74 | char * otp_desc; // description of secret | 79 | char * otp_desc; // description of secret |
| 75 | otputil_bv_t * hotp_k; | 80 | otputil_bv_t * hotp_k; |
| 76 | uint64_t hotp_c; | 81 | uint64_t hotp_c; |
| 77 | uint64_t hotp_digits; | ||
| 78 | uint64_t hotp_hmac; | ||
| 79 | uint64_t otp_method; | ||
| 80 | uint64_t totp_time; // current Unix time | 82 | uint64_t totp_time; // current Unix time |
| 81 | uint64_t totp_t0; // Unix time from which to start counting time steps | 83 | uint64_t totp_t0; // Unix time from which to start counting time steps |
| 82 | uint64_t totp_tx; // step in seconds | 84 | uint64_t totp_tx; // step in seconds |
| 83 | uint64_t totp_digits; | ||
| 84 | uint64_t totp_hmac; | ||
| 85 | }; | 85 | }; |
| 86 | 86 | ||
| 87 | 87 | ||
