This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// color equalization fuuu | |
int colors = 16; | |
byte[] r = new byte[colors]; | |
byte[] g = new byte[colors]; | |
byte[] b = new byte[colors]; | |
for (int i = 0; i < colors; i++) { | |
r[i] = (byte) (i*256/colors & 0xFF); | |
g[i] = (byte) (i*256/colors & 0xFF); | |
b[i] = (byte) (i*256/colors & 0xFF); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you want support for OpenSSL (needed for pkcs15-init tool, software hashing in PKCS#11 library and verification): | |
# - download and build OpenSSL | |
# - uncomment the line starting with OPENSSL_DEF | |
# - set the OPENSSL_INCL_DIR below to your openssl include directory, preceded by "/I" | |
# - set the OPENSSL_LIB below to your openssl lib file | |
OPENSSL_DEF= /DENABLE_OPENSSL | |
!IF "$(OPENSSL_DEF)" == "/DENABLE_OPENSSL" | |
!IF "$(PLATFORM)" == "x86" | |
OPENSSL_DIR = C:\OpenSSL-Win32 | |
!ELSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OpenSC has been configured with the following options: | |
... | |
User binaries: /usr/local/bin | |
Configuration files: /usr/local/etc | |
XSL stylesheets: no | |
... | |
man support: no | |
doc support: no | |
thread locking support: yes | |
zlib support: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files\OpenSC Project\OpenSC\tools>opensc-explorer.exe -v -m 3F00 | |
OpenSC Explorer version 0.17.0 | |
Using reader with a card: Gemplus USB Smart Card Reader 0 | |
OpenSC [3F00]> cd 5015 | |
OpenSC [3F00/5015]> asn 5032 | |
Printing tags for buffer of length 745 | |
30 Univ: tag 0x10, length 741: SEQUENCE | |
02 Univ: tag 0x02, length 1: INTEGER [1] | |
0C Univ: tag 0x0C, length 21: UTF8STRING [Oberthur Technologies] | |
80 Cntx: tag 0x00, length 6: <raw content> [4F5420415750] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files\OpenSC Project\OpenSC\tools>opensc-explorer.exe -v -m 3F00 | |
OpenSC Explorer version 0.17.0 | |
Using reader with a card: Gemplus USB Smart Card Reader 0 | |
OpenSC [3F00]> cd 5015 | |
OpenSC [3F00/5015]> cat 5032 | |
00000000: 30 82 02 E5 02 01 01 0C 15 4F 62 65 72 74 68 75 0........Oberthu | |
00000010: 72 20 54 65 63 68 6E 6F 6C 6F 67 69 65 73 80 06 r Technologies.. | |
00000020: 4F 54 20 41 57 50 03 02 05 60 A2 82 02 A8 30 17 OT AWP...`....0. | |
00000030: 02 01 01 02 02 02 20 05 00 03 02 01 02 06 05 2B ...... ........+ | |
00000040: 0E 03 02 1A 02 01 01 30 1A 02 01 02 02 01 00 05 .......0........ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files\OpenSC Project\OpenSC\tools>pkcs11-tool.exe --module "C:\Program Files\OpenSC Project\OpenSC\pkcs11\opensc-pkcs11.dll" -v -s -m SHA256-RSA-PKCS --id 02 --slot 1 --pin 112233 -i test.txt -o test.signed.txt | |
Using slot with ID 0x1 | |
Using signature algorithm SHA256-RSA-PKCS | |
-END- | |
**opencs-debug.log** | |
2017-11-13 15:41:32.061 =================================== | |
2017-11-13 15:41:32.063 opensc version: 0.17.0 | |
2017-11-13 15:41:32.064 PC/SC options: connect_exclusive=0 disconnect_action=1 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files\OpenSC Project\OpenSC\tools>opensc-explorer.exe -m 3F00 | |
OpenSC Explorer version 0.17.0 | |
Using reader with a card: Gemplus USB Smart Card Reader 0 | |
OpenSC [3F00]> cd 5015 | |
OpenSC [3F00/5015]> cat 7002 | |
00000000: 30 73 30 4B 0C 1E 43 6C 61 76 65 20 50 72 69 76 0s0K..Clave Priv | |
00000010: 61 64 61 20 64 65 20 41 75 74 65 6E 74 69 63 61 ada de Autentica | |
00000020: 63 69 6F 6E 03 02 06 C0 04 01 01 30 22 30 0A 03 cion.......0"0.. | |
00000030: 02 06 40 30 04 03 02 05 20 30 0A 03 02 04 10 30 ..@0.... 0.....0 | |
00000040: 04 03 02 05 20 30 08 03 03 06 00 40 04 01 01 30 .... 0.....@...0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
P:4700; T:616 2018-05-11 10:31:40.812 =================================== | |
P:4700; T:616 2018-05-11 10:31:40.812 opensc version: 0.18.0 | |
P:4700; T:616 2018-05-11 10:31:40.812 PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1 | |
P:4700; T:616 2018-05-11 10:31:40.812 [opensc-pkcs11] reader-pcsc.c:1282:pcsc_detect_readers: called | |
P:4700; T:616 2018-05-11 10:31:40.828 Probing PC/SC readers | |
P:4700; T:616 2018-05-11 10:31:40.828 Establish PC/SC context | |
P:4700; T:616 2018-05-11 10:31:40.828 Adding new PC/SC reader 'Gemplus USB SmartCard Reader 0' | |
P:4700; T:616 2018-05-11 10:31:40.828 Gemplus USB SmartCard Reader 0 check | |
P:4700; T:616 2018-05-11 10:31:40.828 current state: 0x00010122 | |
P:4700; T:616 2018-05-11 10:31:40.828 previous state: 0x00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
P:2772; T:5776 2018-05-11 11:20:03.233 =================================== | |
P:2772; T:5776 2018-05-11 11:20:03.234 opensc version: 0.18.0 | |
P:2772; T:5776 2018-05-11 11:20:03.235 PC/SC options: connect_exclusive=0 disconnect_action=0 transaction_end_action=0 reconnect_action=0 enable_pinpad=1 enable_pace=1 | |
P:2772; T:5776 2018-05-11 11:20:03.237 [opensc-pkcs11] reader-pcsc.c:1282:pcsc_detect_readers: called | |
P:2772; T:5776 2018-05-11 11:20:03.238 Probing PC/SC readers | |
P:2772; T:5776 2018-05-11 11:20:03.239 Establish PC/SC context | |
P:2772; T:5776 2018-05-11 11:20:03.242 Adding new PC/SC reader 'Gemplus USB Smart Card Reader 0' | |
P:2772; T:5776 2018-05-11 11:20:03.243 Gemplus USB Smart Card Reader 0 check | |
P:2772; T:5776 2018-05-11 11:20:03.244 current state: 0x00010422 | |
P:2772; T:5776 2018-05-11 11:20:03.245 previous state: 0x00000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sam local invoke --debug PyTorchFunction -n env.json -e event.json | |
2019-05-21 17:44:33 Using SAM Template at <HOME>/aws-lambda/template.yaml | |
2019-05-21 17:44:33 Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane | |
2019-05-21 17:44:33 Changing event name from before-call.apigateway to before-call.api-gateway | |
2019-05-21 17:44:33 Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict | |
2019-05-21 17:44:33 Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration | |
2019-05-21 17:44:33 Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 | |
2019-05-21 17:44:33 Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search | |
2019-05-21 17:44:33 Changing event name from docs.*.autoscaling.CreateLaunchConfiguration.complete-section to docs.*.auto-scalin |
OlderNewer