public static final class Calypso.Write extends com.google.protobuf.GeneratedMessageV3 implements Calypso.WriteOrBuilder
Write is the data stored in a write instance. It stores a reference to the LTS used and the encrypted secret.Protobuf type
calypso.Write| Modifier and Type | Class and Description |
|---|---|
static class |
Calypso.Write.Builder
Write is the data stored in a write instance.
|
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 |
C_FIELD_NUMBER |
static int |
COST_FIELD_NUMBER |
static int |
DATA_FIELD_NUMBER |
static int |
E_FIELD_NUMBER |
static int |
EXTRADATA_FIELD_NUMBER |
static int |
F_FIELD_NUMBER |
static int |
LTSID_FIELD_NUMBER |
static com.google.protobuf.Parser<Calypso.Write> |
PARSER
Deprecated.
|
static int |
U_FIELD_NUMBER |
static int |
UBAR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.ByteString |
getC()
C is the ElGamal parts for the symmetric key material (might also
contain an IV)
|
ByzCoinProto.Coin |
getCost()
Cost reflects how many coins you'll have to pay for a read-request
|
ByzCoinProto.CoinOrBuilder |
getCostOrBuilder()
Cost reflects how many coins you'll have to pay for a read-request
|
com.google.protobuf.ByteString |
getData()
Data should be encrypted by the application under the symmetric key
in U and C
|
static Calypso.Write |
getDefaultInstance() |
Calypso.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.ByteString |
getLtsid()
LTSID points to the identity of the lts group
|
com.google.protobuf.Parser<Calypso.Write> |
getParserForType() |
int |
getSerializedSize() |
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 |
hasC()
C is the ElGamal parts for the symmetric key material (might also
contain an IV)
|
boolean |
hasCost()
Cost reflects how many coins you'll have to pay for a read-request
|
boolean |
hasData()
Data should be encrypted by the application under the symmetric key
in U and C
|
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 |
hasLtsid()
LTSID points to the identity of the lts group
|
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 Calypso.Write.Builder |
newBuilder() |
static Calypso.Write.Builder |
newBuilder(Calypso.Write prototype) |
Calypso.Write.Builder |
newBuilderForType() |
protected Calypso.Write.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Calypso.Write |
parseDelimitedFrom(InputStream input) |
static Calypso.Write |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Calypso.Write |
parseFrom(byte[] data) |
static Calypso.Write |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Calypso.Write |
parseFrom(ByteBuffer data) |
static Calypso.Write |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Calypso.Write |
parseFrom(com.google.protobuf.ByteString data) |
static Calypso.Write |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Calypso.Write |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Calypso.Write |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Calypso.Write |
parseFrom(InputStream input) |
static Calypso.Write |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Calypso.Write> |
parser() |
Calypso.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 C_FIELD_NUMBER
public static final int EXTRADATA_FIELD_NUMBER
public static final int LTSID_FIELD_NUMBER
public static final int COST_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Calypso.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 C
required bytes data = 1;hasData in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getData()
Data should be encrypted by the application under the symmetric key in U and C
required bytes data = 1;getData in interface Calypso.WriteOrBuilderpublic boolean hasU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;hasU in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getU()
U is the encrypted random value for the ElGamal encryption
required bytes u = 2;getU in interface Calypso.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 Calypso.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 Calypso.WriteOrBuilderpublic boolean hasE()
E is the non-interactive challenge as scalar
required bytes e = 4;hasE in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getE()
E is the non-interactive challenge as scalar
required bytes e = 4;getE in interface Calypso.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 Calypso.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 Calypso.WriteOrBuilderpublic boolean hasC()
C is the ElGamal parts for the symmetric key material (might also contain an IV)
required bytes c = 6;hasC in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getC()
C is the ElGamal parts for the symmetric key material (might also contain an IV)
required bytes c = 6;getC in interface Calypso.WriteOrBuilderpublic boolean hasExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;hasExtradata in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getExtradata()
ExtraData is clear text and application-specific
optional bytes extradata = 7;getExtradata in interface Calypso.WriteOrBuilderpublic boolean hasLtsid()
LTSID points to the identity of the lts group
required bytes ltsid = 8;hasLtsid in interface Calypso.WriteOrBuilderpublic com.google.protobuf.ByteString getLtsid()
LTSID points to the identity of the lts group
required bytes ltsid = 8;getLtsid in interface Calypso.WriteOrBuilderpublic boolean hasCost()
Cost reflects how many coins you'll have to pay for a read-request
optional .byzcoin.Coin cost = 9;hasCost in interface Calypso.WriteOrBuilderpublic ByzCoinProto.Coin getCost()
Cost reflects how many coins you'll have to pay for a read-request
optional .byzcoin.Coin cost = 9;getCost in interface Calypso.WriteOrBuilderpublic ByzCoinProto.CoinOrBuilder getCostOrBuilder()
Cost reflects how many coins you'll have to pay for a read-request
optional .byzcoin.Coin cost = 9;getCostOrBuilder in interface Calypso.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 Calypso.Write parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Calypso.Write parseFrom(InputStream input) throws IOException
IOExceptionpublic static Calypso.Write parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Calypso.Write parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Calypso.Write parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Calypso.Write parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Calypso.Write parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Calypso.Write.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Calypso.Write.Builder newBuilder()
public static Calypso.Write.Builder newBuilder(Calypso.Write prototype)
public Calypso.Write.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Calypso.Write.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Calypso.Write getDefaultInstance()
public static com.google.protobuf.Parser<Calypso.Write> parser()
public com.google.protobuf.Parser<Calypso.Write> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Calypso.Write getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.