Home | History | Annotate | Download | only in keymaster

Lines Matching refs:end

120     uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
121 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
124 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0;
125 virtual bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) = 0;
135 uint8_t* Serialize(uint8_t* buf, const uint8_t* /* end */) const override { return buf; }
136 bool Deserialize(const uint8_t** /* buf_ptr */, const uint8_t* /* end */) override {
145 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
146 return append_uint32_to_buf(buf, end, algorithm);
148 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
149 return copy_uint32_from_buf(buf_ptr, end, &algorithm);
170 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
171 buf = append_uint32_to_buf(buf, end, algorithm);
172 return append_uint32_to_buf(buf, end, purpose);
174 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
175 return copy_uint32_from_buf(buf_ptr, end, &algorithm) &&
176 copy_uint32_from_buf(buf_ptr, end, &purpose);
220 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override {
221 return append_uint32_array_to_buf(buf, end, results, results_length);
223 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
227 if (!copy_uint32_array_from_buf(buf_ptr, end, &tmp, &results_length)) return false;
270 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
271 return key_description.Serialize(buf, end);
273 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
274 return key_description.Deserialize(buf_ptr, end);
288 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
289 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
310 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
311 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
321 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
322 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
341 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
342 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
353 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
354 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
364 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
365 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
377 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
378 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
389 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
390 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
402 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
403 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
413 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
414 return append_uint64_to_buf(buf, end, op_handle);
416 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
417 return copy_uint64_from_buf(buf_ptr, end, &op_handle);
435 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
436 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
445 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* /* end */) const override {
448 bool NonErrorDeserialize(const uint8_t** /* buf_ptr */, const uint8_t* /* end */) override {
464 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
465 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
486 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
487 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
507 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
508 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
526 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
527 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
546 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
547 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
589 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
590 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
610 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
611 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
627 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
628 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
645 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
646 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
659 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
660 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
669 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
670 buf = append_uint32_to_buf(buf, end, os_version);
671 return append_uint32_to_buf(buf, end, os_patchlevel);
673 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
674 return copy_uint32_from_buf(buf_ptr, end, &os_version) &&
675 copy_uint32_from_buf(buf_ptr, end, &os_patchlevel);
700 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
701 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
719 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
720 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
735 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override {
736 return params.Serialize(buf, end);
738 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
739 return params.Deserialize(buf_ptr, end);
749 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
750 return params_array.Serialize(buf, end);
752 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
753 return params_array.Deserialize(buf_ptr, end);
767 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
768 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
786 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
787 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
806 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override;
807 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
826 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
827 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
848 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override;
849 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
868 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override {
869 buf = append_uint64_to_buf(buf, end, challenge);
870 buf = parameters_to_verify.Serialize(buf, end);
871 return auth_token.Serialize(buf, end);
874 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
875 return (copy_uint64_from_buf(buf_ptr, end, &challenge) &&
876 parameters_to_verify.Deserialize(buf_ptr, end) &&
877 auth_token.Deserialize(buf_ptr, end));
893 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const override {
894 buf = append_uint32_to_buf(buf, end, error);
895 return token.Serialize(buf, end);
897 bool NonErrorDeserialize(const uint8_t** buf_ptr, const uint8_t* end) override {
898 return copy_uint32_from_buf(buf_ptr, end, &error) && token.Deserialize(buf_ptr, end);