mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-11 09:40:43 +01:00
38 lines
788 B
Protocol Buffer
38 lines
788 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package app.Protobuf.GoogleAuth;
|
|
|
|
message Payload {
|
|
enum Algorithm {
|
|
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_TYPE_UNSPECIFIED = 0;
|
|
OTP_TYPE_HOTP = 1;
|
|
OTP_TYPE_TOTP = 2;
|
|
}
|
|
message OtpParameters {
|
|
bytes secret = 1;
|
|
string name = 2;
|
|
string issuer = 3;
|
|
Algorithm algorithm = 4;
|
|
DigitCount digits = 5;
|
|
OtpType type = 6;
|
|
int64 counter = 7;
|
|
int64 period = 8;
|
|
}
|
|
repeated OtpParameters otp_parameters = 1;
|
|
int32 version = 2;
|
|
int32 batch_size = 3;
|
|
int32 batch_index = 4;
|
|
int32 batch_id = 5;
|
|
} |