Package com.google.crypto.tink.hybrid
Class HybridPublicKey
- java.lang.Object
-
- com.google.crypto.tink.Key
-
- com.google.crypto.tink.hybrid.HybridPublicKey
-
- Direct Known Subclasses:
EciesPublicKey,HpkePublicKey
@Immutable public abstract class HybridPublicKey extends Key
Representation of the encryption function for a hybrid encryption primitive.
-
-
Constructor Summary
Constructors Constructor Description HybridPublicKey()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract BytesgetOutputPrefix()Returns aBytesinstance, which is prefixed to every ciphertext.abstract HybridParametersgetParameters()Returns aParametersobject containing all the information about the key which is not randomly chosen.-
Methods inherited from class com.google.crypto.tink.Key
equalsKey, getIdRequirementOrNull
-
-
-
-
Method Detail
-
getOutputPrefix
public abstract Bytes getOutputPrefix()
Returns aBytesinstance, which is prefixed to every ciphertext.
-
getParameters
public abstract HybridParameters getParameters()
Description copied from class:KeyReturns aParametersobject containing all the information about the key which is not randomly chosen.Implementations need to ensure that
getParameters().hasIdRequirement()returns true if and only ifgetIdRequirementOrNullis non-null.- Specified by:
getParametersin classKey
-
-