public class AmECPublicKey extends AmPublicKey implements org.bouncycastle.jce.interfaces.ECPublicKey
vec
Constructor and Description |
---|
AmECPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid,
org.bouncycastle.math.ec.ECPoint Y)
Konstruktor für Ephemeral Public Keys (TR-03110 V2.05 D.3.4)
|
AmECPublicKey(org.bouncycastle.asn1.ASN1Sequence seq)
Konstruktor zum Dekodieren der übergebenen Sequenz
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(org.bouncycastle.asn1.ASN1Sequence seq)
Extrahiert aus der übergebenen DERSequence die Daten des Public Keys Objects.
|
java.math.BigInteger |
getA()
Returns first coefficient a
|
java.lang.String |
getAlgorithm()
Returns the standard algorithm name for this key.
|
java.math.BigInteger |
getB()
Returns second coefficient b
|
byte[] |
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
java.math.BigInteger |
getF()
Returns cofactor f
|
java.lang.String |
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
byte[] |
getG()
Returns base point G
|
java.math.BigInteger |
getP()
Returns prime modulus p
|
org.bouncycastle.jce.spec.ECParameterSpec |
getParameters()
return a parameter specification representing the EC domain parameters
for the key.
|
org.bouncycastle.math.ec.ECPoint |
getQ()
return the public point Q
|
java.math.BigInteger |
getR()
Returns order of the base point r
|
byte[] |
getY()
Returns public point Y
|
getOID, toASN1Primitive
public AmECPublicKey(org.bouncycastle.asn1.ASN1Sequence seq)
seq
- public AmECPublicKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint Y)
oid
- OIDY
- public pointpublic java.lang.String getAlgorithm()
java.security.Key
getAlgorithm
in interface java.security.Key
public java.lang.String getFormat()
java.security.Key
"X.509"
. Similarly,
the name of the ASN.1 data format for private keys is
PrivateKeyInfo,
as defined by the PKCS #8 standard; in this case, the returned format is
"PKCS#8"
.getFormat
in interface java.security.Key
public java.math.BigInteger getP()
public java.math.BigInteger getA()
public java.math.BigInteger getB()
public byte[] getG()
public java.math.BigInteger getR()
public byte[] getY()
public java.math.BigInteger getF()
public byte[] getEncoded()
java.security.Key
getEncoded
in interface java.security.Key
protected void decode(org.bouncycastle.asn1.ASN1Sequence seq)
AmPublicKey
decode
in class AmPublicKey
public org.bouncycastle.math.ec.ECPoint getQ()
org.bouncycastle.jce.interfaces.ECPublicKey
getQ
in interface org.bouncycastle.jce.interfaces.ECPublicKey
public org.bouncycastle.jce.spec.ECParameterSpec getParameters()
org.bouncycastle.jce.interfaces.ECKey
getParameters
in interface org.bouncycastle.jce.interfaces.ECKey