From 9ce462cc5c45cf2281db5fc9f12fcb87c530db35 Mon Sep 17 00:00:00 2001 From: nathan-fourrier <49711871+nathan-fourrier@users.noreply.github.com> Date: Sat, 15 Jul 2023 17:49:09 +0200 Subject: [PATCH] Update google_auth.proto Update from beemdevelopment/Aegis/master/app/src/main/proto/google_auth.proto to handle other algorithm like SHA256 --- src/google_auth.proto | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/google_auth.proto b/src/google_auth.proto index 05248a6..8b2e688 100644 --- a/src/google_auth.proto +++ b/src/google_auth.proto @@ -8,14 +8,23 @@ package googleauth; message MigrationPayload { enum Algorithm { - ALGO_INVALID = 0; - ALGO_SHA1 = 1; + ALGORITHM_UNSPECIFIED = 0; + ALGORITHM_SHA1 = 1; + ALGORITHM_SHA256 = 2; + ALGORITHM_SHA512 = 3; + ALGORITHM_MD5 = 4; + } + + enum DigitCount { + DIGIT_COUNT_UNSPECIFIED = 0; + DIGIT_COUNT_SIX = 1; + DIGIT_COUNT_EIGHT = 2; } enum OtpType { - OTP_INVALID = 0; - OTP_HOTP = 1; - OTP_TOTP = 2; + OTP_TYPE_UNSPECIFIED = 0; + OTP_TYPE_HOTP = 1; + OTP_TYPE_TOTP = 2; } message OtpParameters { @@ -23,7 +32,7 @@ message MigrationPayload { string name = 2; string issuer = 3; Algorithm algorithm = 4; - int32 digits = 5; + DigitCount digits = 5; OtpType type = 6; int64 counter = 7; } @@ -33,4 +42,4 @@ message MigrationPayload { int32 batch_size = 3; int32 batch_index = 4; int32 batch_id = 5; -} \ No newline at end of file +}