MCPcopy Index your code
hub / github.com/assaultcube/AC / authkey

Method authkey

source/src/crypto.cpp:1006–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004vector<authkey *> authkeys;
1005
1006authkey::authkey(const char *aname, const char *privkey) : name(NULL)
1007{
1008 if(*aname && strlen(privkey) == 64 && hex2bin(sk, privkey, 32) == 32)
1009 {
1010 ed25519_pubkey_from_private(sk + 32, sk);
1011 name = newstring(aname);
1012 }
1013}
1014
1015bool delauthkey(const char *name)
1016{

Callers

nothing calls this directly

Calls 3

hex2binFunction · 0.85
newstringFunction · 0.85

Tested by

no test coverage detected