| 113 | }; |
| 114 | |
| 115 | void Arc4::setKey(CheckStatusWrapper* status, ICryptKey* key) |
| 116 | { |
| 117 | status->init(); |
| 118 | try |
| 119 | { |
| 120 | unsigned int l; |
| 121 | const void* k = key->getEncryptKey(&l); |
| 122 | en = createCypher(l, k); |
| 123 | |
| 124 | k = key->getDecryptKey(&l); |
| 125 | de = createCypher(l, k); |
| 126 | } |
| 127 | catch (const Exception& ex) |
| 128 | { |
| 129 | ex.stuffException(status); |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | void Arc4::encrypt(CheckStatusWrapper* status, unsigned int length, const void* from, void* to) |
| 134 | { |
nothing calls this directly
no test coverage detected