-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
2,495 additions
and
2,210 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,9 @@ | ||
|
||
############################################################################# | ||
# | ||
# This file is managed by ocp-autoconf. | ||
# | ||
# Remove it from `manage_files` in 'ocp-autoconf.config' if you want to | ||
# modify it manually. | ||
# | ||
############################################################################# | ||
|
||
# ocp-build working directories | ||
_obuild | ||
|
||
# ocp-lint working directories | ||
_olint | ||
|
||
# backups of modified files | ||
*~ | ||
*.annot | ||
|
||
# content of file ocp-autoconf.d/gitignore | ||
ocp-autoconf.d/config.ocp2inc | ||
|
||
_esy | ||
esy.lock | ||
|
||
_build | ||
*.merlin | ||
autoconf | ||
ocp-autoconf.d | ||
test/*.js | ||
examples/chrome-extension/*.js | ||
configure | ||
examples/*/*.js |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
open Ezjs_min.Js | ||
open Ezjs_crypto | ||
|
||
let () = | ||
generate_key ~algo:(GAES (CTR, 256)) ~usages:[`DeriveKey] @@ function | ||
| Error e -> js_log e | ||
| Ok (CKey k) -> log_str "key"; js_log @@ to_crypto_key k | ||
| Ok (CKeyPair p) -> log_str "keypair"; js_log @@ to_crypto_keypair p |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
(executable | ||
(name crypto_example) | ||
(modules crypto_example) | ||
(preprocess (pps js_of_ocaml-ppx)) | ||
(libraries ezjs_crypto) | ||
(modes js)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<html> | ||
<head> | ||
<title>Crypto example</title> | ||
<link rel="icon" href="data:,"> | ||
<script src="crypto-example.js" defer></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"start_date": { | ||
"year":2010 | ||
}, | ||
"text": { | ||
"text":"test" | ||
} | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "WebCrypto binding" | ||
maintainer: ["Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com>"] | ||
authors: [ | ||
"Cagdas Bozman <cagdas.bozman@ocamlpro.com>" | ||
"Michael Laporte <michael.laporte@ocamlpro.com>" | ||
"Fabrice Le Fessant <fabrice.le_fessant@ocamlpro.com>" | ||
"Maxime Levillain <maxime.levillain@ocamlpro.com>" | ||
"Steven de Oliveira <steven.de_oliveira@ocamlpro.com>" | ||
] | ||
license: "GPL-3.0-or-later" | ||
homepage: "https://github.com/ocamlpro/ezjs" | ||
doc: "https://ocamlpro.github.io/ezjs/doc" | ||
bug-reports: "https://github.com/ocamlpro/ezjs/issues" | ||
depends: [ | ||
"dune" {>= "2.5"} | ||
"ezjs_min" | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/ocamlpro/ezjs.git" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(library | ||
(public_name ezjs_crypto) | ||
(preprocess (pps js_of_ocaml-ppx)) | ||
(libraries ezjs_min)) |
Oops, something went wrong.