Package | Description |
---|---|
com.tinfoilsms.crypto | |
com.tinfoilsms.test |
Modifier and Type | Method and Description |
---|---|
static ECPrivateKeyParameters |
ECGKeyUtil.decodeBase64PriKey(ECKeyParam keyParam,
byte[] encodedPriKey)
decodeBase64PriKey A function wrapper function for decodePriKey which takes
a base64 encoded ECC private key parameter object and returns an
ECPrivateKeyParameters object for the private key D BigInteger value.
|
static ECPublicKeyParameters |
ECGKeyUtil.decodeBase64PubKey(ECKeyParam keyParam,
byte[] encodedPubKey)
decodeBase64PubKey A wrapper function for decodePubKey which takes an
ASN.1 encoded ECC public key Q that was then encoded as base64
and returns an ECPublicKeyParameters object for the public key Q.
|
static ECPublicKeyParameters |
ECGKeyUtil.decodeBase64SignedPubKey(ECKeyParam keyParam,
Digest digest,
byte[] signedPubKey)
decodeBase64SignedPubKey A wrapper function for decodeSignedPubKey which
takes an ASN.1 encoded ECC public key Q that is signed using the Elliptic
Curve Gillett (ECG) Exchange key exchange and that was then encoded as base64
and returns an ECPublicKeyParameters object for the public key Q.
|
static ECPrivateKeyParameters |
ECGKeyUtil.decodePriKey(ECKeyParam keyParam,
byte[] encodedPriKey)
decodePriKey A function which takes an ECC private key parameter object and
returns an ECPrivateKeyParameters object for the private key D BigInteger
value.
|
static ECPublicKeyParameters |
ECGKeyUtil.decodePubKey(ECKeyParam keyParam,
byte[] encodedPubKey)
decodePubKey A function which takes an ASN.1 encoded ECC public key Q
and returns an ECPublicKeyParameters object for the public key Q.
|
static ECPublicKeyParameters |
ECGKeyUtil.decodeSignedPubKey(ECKeyParam keyParam,
Digest digest,
byte[] signedPubKey)
decodeSignedPubKey A function which takes an ASN.1 encoded ECC public key Q
that is signed using the Elliptic Curve Gillett (ECG) Exchange key exchange
and returns an ECPublicKeyParameters object for the public key Q.
|
static byte[] |
ECGKeyUtil.encodeBase64PriKey(ECKeyParam keyParam,
CipherParameters priKey)
encodeBase64PriKey A wrapper function which takes an ECC private key parameter
object and returns the private key D BigInteger value that is encoded as base64
for proper storage and transmission in textual form.
|
static byte[] |
ECGKeyUtil.encodeBase64PubKey(ECKeyParam keyParam,
CipherParameters pubKey)
encodeBase64PubKey A wrapper function for encodePubKey() which takes an ECC
public key parameter object and returns the ASN.1 encoded X and Y values
for the public key Q that is then encoded in base64 encoding for proper
storage and transmission in textual form.
|
static byte[] |
ECGKeyUtil.encodePriKey(ECKeyParam keyParam,
CipherParameters priKey)
encodePriKey A function which takes an ECC private key parameter object
and returns the private key D BigInteger value as a byte array
|
static byte[] |
ECGKeyUtil.encodePubKey(ECKeyParam keyParam,
CipherParameters pubKey)
encodePubKey A function which takes an ECC public key parameter object
and returns the ASN.1 encoded X and Y values for the public key Q.
|
Modifier and Type | Field and Description |
---|---|
private ECKeyParam |
ECKeyParamTest.keyParam |
private ECKeyParam |
ECGKeyExchangeTest.param |
private ECKeyParam |
ECGKeyUtilTest.param |
private ECKeyParam |
ECKeyTest.param |
private ECKeyParam |
ECEngineTest.param |