Top Description Fields Constructors Methods
org.bouncycastle.openpgp.operator

public Class RFC6637KDFCalculator

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .IOException, .OutputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.bcpg.PublicKeyAlgorithmTags, .SymmetricKeyAlgorithmTags, org.bouncycastle.math.ec.ECPoint, org.bouncycastle.openpgp.PGPException, org.bouncycastle.util.encoders.Hex

Deprecated

this class is no longer required and will be removed.

Calculator for the EC based KDF algorithm described in RFC 6637

Field Summary

Modifier and TypeField and Description
private static final byte[]
private final PGPDigestCalculator
private final int

Constructor Summary

AccessConstructor and Description
public
RFC6637KDFCalculator(PGPDigestCalculator digCalc, int keyAlgorithm)

Method Summary

Modifier and TypeMethod and Description
public byte[]
createKey(ASN1ObjectIdentifier curveOID, ECPoint s, byte[] recipientFingerPrint)

private static int
getKeyLen(int algID)

private static byte[]
KDF(PGPDigestCalculator digCalc, ECPoint s, int keyLen, byte[] param)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ANONYMOUS_SENDERback to summary
private static final byte[] ANONYMOUS_SENDER
digCalcback to summary
private final PGPDigestCalculator digCalc
keyAlgorithmback to summary
private final int keyAlgorithm

Constructor Detail

RFC6637KDFCalculatorback to summary
public RFC6637KDFCalculator(PGPDigestCalculator digCalc, int keyAlgorithm)

Method Detail

createKeyback to summary
public byte[] createKey(ASN1ObjectIdentifier curveOID, ECPoint s, byte[] recipientFingerPrint) throws PGPException
getKeyLenback to summary
private static int getKeyLen(int algID) throws PGPException
KDFback to summary
private static byte[] KDF(PGPDigestCalculator digCalc, ECPoint s, int keyLen, byte[] param) throws IOException