<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />

PgpUtilities

public sealed class PgpUtilities
public PgpUtilities()

public static MPInteger[] DsaSigToMpi(byte[] encoding)

public static string GetCurveName(DerObjectIdentifier oid)

public static Stream GetDecoderStream(Stream inputStream)

Return either an ArmoredInputStream or a BcpgInputStream based on whether the initial characters of the stream are binary PGP encodings or not.

public static int GetDigestIDForName(string name)

public static string GetDigestName(HashAlgorithmTag hashAlgorithm)

public static int GetKeySize(SymmetricKeyAlgorithmTag algorithm)

public static string GetSignatureName(PublicKeyAlgorithmTag keyAlgorithm, HashAlgorithmTag hashAlgorithm)

public static string GetSymmetricCipherName(SymmetricKeyAlgorithmTag algorithm)

public static KeyParameter MakeKey(SymmetricKeyAlgorithmTag algorithm, byte[] keyBytes)

public static KeyParameter MakeKeyFromPassPhrase(SymmetricKeyAlgorithmTag algorithm, S2k s2k, char[] passPhrase)

public static KeyParameter MakeKeyFromPassPhraseRaw(SymmetricKeyAlgorithmTag algorithm, S2k s2k, byte[] rawPassPhrase)

public static KeyParameter MakeKeyFromPassPhraseUtf8(SymmetricKeyAlgorithmTag algorithm, S2k s2k, char[] passPhrase)

public static MPInteger[] RsaSigToMpi(byte[] encoding)

public static void WriteFileToLiteralData(Stream output, char fileType, FileInfo file)

Write out the passed in file as a literal data packet.

public static void WriteFileToLiteralData(Stream output, char fileType, FileInfo file, byte[] buffer)

Write out the passed in file as a literal data packet in partial packet format.