def _generate_property_iv(entity_iv, pk, rk, property_name, isJavaV1):
digest = Hash(SHA256(), default_backend())<EOL>if not isJavaV1:<EOL><INDENT>digest.update(entity_iv +<EOL>(rk + pk + property_name).encode('<STR_LIT:utf-8>'))<EOL><DEDENT>else:<EOL><INDENT>digest.update(entity_iv + <EOL>(pk + rk + property_name).encode('<STR_LIT:utf-8>'))<EOL><DEDENT>propertyIV = digest.finalize()<EOL>return propertyIV[:<NUM_LIT:16>]<EOL>
Uses the entity_iv, partition key, and row key to generate and return
the iv for the specified property.