Package es.gob.jmulticard
Class BcPaceChannelHelper
- java.lang.Object
-
- es.gob.jmulticard.CryptoHelper.PaceChannelHelper
-
- es.gob.jmulticard.BcPaceChannelHelper
-
public final class BcPaceChannelHelper extends CryptoHelper.PaceChannelHelper
Utilidades para el establecimiento de un canal PACE (Password Authenticated Connection Establishment).
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_SIZETamaño de bloque de cifrado AES.-
Fields inherited from class es.gob.jmulticard.CryptoHelper.PaceChannelHelper
CAN_MRZ_PADDING, cryptoHelper, KENC_PADDING, KMAC_PADDING, LOGGER, MAC_PADDING, MAC2_PADDING, TAG_DYNAMIC_AUTHENTICATION_DATA, TAG_GEN_AUTH_2, TAG_GEN_AUTH_3, TAG_GEN_AUTH_4
-
-
Constructor Summary
Constructors Constructor Description BcPaceChannelHelper(CryptoHelper ch)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static org.bouncycastle.math.ec.ECPointbyteArrayToECPoint(byte[] value, org.bouncycastle.math.ec.ECCurve.Fp curve)SecureMessagingopenPaceChannel(byte cla, WirelessInitializer pi, ApduConnection conn)Abre un canal PACE.-
Methods inherited from class es.gob.jmulticard.CryptoHelper.PaceChannelHelper
bigIntToByteArray, unwrapEcKey
-
-
-
-
Field Detail
-
BLOCK_SIZE
public static final int BLOCK_SIZE
Tamaño de bloque de cifrado AES.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BcPaceChannelHelper
public BcPaceChannelHelper(CryptoHelper ch)
Constructor.- Parameters:
ch- Utilidad para operaciones criptográficas.
-
-
Method Detail
-
openPaceChannel
public SecureMessaging openPaceChannel(byte cla, WirelessInitializer pi, ApduConnection conn) throws ApduConnectionException, IcaoException
Description copied from class:CryptoHelper.PaceChannelHelperAbre un canal PACE.- Specified by:
openPaceChannelin classCryptoHelper.PaceChannelHelper- Parameters:
cla- Clase de APDU para los comandos de establecimiento de canal.pi- Valor de inicialización del canal. Puede ser un CAN (Card Access Number) o una MRZ (Machine Readable Zone).conn- Conexión hacia la tarjeta inteligente.- Returns:
- SecureMessaging Objeto para el envío de mensajes seguros a través de canal PACE.
- Throws:
ApduConnectionException- Si hay problemas de conexión con la tarjeta.IcaoException- Si hay problemas en la apertura del canal.
-
byteArrayToECPoint
private static org.bouncycastle.math.ec.ECPoint byteArrayToECPoint(byte[] value, org.bouncycastle.math.ec.ECCurve.Fp curve)
-
-