Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logical Channel Support / pom.xml fix #138

Open
wants to merge 52 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
7067725
Support for logical channels
koh-osug Jan 16, 2019
709ebe6
fix for installing JavaCard and nor requiring version for pom executi…
koh-osug Jan 16, 2019
0e218eb
Update to BouncyCastle 1.64
May 30, 2020
a7ec688
add option to randomize RandomData seed
ph4r05 May 19, 2020
6ad0234
Wrap 'nbsp' to CDATA in pom.xml
Oct 26, 2021
6976b7f
test: Do not reuse KeyPair context to generate second key pair
Jakuje Sep 1, 2021
562bd9a
Bump bcprov-jdk14 from 1.46 to 1.67
dependabot[bot] Aug 13, 2021
888ef4b
Do not throw CryptoException if EC KeyBuilder.buildKey() does not mat…
May 29, 2020
3af8af5
Max case 4 command APDU size is 261
May 29, 2020
503e9df
Add support for vsmartcard/vpcd integration, fix up stuff for PivApplet
arekinath Sep 9, 2018
dba7692
Remove the old jars
arekinath Sep 9, 2018
339e8a1
Add support for signPreComputedHash with ECDSA
arekinath Mar 31, 2019
d6f79f7
added resize of ByteContainer if the new required length is bigger th…
petrs Jul 2, 2017
8d16532
excluding BC services provider configuration for Java 9+ compatibility
Dec 14, 2021
ea50e1e
Documentation not limiting compilation to Windows
Dec 14, 2021
15fe56d
updated release file
Dec 14, 2021
09a6571
Javadoc updated
Dec 14, 2021
1704e4c
Documented which pull requests are included
Dec 14, 2021
8eb31d8
reason rejecting pull request 159
koh-osug Dec 15, 2021
7946e58
removing unused PomProcessor, updating asm version
koh-osug Dec 15, 2021
a0e7619
preparing sonatype release from github repo
koh-osug Dec 15, 2021
5a6b2da
[maven-release-plugin] prepare release jcardsim-3.0.5-1
koh-osug Dec 16, 2021
f60a14d
[maven-release-plugin] prepare for next development iteration
koh-osug Dec 16, 2021
70e964b
comments about the Sonatype release process
koh-osug Dec 16, 2021
36db988
comments about version name
koh-osug Dec 16, 2021
cee3101
adding license file, including other used licenses in NOTICE
koh-osug Dec 19, 2021
229be72
removed javadoc
koh-osug Dec 19, 2021
d6bfc7a
removed multi-release classes from BouncyCastle from jar
koh-osug Dec 19, 2021
cb3dc65
[maven-release-plugin] prepare release jcardsim-3.0.5-2
koh-osug Dec 19, 2021
d3e2adb
[maven-release-plugin] prepare for next development iteration
koh-osug Dec 19, 2021
7086d7f
* Update <group.id> in pom.xml from "com.licel" to "de.ohmesoftware" …
extensia May 7, 2022
6a1635b
Merge pull request #1 from extensia/master
koh-osug May 7, 2022
a461ce6
[maven-release-plugin] prepare release jcardsim-3.0.5-3
koh-osug May 7, 2022
a3ec596
[maven-release-plugin] prepare for next development iteration
koh-osug May 7, 2022
eda8d38
Support JCSystem.makeGlobalArray() call
pongpet-licel May 27, 2022
95d16a8
Updated SimulatorRuntime to throw only ISOException in applet process…
pongpet-licel Jun 10, 2022
0b513a4
Check mismatch between Cipher instance algorithm and key type
pongpet-licel May 31, 2022
c9c1b50
Added checkKeyCompatibility to prevent the cipher algorithm and key t…
pongpet-licel Jun 7, 2022
8ebf42c
Update applet process() to use switch-case pattern and use P1 for key…
pongpet-licel Jun 8, 2022
e209010
Updated mismatched AES/DES cipher and key type from applet apdu proce…
pongpet-licel Jun 13, 2022
2b7b8dd
selecting AID when register is called
koh-osug Jun 20, 2022
eb65359
[maven-release-plugin] prepare release jcardsim-3.0.5-4
koh-osug Jun 20, 2022
b32f2f9
[maven-release-plugin] prepare for next development iteration
koh-osug Jun 20, 2022
dc8408d
improved javadoc and release description
koh-osug Jun 20, 2022
690aae6
[maven-release-plugin] prepare release jcardsim-3.0.5-5
koh-osug Jun 20, 2022
88ebe89
[maven-release-plugin] prepare for next development iteration
koh-osug Jun 20, 2022
87ea448
note about release error
koh-osug Jun 20, 2022
c13087c
Added AEADCipher with CCM support
koh-osug Jun 29, 2022
5756570
using getInstance of Cipher for AEADCipher
koh-osug Jun 29, 2022
b217302
Merge pull request #2 from koh-osug/CCM-support
koh-osug Jun 29, 2022
a8d4dd7
[maven-release-plugin] prepare release jcardsim-3.0.5-6
koh-osug Jun 29, 2022
9219ad0
[maven-release-plugin] prepare for next development iteration
koh-osug Jun 29, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
202 changes: 202 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
82 changes: 55 additions & 27 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,27 +1,55 @@
The following software included in this product:
Bouncy Castle Crypto APIs


