1// Copyright 2017 Google Inc. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14// 15//////////////////////////////////////////////////////////////////////////////// 16 17// Definitions for Ed25519 Digital Signature Algorithm. 18// See https://ed25519.cr.yp.to/ed25519-20110926.pdf and 19// https://tools.ietf.org/html/rfc8032. 20syntax = "proto3"; 21 22package google.crypto.tink; 23 24option java_package = "com.google.crypto.tink.proto"; 25option java_multiple_files = true; 26option go_package = "github.com/google/tink/go/proto/ed25519_go_proto"; 27 28message Ed25519KeyFormat { 29 uint32 version = 1; 30} 31 32// key_type: type.googleapis.com/google.crypto.tink.Ed25519PublicKey 33message Ed25519PublicKey { 34 // Required. 35 uint32 version = 1; 36 // The public key is 32 bytes, encoded according to 37 // https://tools.ietf.org/html/rfc8032#section-5.1.2. 38 // Required. 39 bytes key_value = 2; 40} 41 42// key_type: type.googleapis.com/google.crypto.tink.Ed25519PrivateKey 43message Ed25519PrivateKey { 44 // Required. 45 uint32 version = 1; 46 // The private key is 32 bytes of cryptographically secure random data. 47 // See https://tools.ietf.org/html/rfc8032#section-5.1.5. 48 // Required. 49 bytes key_value = 2; 50 // The corresponding public key. 51 Ed25519PublicKey public_key = 3; 52} 53