Lines Matching refs:plain_len
1414 CK_ULONG plain_len = 0;
1458 plain_len = OBJ_SEC_VALUE_LEN(hkey_p);
1465 rv = soft_object_to_asn1(hkey_p, NULL, &plain_len);
1468 if ((plain_data = malloc(plain_len)) == NULL)
1470 (void) memset(plain_data, 0x0, plain_len);
1471 rv = soft_object_to_asn1(hkey_p, plain_data, &plain_len);
1480 padded_len = plain_len;
1515 padded_len += (wkey_blksz - (plain_len % wkey_blksz));
1521 (void) memcpy(padded_data, plain_data, plain_len);
1536 if (padded_data != NULL && padded_len != plain_len) {
1544 (void) memset(plain_data, 0x0, plain_len);
1642 CK_ULONG plain_len = 0;
1717 &plain_len);
1722 if ((plain_data = malloc(plain_len)) == NULL) {
1726 (void) memset(plain_data, 0x0, plain_len);
1730 &plain_len);
1790 OBJ_SEC_VALUE_LEN(new_objp) = plain_len;
1792 } else if (OBJ_SEC_VALUE_LEN(new_objp) == plain_len) {
1795 } else if (OBJ_SEC_VALUE_LEN(new_objp) > plain_len) {
1799 } else { /* betw 0 and plain_len, hence padded */
1810 rv = soft_asn1_to_object(new_objp, plain_data, plain_len);
1825 (void) memset(plain_data, 0x0, plain_len);
1837 (void) memset(plain_data, 0x0, plain_len);