public static final class OCSProto.Write extends com.google.protobuf.GeneratedMessageV3 implements OCSProto.WriteOrBuilder
Write stores the data and the encrypted secretProtobuf type
ocs.Write| Modifier and Type | Class and Description |
|---|---|
static class |
OCSProto.Write.Builder
Write stores the data and the encrypted secret
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CS_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
E_FIELD_NUMBER |
static int |
EXTRADATA_FIELD_NUMBER |
static int |
F_FIELD_NUMBER |
static com.google.protobuf.Parser<OCSProto.Write> |
PARSER
Deprecated.
|
static int |
READER_FIELD_NUMBER |
static int |
SIGNATURE_FIELD_NUMBER |
static int |
U_FIELD_NUMBER |
static int |
UBAR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getCs(int index)
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
int |
getCsCount()
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
List<com.google.protobuf.ByteString> |
getCsList()
Cs are the ElGamal parts for the symmetric key material (might
also contain an IV)
|
com.google.protobuf.ByteString |
getData()
Data should be encrypted by the application under the symmetric key in U and Cs
|
static OCSProto.Write |
getDefaultInstance() |
OCSProto.Write |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getE()
E is the non-interactive challenge as scalar
|
com.google.protobuf.ByteString |
getExtradata()
ExtraData is clear text and application-specific
|
com.google.protobuf.ByteString |
getF()
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
com.google.protobuf.Parser<OCSProto.Write> |
getParserForType() |
DarcOCSProto.Darc |
getReader()
Reader points to a darc where the reading-rights are stored
|
DarcOCSProto.DarcOrBuilder |
getReaderOrBuilder()
Reader points to a darc where the reading-rights are stored
|
int |
getSerializedSize() |
DarcOCSProto.Signature |
getSignature()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
DarcOCSProto.SignatureOrBuilder |
getSignatureOrBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
com.google.protobuf.ByteString |
getU()
U is the encrypted random value for the ElGamal encryption
|
com.google.protobuf.ByteString |
getUbar()
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasData()
Data should be encrypted by the application under the symmetric key in U and Cs
|
boolean |
hasE()
E is the non-interactive challenge as scalar
|
boolean |
hasExtradata()
ExtraData is clear text and application-specific
|
boolean |
hasF()
f is the proof - written in uppercase here so it is an exported field,
but in the OCS-paper it's lowercase.
|
int |
hashCode() |
boolean |
hasReader()
Reader points to a darc where the reading-rights are stored
|
boolean |
hasSignature()
Signature must come from a valid writer stored in the admin darc of the OCS
skipchain.
|
boolean |
hasU()
U is the encrypted random value for the ElGamal encryption
|
boolean |
hasUbar()
Ubar, E and f will be used by the server to verify the writer did
correctly encrypt the key.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OCSProto.Write.Builder |
newBuilder() |
static OCSProto.Write.Builder |
newBuilder(OCSProto.Write prototype) |
OCSProto.Write.Builder |
newBuilderForType() |
protected OCSProto.Write.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static OCSProto.Write |
parseDelimitedFrom(InputStream input) |
static OCSProto.Write |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Write |
parseFrom(byte[] data) |
static OCSProto.Write |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Write |
parseFrom(ByteBuffer data) |
static OCSProto.Write |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Write |
parseFrom(com.google.protobuf.ByteString data) |
static OCSProto.Write |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Write |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OCSProto.Write |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Write |
parseFrom(InputStream input) |
static OCSProto.Write |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OCSProto.Write> |
parser() |
OCSProto.Write.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DATA_FIELD_NUMBER
public static final int U_FIELD_NUMBER
public static final int UBAR_FIELD_NUMBER
public static final int E_FIELD_NUMBER
public static final int F_FIELD_NUMBER
public static final int CS_FIELD_NUMBER
public static final int EXTRADATA_FIELD_NUMBER
public static final int READER_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<OCSProto.Write> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasData()
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;hasData in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getData()
Data should be encrypted by the application under the symmetric key in U and Cs
required bytes data = 1;getData in interface OCSProto.WriteOrBuilderpublic boolean hasU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;hasU in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;getU in interface OCSProto.WriteOrBuilderpublic boolean hasUbar()
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;hasUbar in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getUbar()
Ubar, E and f will be used by the server to verify the writer did correctly encrypt the key. It binds the policy (the darc) with the cyphertext. Ubar is used for the log-equality proof
required bytes ubar = 3;getUbar in interface OCSProto.WriteOrBuilderpublic boolean hasE()
E is the non-interactive challenge as scalar
required bytes e = 4;hasE in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getE()
E is the non-interactive challenge as scalar
required bytes e = 4;getE in interface OCSProto.WriteOrBuilderpublic boolean hasF()
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;hasF in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getF()
f is the proof - written in uppercase here so it is an exported field, but in the OCS-paper it's lowercase.
required bytes f = 5;getF in interface OCSProto.WriteOrBuilderpublic List<com.google.protobuf.ByteString> getCsList()
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCsList in interface OCSProto.WriteOrBuilderpublic int getCsCount()
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCsCount in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getCs(int index)
Cs are the ElGamal parts for the symmetric key material (might also contain an IV)
repeated bytes cs = 6;getCs in interface OCSProto.WriteOrBuilderpublic boolean hasExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;hasExtradata in interface OCSProto.WriteOrBuilderpublic com.google.protobuf.ByteString getExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;getExtradata in interface OCSProto.WriteOrBuilderpublic boolean hasReader()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;hasReader in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.Darc getReader()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;getReader in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.DarcOrBuilder getReaderOrBuilder()
Reader points to a darc where the reading-rights are stored
required .darcOCS.Darc reader = 8;getReaderOrBuilder in interface OCSProto.WriteOrBuilderpublic boolean hasSignature()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;hasSignature in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.Signature getSignature()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;getSignature in interface OCSProto.WriteOrBuilderpublic DarcOCSProto.SignatureOrBuilder getSignatureOrBuilder()
Signature must come from a valid writer stored in the admin darc of the OCS skipchain. For backwards-compatibility, this is an optional field. But for every new write-request, it must be set.
optional .darcOCS.Signature signature = 9;getSignatureOrBuilder in interface OCSProto.WriteOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OCSProto.Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Write parseFrom(InputStream input) throws IOException
IOExceptionpublic static OCSProto.Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OCSProto.Write parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OCSProto.Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OCSProto.Write parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OCSProto.Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OCSProto.Write.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OCSProto.Write.Builder newBuilder()
public static OCSProto.Write.Builder newBuilder(OCSProto.Write prototype)
public OCSProto.Write.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OCSProto.Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OCSProto.Write getDefaultInstance()
public static com.google.protobuf.Parser<OCSProto.Write> parser()
public com.google.protobuf.Parser<OCSProto.Write> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OCSProto.Write getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.