Lines Matching defs:src
341 CopyData(KMF_DATA *src, KMF_DATA *dst)
343 if (src && dst && src->Data != NULL && src->Length > 0) {
344 dst->Length = src->Length;
348 (void) memcpy(dst->Data, src->Data, src->Length);
496 convert_signed_to_fixed(BerValue *src, BerValue *dst)
500 if (dst->bv_len > src->bv_len) {
501 cnt = dst->bv_len - src->bv_len;
504 (void) memcpy(dst->bv_val + cnt, src->bv_val,
505 src->bv_len);
508 if (dst->bv_len == src->bv_len) {
509 (void) memcpy(dst->bv_val, src->bv_val,
514 * src is larger than dest, strip leading 0s.
517 cnt = src->bv_len - dst->bv_len;
518 p = src->bv_val;
649 CopySPKI(KMF_X509_SPKI *src,
662 ret = CopyData(&src->algorithm.algorithm,
667 ret = CopyData(&src->algorithm.parameters,
672 ret = CopyData(&src->subjectPublicKey,
2535 ber_copy_data(KMF_DATA *dst, KMF_DATA *src)
2539 if (dst == NULL || src == NULL)
2542 dst->Data = malloc(src->Length);
2546 dst->Length = src->Length;
2547 (void) memcpy(dst->Data, src->Data, src->Length);