Extended PBES2 function supporting application supplied IV and PRF NID.