Lines Matching +full:encode +full:- +full:only
1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2 /* include/k5-der.h - Distinguished Encoding Rules (DER) declarations */
34 * Most ASN.1 encoding and decoding is done using the table-driven framework in
35 * libkrb5. When that is not an option, these helpers can be used to encode
44 #include "k5-buf.h"
45 #include "k5-input.h"
47 /* Return the number of bytes needed to encode len as a DER encoding length. */
63 /* Return the number of bytes needed to encode a DER value (with identifier
86 *p = 0x80 | (llen - 1); in k5_der_add_taglen()
87 /* Encode the length bytes backwards so the most significant byte is in k5_der_add_taglen()
91 *--p = len & 0xFF; in k5_der_add_taglen()
109 * length, and return true. Otherwise return false. Only set an error on in
119 if (in->status || in->len == 0 || *in->ptr != idbyte) in k5_der_get_taglen()
138 if (in->status) in k5_der_get_taglen()
148 * and return true. Otherwise return false. Only set an error on in if the
150 * may be aliased to in; it will only be written to on successful decoding of a