public class Ascii extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Ascii.ARMOURTYPE |
Constructor and Description |
---|
Ascii() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
armourUnwrap(char[] wrapdata,
int off,
int len,
Ascii.ARMOURTYPE atype) |
static byte[] |
armourUnwrap(String wrapdata,
Ascii.ARMOURTYPE atype) |
static char[] |
armourWrap(byte[] rawdata,
int off,
int len,
Ascii.ARMOURTYPE atype) |
static char[] |
armourWrap(byte[] rawdata,
int off,
int len,
Ascii.ARMOURTYPE atype,
int maxline) |
static byte[] |
decrypt(String wrapdata,
BigInteger kmod,
BigInteger kpub,
Ascii.ARMOURTYPE atype) |
static char[] |
digest(ByteChars plain,
MessageDigest proc) |
static byte[] |
hexDecode(char[] carr) |
static byte[] |
hexDecode(char[] carr,
int coff,
int clen,
byte[] barr) |
static int |
hexDecodeLength(int clen) |
static char[] |
hexEncode(byte[] barr) |
static char[] |
hexEncode(byte[] barr,
int boff,
int blen,
char[] carr) |
static int |
hexEncodeLength(int blen) |
public static byte[] decrypt(String wrapdata, BigInteger kmod, BigInteger kpub, Ascii.ARMOURTYPE atype) throws GeneralSecurityException
GeneralSecurityException
public static char[] armourWrap(byte[] rawdata, int off, int len, Ascii.ARMOURTYPE atype)
public static char[] armourWrap(byte[] rawdata, int off, int len, Ascii.ARMOURTYPE atype, int maxline)
public static byte[] armourUnwrap(char[] wrapdata, int off, int len, Ascii.ARMOURTYPE atype)
public static byte[] armourUnwrap(String wrapdata, Ascii.ARMOURTYPE atype)
public static char[] digest(ByteChars plain, MessageDigest proc)
public static char[] hexEncode(byte[] barr)
public static byte[] hexDecode(char[] carr)
public static char[] hexEncode(byte[] barr, int boff, int blen, char[] carr)
public static byte[] hexDecode(char[] carr, int coff, int clen, byte[] barr)
public static int hexEncodeLength(int blen)
public static int hexDecodeLength(int clen)
Copyright 2010-2018 Grey Software (Yusef Badri). All Rights Reserved.