Louis Collard | 2bf4319 | 2019-04-03 17:09:47 +0800 | [diff] [blame] | 1 | // Copyright 2019 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | syntax = "proto3"; |
| 6 | option optimize_for = LITE_RUNTIME; |
| 7 | |
| 8 | package u2f; |
| 9 | |
| 10 | // Contains the user secret used in key derivation. |
| 11 | message UserSecret { |
| 12 | bytes secret = 1; |
| 13 | } |
| 14 | |
| 15 | // Represents the U2F device counter. |
| 16 | message U2fCounter { |
| 17 | int64 counter = 1; |
| 18 | } |
| 19 | |
| 20 | // Wrapper message for a proto, and a hash to verify integrity. |
| 21 | message UserDataContainer { |
| 22 | // Contains an encoded proto. |
| 23 | bytes data = 1; |
| 24 | // Hash of the encoded proto. |
| 25 | bytes sha256 = 2; |
| 26 | } |