no subtleossl

This commit is contained in:
Mark Nadal 2018-02-19 10:02:40 -08:00
parent 9ddf13620c
commit a6cf6218fd
3 changed files with 6 additions and 1 deletions

View File

@ -85,6 +85,10 @@ ul, li {
.rim {
margin: 2%;
}
.gap {
padding: 3%;
}
.loud {
font-size: 150%;
}

2
sea.js
View File

@ -485,7 +485,7 @@
// Derive shared secret from other's pub and my epub/epriv
async derive(pub, { epub, epriv }) {
try {
const { importKey, deriveKey, exportKey } = subtleossl || subtle
const { importKey, deriveKey, exportKey } = wc.ossl || subtle
const keystoecdhjwk = (pub, priv) => {
const [ x, y ] = Buffer.from(pub, 'base64').toString('utf8').split(':')
const jwk = priv ? { d: priv, key_ops: ['decrypt'] } : { key_ops: ['encrypt'] }

View File

@ -17,6 +17,7 @@
<script src="../examples/jquery.js"></script>
<script src="../gun.js"></script>
<script src="../sea.js"></script>
<script src="../lib/then.js"></script>
<script>
var gun = Gun();