22 lines
521 B
Protocol Buffer
22 lines
521 B
Protocol Buffer
// Protobufs for specific crypto primitives
|
|
|
|
syntax = "proto3";
|
|
|
|
package meerkat;
|
|
|
|
import 'meerkat/crypto.proto';
|
|
|
|
option java_package = "meerkat.protobuf";
|
|
|
|
|
|
message ElGamalPublicKey {
|
|
// DER-encoded SubjectPublicKeyInfo as in RFC 3279
|
|
bytes subject_public_key_info = 1;
|
|
}
|
|
|
|
// An El-Gamal ciphertext
|
|
// Each group element should be an ASN.1 encoded curve point with compression.
|
|
message ElGamalCiphertext {
|
|
bytes c1 = 1; // First group element
|
|
bytes c2 = 2; // Second group element
|
|
} |