Searched refs:salt_buf (Results 1 – 3 of 3) sorted by relevance
451 uint8_t *plaintext = NULL, *salt_buf = NULL; in PKCS8_marshal_encrypted_private_key() local462 salt_buf = OPENSSL_malloc(salt_len); in PKCS8_marshal_encrypted_private_key()463 if (salt_buf == NULL || in PKCS8_marshal_encrypted_private_key()464 !RAND_bytes(salt_buf, salt_len)) { in PKCS8_marshal_encrypted_private_key()468 salt = salt_buf; in PKCS8_marshal_encrypted_private_key()523 OPENSSL_free(salt_buf); in PKCS8_marshal_encrypted_private_key()
277 unsigned char *salt_buf; in parse_salt() local338 salt_buf = malloc(salt_len); in parse_salt()339 if (!salt_buf) { in parse_salt()343 memcpy(salt_buf, buf, salt_len); in parse_salt()344 add_salt(salt_buf, salt_len); in parse_salt()
323 unsigned char *salt_buf; in parse_salt() local384 salt_buf = malloc(salt_len); in parse_salt()385 if (!salt_buf) { in parse_salt()389 memcpy(salt_buf, buf, salt_len); in parse_salt()390 add_salt(salt_buf, salt_len); in parse_salt()