| 69 | } |
| 70 | |
| 71 | bool checkVerifyAlgorithm(PKeyAlgorithm algo, PublicKey key) { |
| 72 | if (algo != key.algorithm()) { |
| 73 | TraceEvent(SevWarnAlways, "TokenVerifyAlgoMismatch") |
| 74 | .suppressFor(10) |
| 75 | .detail("Expected", pkeyAlgorithmName(algo)) |
| 76 | .detail("PublicKeyAlgorithm", key.algorithmName()); |
| 77 | return false; |
| 78 | } else { |
| 79 | return true; |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | bool checkSignAlgorithm(PKeyAlgorithm algo, PrivateKey key) { |
| 84 | if (algo != key.algorithm()) { |
no test coverage detected