1*a642a948SDawid Frycki /* Copyright 2018 Intel 2*a642a948SDawid Frycki * 3*a642a948SDawid Frycki * Licensed under the Apache License, Version 2.0 (the "License"); 4*a642a948SDawid Frycki * you may not use this file except in compliance with the License. 5*a642a948SDawid Frycki * You may obtain a copy of the License at 6*a642a948SDawid Frycki * 7*a642a948SDawid Frycki * http://www.apache.org/licenses/LICENSE-2.0 8*a642a948SDawid Frycki * 9*a642a948SDawid Frycki * Unless required by applicable law or agreed to in writing, software 10*a642a948SDawid Frycki * distributed under the License is distributed on an "AS IS" BASIS, 11*a642a948SDawid Frycki * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*a642a948SDawid Frycki * See the License for the specific language governing permissions and 13*a642a948SDawid Frycki * limitations under the License. 14*a642a948SDawid Frycki */ 15*a642a948SDawid Frycki 16*a642a948SDawid Frycki #ifndef IPMBUTILS_HPP 17*a642a948SDawid Frycki #define IPMBUTILS_HPP 18*a642a948SDawid Frycki 19*a642a948SDawid Frycki /** 20*a642a948SDawid Frycki * @brief function performing IPMB header and data checksum validation 21*a642a948SDawid Frycki */ 22*a642a948SDawid Frycki bool isFrameValid(IPMB_HEADER* frame, uint8_t length); 23*a642a948SDawid Frycki 24*a642a948SDawid Frycki /** 25*a642a948SDawid Frycki * @brief function computing IPMB layer checksum 26*a642a948SDawid Frycki */ 27*a642a948SDawid Frycki uint8_t ipmbChecksumCompute(uint8_t* data, uint8_t length); 28*a642a948SDawid Frycki 29*a642a948SDawid Frycki #endif 30