Package es.gob.jmulticard
Class BcPaceChannelHelper
java.lang.Object
es.gob.jmulticard.CryptoHelper.PaceChannelHelper
es.gob.jmulticard.BcPaceChannelHelper
Utilidades para el establecimiento de un canal PACE
(Password Authenticated Connection Establishment).
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.bouncycastle.math.ec.ECPoint
byteArrayToECPoint
(byte[] value, org.bouncycastle.math.ec.ECCurve.Fp curve) openPaceChannel
(byte cla, WirelessInitializer pi, ApduConnection conn) Abre un canal PACE.Methods inherited from class es.gob.jmulticard.CryptoHelper.PaceChannelHelper
bigIntToByteArray, unwrapEcKey
-
Field Details
-
BLOCK_SIZE
public static final int BLOCK_SIZETamaño de bloque de cifrado AES.- See Also:
-
-
Constructor Details
-
BcPaceChannelHelper
Constructor.- Parameters:
ch
- Utilidad para operaciones criptográficas.
-
-
Method Details
-
openPaceChannel
public SecureMessaging openPaceChannel(byte cla, WirelessInitializer pi, ApduConnection conn) throws ApduConnectionException, IcaoException Description copied from class:CryptoHelper.PaceChannelHelper
Abre un canal PACE.- Specified by:
openPaceChannel
in 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)
-