Lines Matching refs:em
93 $em = $this->i2osp($m2, $this->k);
94 if ($em === false) {
106 $r1 = hash_equals($em, $em2);
113 $r2 = hash_equals($em, $em3);
161 $em = $this->i2osp($m2, $this->k);
162 if ($em === false) {
166 if (Strings::shift($em, 2) != "\0\1") {
170 $em = ltrim($em, "\xFF");
171 if (Strings::shift($em) != "\0") {
175 $decoded = ASN1::decodeBER($em);
176 if (!is_array($decoded) || empty($decoded[0]) || strlen($em) > $decoded[0]['length']) {
216 $em = $hash->hash($m);
219 return hash_equals($em, $em2);
229 * @param string $em
233 private function emsa_pss_verify($m, $em, $emBits) argument
246 if ($em[strlen($em) - 1] != chr(0xBC)) {
250 $maskedDB = substr($em, 0, -$this->hLen - 1);
251 $h = substr($em, -$this->hLen - 1, $this->hLen);
293 $em = $this->i2osp($m2, $this->k);
294 if ($em === false) {
300 return $this->emsa_pss_verify($m, $em, $modBits - 1);
355 $em = chr(0) . chr($type) . $ps . chr(0) . $m;
358 $m = $this->os2ip($em);
401 $em = chr(0) . $maskedSeed . $maskedDB;
405 $m = $this->os2ip($em);