| 22 | } |
| 23 | |
| 24 | void Ring::unpack(octetStream& o) |
| 25 | { |
| 26 | o.get(mm); |
| 27 | if (((mm - 1) & mm) != 0) |
| 28 | { |
| 29 | o.get(phim); |
| 30 | o.get(pi); |
| 31 | o.get(pi_inv); |
| 32 | o.get(poly); |
| 33 | } |
| 34 | else if (mm != 0) |
| 35 | init(*this, mm); |
| 36 | } |
| 37 | |
| 38 | bool Ring::operator !=(const Ring& other) const |
| 39 | { |