Lines Matching refs:EM
163 static int RSA_verify(const u8 *H, const u8 *EM, size_t k, size_t hash_size, in RSA_verify() argument
174 if (EM[1] != 0x01) { in RSA_verify()
175 kleave(" = -EBADMSG [EM[1] == %02u]", EM[1]); in RSA_verify()
181 if (EM[PS_end] != 0x00) { in RSA_verify()
182 kleave(" = -EBADMSG [EM[T-1] == %02u]", EM[PS_end]); in RSA_verify()
187 if (EM[i] != 0xff) { in RSA_verify()
188 kleave(" = -EBADMSG [EM[PS%x] == %02u]", i - 2, EM[i]); in RSA_verify()
193 if (crypto_memneq(asn1_template, EM + T_offset, asn1_size) != 0) { in RSA_verify()
198 if (crypto_memneq(H, EM + T_offset + asn1_size, hash_size) != 0) { in RSA_verify()
218 u8 *EM = NULL; in RSA_verify_signature() local
256 ret = RSA_I2OSP(m, k, &EM); in RSA_verify_signature()
260 ret = RSA_verify(H, EM - 1, k, sig->digest_size, in RSA_verify_signature()
265 kfree(EM); in RSA_verify_signature()