| 61 | constexpr int MaxKeyNameLenPlus1 = 21; |
| 62 | |
| 63 | StringRef genRandomAlphanumStringRef(Arena& arena, IRandom& rng, int minLen, int maxLenPlusOne) { |
| 64 | const auto len = rng.randomInt(minLen, maxLenPlusOne); |
| 65 | auto strRaw = new (arena) uint8_t[len]; |
| 66 | for (auto i = 0; i < len; i++) |
| 67 | strRaw[i] = (uint8_t)rng.randomAlphaNumeric(); |
| 68 | return StringRef(strRaw, len); |
| 69 | } |
| 70 | |
| 71 | bool checkVerifyAlgorithm(PKeyAlgorithm algo, PublicKey key) { |
| 72 | if (algo != key.algorithm()) { |
no test coverage detected