MCPcopy Create free account
hub / github.com/ceph/ceph / decode

Method decode

src/auth/Crypto.cc:502–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void CryptoKey::decode(bufferlist::const_iterator& bl)
503{
504 using ceph::decode;
505 decode(type, bl);
506 decode(created, bl);
507 __u16 len;
508 decode(len, bl);
509 bufferptr tmp;
510 bl.copy_deep(len, tmp);
511 if (_set_secret(type, tmp) < 0)
512 throw ceph::buffer::malformed_input("malformed secret");
513}
514
515void CryptoKey::dump(Formatter *f) const
516{

Callers

nothing calls this directly

Calls 3

copy_deepMethod · 0.80
decodeFunction · 0.70
malformed_inputClass · 0.50

Tested by

no test coverage detected