blob: 1f7e314045d35d0bdb9d6540d6d4a80174d1878f [file] [log] [blame]
Vadim Bendebury0a050712015-05-29 11:35:04 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_CPRIMISC_FP_H
8#define __TPM2_CPRIMISC_FP_H
9
10BIGNUM *BnFrom2B(
11 BIGNUM *out, // OUT: The BIGNUM
12 const TPM2B *in // IN: the TPM2B to copy
13 );
14BOOL BnTo2B(
15 TPM2B *outVal, // OUT: place for the result
16 BIGNUM *inVal, // IN: number to convert
17 UINT16 size // IN: size of the output.
18 );
19void Copy2B(
20 TPM2B *out, // OUT: The TPM2B to receive the copy
21 TPM2B *in // IN: the TPM2B to copy
22);
23
24#endif // __TPM2_CPRIMISC_FP_H