| 110 | } |
| 111 | |
| 112 | void AESCrypt::fillRandomIV(void *vector) { |
| 113 | if (!vector) { |
| 114 | return; |
| 115 | } |
| 116 | srand((unsigned) time(nullptr)); |
| 117 | int *ptr = (int *) vector; |
| 118 | for (uint32_t i = 0; i < AES_IV_LEN / sizeof(int); i++) { |
| 119 | ptr[i] = rand(); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | static inline void |
| 124 | Rollback_cfb_decrypt(const uint8_t *input, const uint8_t *output, size_t len, AES_KEY *key, AESCryptStatus &status) { |
nothing calls this directly
no outgoing calls
no test coverage detected