blob: 63d1193cc3917e4e087cb821919ed0b179da4b42 [file] [log] [blame]
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef BVB_REFIMPL_COMPILATION
#error "Never include this file, it may only be used from internal bvb code."
#endif
#ifndef BVB_UTIL_INTERNAL_H_
#define BVB_UTIL_INTERNAL_H_
#include "bvb_rsa.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Copies |header| to |dest|, byte-swapping fields in the process. */
void bvb_rsa_public_key_header_to_host_byte_order(
const BvbRSAPublicKeyHeader* src,
BvbRSAPublicKeyHeader* dest);
#ifdef __cplusplus
}
#endif
#endif /* BVB_UTIL_INTERNAL_H_ */