MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / StoreKey

Method StoreKey

extra/yassl/taocrypt/src/asn.cpp:587–604  ·  view source on GitHub ↗

Save public key

Source from the content-addressed store, hash-verified

585
586// Save public key
587void CertDecoder::StoreKey()
588{
589 if (source_.GetError().What()) return;
590
591 word32 read = source_.get_index();
592 word32 length = GetSequence();
593
594 read = source_.get_index() - read;
595 length += read;
596
597 if (source_.GetError().What()) return;
598 while (read--) source_.prev();
599
600 if (source_.IsLeft(length) == false) return;
601 key_.SetSize(length);
602 key_.SetKey(source_.get_current());
603 source_.advance(length);
604}
605
606
607// DSA has public key after group

Callers

nothing calls this directly

Calls 9

get_indexMethod · 0.80
IsLeftMethod · 0.80
SetSizeMethod · 0.80
advanceMethod · 0.80
WhatMethod · 0.45
GetErrorMethod · 0.45
prevMethod · 0.45
SetKeyMethod · 0.45
get_currentMethod · 0.45

Tested by

no test coverage detected