Lines Matching refs:src
35 int ossl_prov_cipher_copy(PROV_CIPHER *dst, const PROV_CIPHER *src) in ossl_prov_cipher_copy() argument
37 if (src->alloc_cipher != NULL && !EVP_CIPHER_up_ref(src->alloc_cipher)) in ossl_prov_cipher_copy()
40 if (src->engine != NULL && !ENGINE_init(src->engine)) { in ossl_prov_cipher_copy()
41 EVP_CIPHER_free(src->alloc_cipher); in ossl_prov_cipher_copy()
45 dst->engine = src->engine; in ossl_prov_cipher_copy()
46 dst->cipher = src->cipher; in ossl_prov_cipher_copy()
47 dst->alloc_cipher = src->alloc_cipher; in ossl_prov_cipher_copy()
151 int ossl_prov_digest_copy(PROV_DIGEST *dst, const PROV_DIGEST *src) in ossl_prov_digest_copy() argument
153 if (src->alloc_md != NULL && !EVP_MD_up_ref(src->alloc_md)) in ossl_prov_digest_copy()
156 if (src->engine != NULL && !ENGINE_init(src->engine)) { in ossl_prov_digest_copy()
157 EVP_MD_free(src->alloc_md); in ossl_prov_digest_copy()
161 dst->engine = src->engine; in ossl_prov_digest_copy()
162 dst->md = src->md; in ossl_prov_digest_copy()
163 dst->alloc_md = src->alloc_md; in ossl_prov_digest_copy()
356 int ossl_prov_memdup(const void *src, size_t src_len, in ossl_prov_memdup() argument
359 if (src != NULL) { in ossl_prov_memdup()
360 if ((*dest = OPENSSL_memdup(src, src_len)) == NULL) in ossl_prov_memdup()