@@ -1,4 +1,27 @@
|
||||
export * as signature from './src/signature'
|
||||
export * as boxes from './src/boxes'
|
||||
export * as JWT from './src/jwt'
|
||||
import * as sig from './src/signature'
|
||||
import * as bx from './src/boxes'
|
||||
import * as jwt from './src/jwt'
|
||||
|
||||
export const JWT = jwt.JWTcontext
|
||||
export const boxes = {
|
||||
secret: {
|
||||
box: bx.SecretBox,
|
||||
wrap: bx.SecretWrap
|
||||
},
|
||||
private: {
|
||||
box: bx.PrivateBox,
|
||||
wrap: bx.SecretWrap
|
||||
},
|
||||
pwd: {
|
||||
box: bx.PwdBox,
|
||||
wrap: bx.PwdWrap
|
||||
},
|
||||
}
|
||||
export const signature = {
|
||||
sign: sig.sign,
|
||||
verify: sig.verify,
|
||||
gen_keypair: sig.gen_keypair,
|
||||
from_password: sig.from_password,
|
||||
}
|
||||
|
||||
export {pbkdf} from './src/pbkdf'
|
||||
|
||||
Reference in New Issue
Block a user