Home | History | Annotate | Download | only in bn_extra

Lines Matching defs:in_len

113 // decode_hex decodes |in_len| bytes of hex data from |in| and updates |bn|.
114 static int decode_hex(BIGNUM *bn, const char *in, int in_len) {
115 if (in_len > INT_MAX/4) {
119 // |in_len| is the number of hex digits.
120 if (!bn_expand(bn, in_len * 4)) {
125 while (in_len > 0) {
128 if (todo > in_len) {
129 todo = in_len;
135 char c = in[in_len - j];
153 in_len -= todo;
160 // decode_dec decodes |in_len| bytes of decimal data from |in| and updates |bn|.
161 static int decode_dec(BIGNUM *bn, const char *in, int in_len) {
166 j = BN_DEC_NUM - (in_len % BN_DEC_NUM);
171 for (i = 0; i < in_len; i++) {
186 typedef int (*decode_func) (BIGNUM *bn, const char *in, int in_len);
429 const size_t in_len = ((size_t)in[0] << 24) |
433 if (in_len != len - 4) {
448 if (in_len == 0) {
454 if (BN_bin2bn(in, in_len, out) == NULL) {