示例#1
0
        public RopSign get_revocation_signature(int tag = 0)
        {
            int ret = (int)lib.rnp_uid_get_revocation_signature(huid, out RopHandle sg);

            if (own.TryGetTarget(out RopBind bind))
            {
                RopSign sign = new RopSign(bind, Util.PopHandle(lib, sg, ret));
                bind.PutObj(sign, tag);
                return(sign);
            }
            throw new RopError(RopBind.ROP_ERROR_INTERNAL);
        }
示例#2
0
        public RopSign get_signature_at(int idx, int tag = 0)
        {
            int ret = (int)lib.rnp_key_get_signature_at(kid, (uint)idx, out RopHandle hnd);

            if (own.TryGetTarget(out RopBind bind))
            {
                RopSign sign = new RopSign(bind, Util.PopHandle(lib, hnd, ret));
                bind.PutObj(sign, tag);
                return(sign);
            }
            throw new RopError(RopBind.ROP_ERROR_INTERNAL);
        }