Top Description Constructors Methods
org.bouncycastle.gpg

pack-priv Class SXprUtils

extends Object
Class Inheritance
Imports
java.io.EOFException, .IOException, .InputStream, org.bouncycastle.bcpg.HashAlgorithmTags, .S2K, org.bouncycastle.util.io.Streams

Utility functions for looking a S-expression keys. This class will move when it finds a better home!

Format documented here: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=agent/keyformat.txt;h=42c4b1f06faf1bbe71ffadc2fee0fad6bec91a97;hb=refs/heads/master

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static S2K
pack-priv static byte[]
readBytes(InputStream in, int ch)

private static int
readLength(InputStream in, int ch)

pack-priv static String
readString(InputStream in, int ch)

pack-priv static void
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SXprUtilsback to summary
pack-priv SXprUtils()

Method Detail

parseS2Kback to summary
pack-priv static S2K parseS2K(InputStream in) throws IOException
readBytesback to summary
pack-priv static byte[] readBytes(InputStream in, int ch) throws IOException
readLengthback to summary
private static int readLength(InputStream in, int ch) throws IOException
readStringback to summary
pack-priv static String readString(InputStream in, int ch) throws IOException
skipCloseParenthesisback to summary
pack-priv static void skipCloseParenthesis(InputStream in) throws IOException
skipOpenParenthesisback to summary
pack-priv static void skipOpenParenthesis(InputStream in) throws IOException