27 lines
555 B
JavaScript
27 lines
555 B
JavaScript
// Copyright 2015 Joyent, Inc.
|
|
|
|
var parser = require('./parser');
|
|
var signer = require('./signer');
|
|
var verify = require('./verify');
|
|
var util = require('./util');
|
|
|
|
|
|
|
|
///--- API
|
|
|
|
module.exports = {
|
|
|
|
parse: parser.parseRequest,
|
|
parseRequest: parser.parseRequest,
|
|
|
|
sign: signer.signRequest,
|
|
signRequest: signer.signRequest,
|
|
|
|
sshKeyToPEM: util.sshKeyToPEM,
|
|
sshKeyFingerprint: util.fingerprint,
|
|
pemToRsaSSHKey: util.pemToRsaSSHKey,
|
|
|
|
verify: verify.verifySignature,
|
|
verifySignature: verify.verifySignature,
|
|
verifyHMAC: verify.verifyHMAC
|
|
};
|