Please note: our license is an adaptation of the MIT X11 License and
should be read as such.

License Copyright (c) 2000 - 2009 The Legion Of The Bouncy Castle
(http://www.bouncycastle.org)
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: The above copyright notice and this
permission notice shall be included in all copies or substantial
portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The following software is included in this product:

Bouncy Castle https://www.bouncycastle.org
Kryo https://github.com/EsotericSoftware/kryo
Objenesis http://objenesis.org/l

-------------
Bouncy Castle

Please note this should be read in the same way as the MIT license.

Please also note this licensing model is made possible through funding from donations and the sale of support contracts.

LICENSE
Copyright (c) 2000 - 2021 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

-------------
Kryo

Copyright (c) 2008-2020, Nathan Sweet All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Esoteric Software nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

-------------
Objenesis

Copyright (c) 2003-2013, Objenesis Team and all contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
44 changes: 33 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
jCardSim (Official repo of the [jCardSim](http://jcardsim.org) project)
========

### Congratulations! jCardSim has won [Duke's Choice 2013 Award](https://www.java.net/dukeschoice/2013)!

![alt text](https://licelus.com/wp-content/uploads/DCA2013_Badge_Winner.jpg "jCardSim is a winner of Duke's Choice 2013")

**Please note** that we moved our code repository from Google Code to GitHub.
jCardSim (Forked repo of the [jCardSim](http://jcardsim.org) project)
======

jCardSim is an open source simulator for Java Card, v3.0.5:

Expand Down Expand Up @@ -41,12 +35,36 @@ assertEquals(0x9000, response.getSW());
* APDU scripting (scripts are compatible with `apdutool` from Java Card Development Kit)
* Simplifies verification tests creation (Common Criteria)

*JavaDoc*: https://github.com/licel/jcardsim/tree/master/javadoc
### Usage Information

* [Quick Start Guide: API](./sitedocs/quick_start_guide_simulator_api.md)
* [Quick Start Guide: CLI](./sitedocs/quick_start_guide_using_in_cli_mode.md)

### Upstream Project Changes

(Javadoc rendered: https://jcardsim.org/jcardsim/)
This repo is including several [pull request from the original GitHub repository](https://github.com/licel/jcardsim/pulls)
and an up-to-date release files with all changes.

*Latest release 3.0.5*: https://github.com/licel/jcardsim/raw/master/jcardsim-3.0.5-SNAPSHOT.jar
For issues reporting please use the upstream project. Pull requests can be created.

The following pull request have been included:

* 176: Wrap 'nbsp' to CDATA in pom.xml
* 174: test: Do not reuse KeyPair context to generate second key pair
* 171: Bump bcprov-jdk14 from 1.46 to 1.67
* 158: Do not throw CryptoException if EC KeyBuilder.buildKey() does not match a known curve
* 157: Max case 4 command APDU size is 261
* 155: Add option to randomize RandomData
* 151: Building on Linux w/ vpcd support
* 141: Make SecureRandom securely random
* 138: Logical Channel Support / pom.xml fix
* 113 Added resize of ByteContainer for longer buffer

Not included are:

* 75: Fix AssymetricSignatureImpl behaviour wrt ISO9796_MR signatures: covered by more recent patches
* 62: Intercept Shareable creation with proxy: correctness of patch not verified
* 159: Simulate card removal and insertion by raising SIGUSR2 (when using vpcd): This is using an internal Java API

### What is the difference from Oracle Java Card Development Kit simulator?

Expand All @@ -66,6 +84,10 @@ assertEquals(0x9000, response.getSW());

jCardSim is completely written in Java and can therefore be used on all platforms which support Java (Windows, Linux, MacOS, etc).

### Maintainer Information

* [Building & Development](./sitedocs/getting_source_and_compiling.md)

### How to help jCardSim?

* Join the team of jCardSim developers.
Expand Down
Loading