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

Function verifyToken

fdbrpc/TokenSign.cpp:190–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool verifyToken(SignedTokenRef signedToken, PublicKey publicKey) {
191 return publicKey.verify(signedToken.token, signedToken.signature, *::EVP_sha256());
192}
193
194TokenRef makeRandomTokenSpec(Arena& arena, IRandom& rng) {
195 auto token = TokenRef{};

Callers 2

validateAndAddMethod · 0.85
TokenSign.cppFile · 0.85

Calls 14

decodeFunction · 0.85
TokenRefClass · 0.85
parseHeaderPartFunction · 0.85
getMethodFunction · 0.85
checkVerifyAlgorithmFunction · 0.85
convertEs256P1363ToDerFunction · 0.85
eatMethod · 0.80
substrMethod · 0.80
getMethod · 0.65
ArenaClass · 0.50
verifyMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected