Lines Matching defs:dst
68 pad_bigint_attr(biginteger_t *src, biginteger_t *dst)
72 /* Src and dst must already by previously allocated. */
73 if (src == NULL || dst == NULL)
77 dst->big_value = NULL;
78 dst->big_value_len = 0;
85 if (dst->big_value != NULL)
86 (void) memset(dst->big_value, 0x0, dst->big_value_len);
89 dst->big_value_len = src->big_value_len + padding;
91 dst->big_value = realloc(dst->big_value, dst->big_value_len);
92 if (dst->big_value == NULL)
96 dst->big_value[0] = 0x0;
97 (void) memcpy(&(dst->big_value[padding]), src->big_value,
109 unpad_bigint_attr(biginteger_t src, biginteger_t *dst)
113 if (dst == NULL)
117 dst->big_value = NULL;
118 dst->big_value_len = 0;
123 dst->big_value_len = src.big_value_len - offset;
130 dst->big_value = malloc(dst->big_value_len);
131 if (dst->big_value == NULL)
134 (void) memcpy(dst->big_value, &(src.big_value[offset]),
135 dst->big_value_len);