Lines Matching defs:to
6 * The implementation was written so as to conform with Netscapes SSL.
9 * the following conditions are aheared to. The following conditions
10 * apply to all code found in this distribution, be it the RC4, RSA,
16 * the code are not to be removed.
41 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
45 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
97 * encoding, except if the first byte is >= 0x80 we need to add a zero pad.
102 * adding one to the result. This can be done less messily with a little trick.
104 * complement and 0 by the add one (due to carry) so just copy as many trailing
105 * zeros to the destination as there are in the source. The carry will add one
106 * to the last none zero octet: so complement this octet and add one and finally
107 * complement any left over until you get to the start of the string.
162 /* Copy zeros to destination as long as source is zero */
179 /* Convert just ASN1 INTEGER content octets to ASN1_INTEGER structure */
186 unsigned char *to,*s;
208 to=s;
223 to += i - 1;
225 *(to--) = 0;
230 * the form FF followed by n zero bytes: this corresponds to
232 * so we just append an extra one and set the first byte to
241 *(to--) = (*(p--) ^ 0xff) + 1;
243 for(;i > 0; i--) *(to--) = *(p--) ^ 0xff;