ironcore-documents 0.3.1

A library for working with IronCore Labs documents and header formats.
Documentation
syntax = "proto3";

package ironcorelabs.proto.dcp;
option java_package = "com.ironcorelabs.proto.dcp";

message PublicKey {
  bytes x = 1;
  bytes y = 2;
}

message UserOrGroup {
  oneof UserOrGroupId {
    string userId = 1;
    string groupId = 2;
  }

  PublicKey masterPublicKey = 3;
}

message EncryptedDekData {
  bytes encryptedBytes = 1;
  PublicKey ephemeralPublicKey = 2;
  bytes signature = 3;
  bytes authHash = 4;
  bytes publicSigningKey = 5;
}

message EncryptedDek {
  UserOrGroup userOrGroup = 1;
  EncryptedDekData encryptedDekData = 2;
}

message EncryptedDeks {
  repeated EncryptedDek edeks = 1;
  string documentId = 2;
  int32 segmentId = 3;
}