Lines Matching full:plain
136 u8 *plain, size_t *plain_len) in pkcs1_decrypt_public_key() argument
142 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0) in pkcs1_decrypt_public_key()
157 plain[0] != 0x00 || plain[1] != 0x01) { in pkcs1_decrypt_public_key()
160 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
164 pos = plain + 3; in pkcs1_decrypt_public_key()
166 if (plain[2] != 0xff) { in pkcs1_decrypt_public_key()
169 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
172 while (pos < plain + len && *pos == 0xff) in pkcs1_decrypt_public_key()
175 if (pos - plain - 2 < 8) { in pkcs1_decrypt_public_key()
179 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
183 if (pos + 16 /* min hash len */ >= plain + len || *pos != 0x00) { in pkcs1_decrypt_public_key()
186 wpa_hexdump_key(MSG_DEBUG, "Signature EB", plain, len); in pkcs1_decrypt_public_key()
190 len -= pos - plain; in pkcs1_decrypt_public_key()
193 os_memmove(plain, pos, len); in pkcs1_decrypt_public_key()