Helper method: get Keyid object from hex keyid.

This commit is contained in:
Thomas Oberndörfer 2014-12-15 14:34:02 +01:00
parent c9b4f7532e
commit de0a6d1259

View File

@ -71,3 +71,9 @@ module.exports.fromClone = function (clone) {
keyid.bytes = clone.bytes;
return keyid;
};
module.exports.fromId = function (hex) {
var keyid = new Keyid();
keyid.read(util.hex2bin(hex));
return keyid;
};