Skip to content

Commit 19a9878

Browse files
authored
Merge pull request #7 from jpbland1/packaging
Packaging
2 parents 506dae1 + a4dae38 commit 19a9878

File tree

17 files changed

+162
-1480
lines changed

17 files changed

+162
-1480
lines changed

README.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# wolfCrypt Node.JS support
22

3-
Wrappers for wolfCrypt ciphers.
3+
Wrappers for various wolfCrypt functions.
44

55
## Building wolfSSL
66

@@ -20,18 +20,32 @@ Verify the .so (shared object) path and version in `binding.gyp`:
2020
],
2121
```
2222

23-
Use npm to install and build:
23+
## Package Installation
24+
25+
Use npm to install the package:
26+
27+
```
28+
npm i wolfcrypt_binding
29+
```
30+
31+
Then require it in your application code
2432

2533
```
26-
npm i
27-
npm run build
28-
node app.js
34+
const { wolfcrypt, WolfSSLEncryptionStream } = require( 'wolfcrypt_binding' )
2935
```
3036

31-
## Example Output
37+
Examples of how to use this library can be found in the tests directory
38+
39+
## Tests Output
3240

3341
```
34-
$ node app.js
42+
$ npm run test
43+
PASS ecc makeKey
44+
PASS ecc sharedSecret32
45+
PASS ecc sharedSecret64
46+
PASS ecc signVerify
47+
PASS ecc importExportx963
48+
PASS ecc importExportDer
3549
PASS evp encrypt
3650
PASS evp decrypt
3751
PASS evp encrypt_decrypt_odd
@@ -41,6 +55,12 @@ PASS evp encryptDecryptPipes
4155
PASS hmac hmac
4256
PASS hmac hmacStream
4357
PASS hmac hmacPipe
58+
PASS pbkdf2
59+
PASS pkcs7 addCertificate
60+
PASS pkcs7 encodeData
61+
PASS pkcs7 signVerify
62+
PASS pkcs7 getAttribute
63+
PASS pkcs7 getSid
4464
PASS rsa keyToDer
4565
PASS rsa keyToPublicDer
4666
PASS rsa privateKeyDecode
@@ -54,16 +74,4 @@ PASS sha sha384
5474
PASS sha sha512
5575
PASS sha sha512_224
5676
PASS sha sha512_256
57-
PASS ecc makeKey
58-
PASS ecc sharedSecret32
59-
PASS ecc sharedSecret64
60-
PASS ecc signVerify
61-
PASS ecc importExportx963
62-
PASS ecc importExportDer
63-
PASS pbkdf2
64-
PASS pkcs7 addCertificate
65-
PASS pkcs7 encodeData
66-
PASS pkcs7 signVerify
67-
PASS pkcs7 getAttribute
68-
PASS pkcs7 getSid
6977
```

WolfSSLEVP.js

Lines changed: 0 additions & 227 deletions
This file was deleted.

0 commit comments

Comments
 (0)