Skip to content

Commit

Permalink
Merge pull request #6 from proxyco/simon/fix-readme
Browse files Browse the repository at this point in the history
Add instructions for overriding project settings
  • Loading branch information
simonratner authored Mar 9, 2023
2 parents 0390bb2 + 31cb50a commit 195ee4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ Typical output:
> counter of most secure elements, and eventually lock the card permanently.
>
> ```
> # Replace with real key for distribution (use env variable or command line arg).
> # Replace with a real key (use GRADLE_OPTS env variable or -P command line arg
> # to override in release builds, do not add your real key to source control).
> issuerKey=40:41:42:43:44:45:46:47:48:49:4A:4B:4C:4D:4E:4F
> ```
Expand All @@ -57,6 +58,13 @@ Typical output:
./gradlew installJavaCard
```
To override project variables on the command line, for example to specify a production
key, use the `-P` command line arg:

```bash
./gradlew installJavaCard -PissuerKey=...
```

To inspect already installed applets:

```bash
Expand Down Expand Up @@ -159,8 +167,8 @@ Finished generating test html results (0.009 secs) into: ./applet/build/reports/

Average of three runs to generate a set of shares from a 128-bit secret.

| Group descriptors | JCOP3 J3H145 | SLJ52WML140 |
| ------------------------- | -----------: | ----------: |
| Shares | JCOP3 J3H145 | SLJ52WML140 |
| :------------------------ | -----------: | ----------: |
| 1 of (1,1) | 125 ms | 42 ms |
| 1 of (2,3) | 388 ms | 242 ms |
| 1 of (3,5) | 818 ms | 608 ms |
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Replace with real key for distribution (use env variable or command line arg).
# Replace with a real key (use GRADLE_OPTS env variable or -P command line arg
# to override in release builds, do not add your real key to source control).
issuerKey=40:41:42:43:44:45:46:47:48:49:4A:4B:4C:4D:4E:4F

0 comments on commit 195ee4f

Please sign in to comment.