Home | History | Annotate | Download | only in asn1

Lines Matching defs:len

63 int ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
64 { return M_ASN1_BIT_STRING_set(x, d, len); }
68 int ret,j,bits,len;
73 len=a->length;
75 if (len > 0)
83 for ( ; len > 0; len--)
85 if (a->data[len-1]) break;
87 j=a->data[len-1];
102 ret=1+len;
109 memcpy(p,d,len);
110 p+=len;
111 if (len > 0) p[-1]&=(0xff<<bits);
117 const unsigned char **pp, long len)
124 if (len < 1)
145 if (len-- > 1) /* using one because of the bits left byte */
147 s=(unsigned char *)OPENSSL_malloc((int)len);
153 memcpy(s,p,(int)len);
154 s[len-1]&=(0xff<<i);
155 p+=len;
160 ret->length=(int)len;
230 * 'len' is the length of 'flags'.