Class PreferredAlgorithms

java.lang.Object
org.bouncycastle.bcpg.SignatureSubpacket
org.bouncycastle.bcpg.sig.PreferredAlgorithms
Direct Known Subclasses:
LibrePGPPreferredEncryptionModes, PreferredAEADCiphersuites

public class PreferredAlgorithms extends SignatureSubpacket
Signature Subpacket containing algorithm preferences of the key holder's implementation. This class is used to implement:
  • Preferred Hash Algorithms
  • Preferred Symmetric Key Algorithms
  • Preferred Compression Algorithms
See Also:
  • Constructor Details

    • PreferredAlgorithms

      public PreferredAlgorithms(int type, boolean critical, boolean isLongLength, byte[] data)
    • PreferredAlgorithms

      public PreferredAlgorithms(int type, boolean critical, int[] preferences)
  • Method Details

    • intToByteArray

      protected static byte[] intToByteArray(int[] v)
    • getPreferences

      public int[] getPreferences()