MCPcopy Create free account
hub / github.com/apple/foundationdb / checkVerifyAlgorithm

Function checkVerifyAlgorithm

fdbrpc/TokenSign.cpp:71–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool 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
83bool checkSignAlgorithm(PKeyAlgorithm algo, PrivateKey key) {
84 if (algo != key.algorithm()) {

Callers 1

verifyTokenFunction · 0.85

Calls 5

TraceEventClass · 0.85
pkeyAlgorithmNameFunction · 0.85
algorithmMethod · 0.80
detailMethod · 0.80
algorithmNameMethod · 0.80

Tested by

no test coverage detected