Lines Matching refs:base_ptr
521 unsigned char *base_ptr; in _sodium_malloc() local
538 if ((base_ptr = _alloc_aligned(total_size)) == NULL) { in _sodium_malloc()
541 unprotected_ptr = base_ptr + page_size * 2U; in _sodium_malloc()
542 _mprotect_noaccess(base_ptr + page_size, page_size); in _sodium_malloc()
552 memcpy(base_ptr, &unprotected_size, sizeof unprotected_size); in _sodium_malloc()
553 _mprotect_readonly(base_ptr, page_size); in _sodium_malloc()
593 unsigned char *base_ptr; in sodium_free() local
604 base_ptr = unprotected_ptr - page_size * 2U; in sodium_free()
605 memcpy(&unprotected_size, base_ptr, sizeof unprotected_size); in sodium_free()
607 _mprotect_readwrite(base_ptr, total_size); in sodium_free()
618 _free_aligned(base_ptr, total_size); in sodium_free()
635 unsigned char *base_ptr; in _sodium_mprotect() local
640 base_ptr = unprotected_ptr - page_size * 2U; in _sodium_mprotect()
641 memcpy(&unprotected_size, base_ptr, sizeof unprotected_size); in _sodium_mprotect()