Lines Matching refs:big
567 get_bigint_attr_from_template(biginteger_t *big, CK_ATTRIBUTE_PTR template) in get_bigint_attr_from_template() argument
573 big->big_value = malloc(template->ulValueLen); in get_bigint_attr_from_template()
574 if (big->big_value == NULL) { in get_bigint_attr_from_template()
578 (void) memcpy(big->big_value, template->pValue, in get_bigint_attr_from_template()
580 big->big_value_len = template->ulValueLen; in get_bigint_attr_from_template()
582 big->big_value = NULL; in get_bigint_attr_from_template()
583 big->big_value_len = 0; in get_bigint_attr_from_template()
595 get_bigint_attr_from_object(biginteger_t *big, CK_ATTRIBUTE_PTR template) in get_bigint_attr_from_object() argument
599 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
603 if (big->big_value == NULL) { in get_bigint_attr_from_object()
608 if (template->ulValueLen >= big->big_value_len) { in get_bigint_attr_from_object()
613 (void) memcpy(template->pValue, big->big_value, in get_bigint_attr_from_object()
614 big->big_value_len); in get_bigint_attr_from_object()
615 template->ulValueLen = big->big_value_len; in get_bigint_attr_from_object()
802 bigint_attr_cleanup(biginteger_t *big) in bigint_attr_cleanup() argument
805 if (big == NULL) in bigint_attr_cleanup()
808 if (big->big_value) { in bigint_attr_cleanup()
809 (void) memset(big->big_value, 0, big->big_value_len); in bigint_attr_cleanup()
810 free(big->big_value); in bigint_attr_cleanup()
811 big->big_value = NULL; in bigint_attr_cleanup()
812 big->big_value_len = 0; in bigint_attr_cleanup()