Java map: domain settings for key agreement?

With the javacard.security.KeyAgreement class (Java Card 3.0.1 classic), you can conclude an EC-DH agreement. But there is no definite curve. As I understand it, the IEEE P1363 standard does not define domain parameters. So, which curve is used in the implementation of Java Card?

+4
source share
1 answer

It is simple: no. You must set your own parameters. It depends on the card, what type of parameters is supported. The same goes for key sizes. For JCOP (on a chip with an asymmetric coprocessor) you can be pretty sure that, for example, curves over F (p) with a maximum key size of 320 bits are supported.

, ( ) Java-, . ECPublicKey (, setW), () ECDH. , , / , .

JCOP ECPrivateKey, .


3.0.1 , , . (EEPROM flash). 3.0.5 EEPROM/flash, KeyBuilder.buildKeyWithSharedDomain. EEPROM, () .


, , - . , . Brainpool, BrainpoolP256r1, NIST, P-256. Bouncy Castle (core) .

+8

Source: https://habr.com/ru/post/1609505/


All Articles