Bouncy Castle Cryptography Library 1.79

org.bouncycastle.bcpg.sig
Class LibrePGPPreferredEncryptionModes

java.lang.Object
  |
  +--org.bouncycastle.bcpg.SignatureSubpacket
        |
        +--org.bouncycastle.bcpg.sig.PreferredAlgorithms
              |
              +--org.bouncycastle.bcpg.sig.LibrePGPPreferredEncryptionModes

public class LibrePGPPreferredEncryptionModes
extends PreferredAlgorithms

This is a deprecated LibrePGP signature subpacket with encryption mode numbers to indicate which modes the key holder prefers to use with OCB Encrypted Data Packets (AEADEncDataPacket). Implementations SHOULD ignore this subpacket and assume AEADAlgorithmTags.OCB.


Fields inherited from class org.bouncycastle.bcpg.SignatureSubpacket
data
 
Constructor Summary
LibrePGPPreferredEncryptionModes(boolean critical, boolean isLongLength, byte[] data)
           
LibrePGPPreferredEncryptionModes(boolean isCritical, int[] encryptionModes)
           
 
Methods inherited from class org.bouncycastle.bcpg.sig.PreferredAlgorithms
getPreferences, intToByteArray
 
Methods inherited from class org.bouncycastle.bcpg.SignatureSubpacket
encode, equals, getData, getType, hashCode, isCritical, isLongLength
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibrePGPPreferredEncryptionModes

public LibrePGPPreferredEncryptionModes(boolean isCritical,
                                        int[] encryptionModes)

LibrePGPPreferredEncryptionModes

public LibrePGPPreferredEncryptionModes(boolean critical,
                                        boolean isLongLength,
                                        byte[] data)

Bouncy Castle Cryptography Library 1.79