// File: /workspace/github_c_makefile_star2_O0/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_deep_copy_cryptographic_parameters
CryptographicParameters *
kmip_deep_copy_cryptographic_parameters(KMIP *ctx, const CryptographicParameters *value)
{
    if(NULL == ctx || NULL == value)
    {
        return(NULL);
    }

    CryptographicParameters *copy = ctx->calloc_func(ctx->state, 1, sizeof(CryptographicParameters));
    if(NULL == copy)
    {
        return(NULL);
    }

    if(NULL != value->p_source)
    {
        copy->p_source = kmip_deep_copy_byte_string(ctx, value->p_source);
        if(NULL == copy->p_source)
        {
            kmip_free_cryptographic_parameters(ctx, copy);
            ctx->free_func(ctx->state, copy);
            return(NULL);
        }
    }
    else
    {
        copy->p_source = NULL;
    }

    copy->block_cipher_mode = value->block_cipher_mode;
    copy->padding_method = value->padding_method;
    copy->hashing_algorithm = value->hashing_algorithm;
    copy->key_role_type = value->key_role_type;

    copy->digital_signature_algorithm = value->digital_signature_algorithm;
    copy->cryptographic_algorithm = value->cryptographic_algorithm;
    copy->random_iv = value->random_iv;
    copy->iv_length = value->iv_length;
    copy->tag_length = value->tag_length;
    copy->fixed_field_length = value->fixed_field_length;
    copy->invocation_field_length = value->invocation_field_length;
    copy->counter_length = value->counter_length;
    copy->initial_counter_value = value->initial_counter_value;

    copy->salt_length = value->salt_length;
    copy->mask_generator = value->mask_generator;
    copy->mask_generator_hashing_algorithm = value->mask_generator_hashing_algorithm;
    copy->trailer_field = value->trailer_field;

    return(copy);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
xorl %eax, %eax
cmpq -0x10(%rbp), %rax
je 0xbe00
xorl %eax, %eax
cmpq -0x18(%rbp), %rax
jne 0xbe0d
movq $0x0, -0x8(%rbp)
jmp 0xbfb4
movq -0x10(%rbp), %rax
movq 0x868(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movl $0x1, %esi
movl $0x50, %edx
callq *%rax
movq %rax, -0x20(%rbp)
xorl %eax, %eax
cmpq -0x20(%rbp), %rax
jne 0xbe48
movq $0x0, -0x8(%rbp)
jmp 0xbfb4
movq -0x18(%rbp), %rcx
xorl %eax, %eax
cmpq 0x40(%rcx), %rax
je 0xbeb4
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x40(%rax), %rsi
callq 0x6040
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpq 0x40(%rcx), %rax
jne 0xbeb2
movq -0x10(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x6ef0
movq -0x10(%rbp), %rax
movq 0x878(%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x890(%rcx), %rdi
movq -0x20(%rbp), %rsi
callq *%rax
movq $0x0, -0x8(%rbp)
jmp 0xbfb4
jmp 0xbec0
movq -0x20(%rbp), %rax
movq $0x0, 0x40(%rax)
movq -0x18(%rbp), %rax
movl (%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x18(%rbp), %rax
movl 0x8(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x18(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x18(%rbp), %rax
movl 0x14(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x18(%rbp), %rax
movl 0x18(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x18(%rbp), %rax
movl 0x1c(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x18(%rbp), %rax
movl 0x20(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x18(%rbp), %rax
movl 0x24(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x18(%rbp), %rax
movl 0x28(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x2c(%rax)
movq -0x18(%rbp), %rax
movl 0x30(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x18(%rbp), %rax
movl 0x34(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x34(%rax)
movq -0x18(%rbp), %rax
movl 0x38(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x38(%rax)
movq -0x18(%rbp), %rax
movl 0x3c(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x3c(%rax)
movq -0x18(%rbp), %rax
movl 0x48(%rax), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x48(%rax)
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nop