Skip to content
This repository has been archived by the owner on Mar 20, 2019. It is now read-only.
/ ykneo-curves Public archive

Applet for testing ecc curves

License

Notifications You must be signed in to change notification settings

Yubico/ykneo-curves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ykneo-curves

Note
This project is deprecated and is no longer being maintained.

This is an applet demonstrating several curves for use in YubiKey NEO.

License

Copyright (c) 2013 Yubico AB.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Curve parameters

The curve parameters are copied from bouncycastle’s java implementation.

handy regexps to run the raw strings through (in vim) are: s/\([a-z0-9]{2}\)/, 0x\1/g followed by: s/0x\([8-9,a-f]\)/(byte)0x\1/g

Usage

After the applet is loaded there exists two instructions for each curve. X1 for generate and X2 for sign, where the generate instruction takes no parameters and sends out the public key as response and the sign instruction takes the data to be signed as data. X in the instruction corresponds to the curve:

  • 0 = brainpoolp256r1

  • 1 = secp256r1

  • 2 = brainpoolp320r1

  • 3 = brainpoolp256t1

  • 4 = secp256k1

  • 5 = gost2001

  • 6 = frp256v1

Releases

No releases published

Packages

No packages published

Languages