1 /*
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 
10 BIGNUM *BnFrom2B(BIGNUM *out,     // OUT: The BIGNUM
11                  const TPM2B *in  // IN: the TPM2B to copy
12                  );
13 BOOL BnTo2B(TPM2B *outVal,  // OUT: place for the result
14             BIGNUM *inVal,  // IN: number to convert
15             UINT16 size     // IN: size of the output.
16             );
17 void Copy2B(TPM2B *out,  // OUT: The TPM2B to receive the copy
18             TPM2B *in    // IN: the TPM2B to copy
19             );
20 
21 #endif  // __TPM2_CPRIMISC_FP_H
22