Lines Matching defs:plain
135 u8 *plain, size_t *plain_len)
141 if (crypto_rsa_exptmod(crypt, crypt_len, plain, &len, key, 0) < 0)
154 plain[0] != 0x00 || (plain[1] != 0x00 && plain[1] != 0x01)) {
160 pos = plain + 3;
161 if (plain[1] == 0x00) {
163 if (plain[2] != 0x00) {
168 while (pos + 1 < plain + len && *pos == 0x00 && pos[1] == 0x00)
172 if (plain[2] != 0xff) {
177 while (pos < plain + len && *pos == 0xff)
181 if (pos - plain - 2 < 8) {
188 if (pos + 16 /* min hash len */ >= plain + len || *pos != 0x00) {
194 len -= pos - plain;
197 os_memmove(plain, pos, len);