Class HybridPublicKey

  • Direct Known Subclasses:
    EciesPublicKey, HpkePublicKey

    @Immutable
    public abstract class HybridPublicKey
    extends Key
    Representation of the encryption function for a hybrid encryption primitive.
    • Constructor Detail

      • HybridPublicKey

        public HybridPublicKey()
    • Method Detail

      • getOutputPrefix

        public abstract Bytes getOutputPrefix()
        Returns a Bytes instance, which is prefixed to every ciphertext.
      • getParameters

        public abstract HybridParameters getParameters()
        Description copied from class: Key
        Returns a Parameters object containing all the information about the key which is not randomly chosen.

        Implementations need to ensure that getParameters().hasIdRequirement() returns true if and only if getIdRequirementOrNull is non-null.

        Specified by:
        getParameters in class Key