blob: f7eead45727b0d59394b3f902f55312cbf2189e8 [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
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070010BIGNUM *BnFrom2B(BIGNUM *out, // OUT: The BIGNUM
11 const TPM2B *in // IN: the TPM2B to copy
Vadim Bendebury0a050712015-05-29 11:35:04 -070012 );
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070013BOOL BnTo2B(TPM2B *outVal, // OUT: place for the result
14 BIGNUM *inVal, // IN: number to convert
15 UINT16 size // IN: size of the output.
Vadim Bendebury0a050712015-05-29 11:35:04 -070016 );
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070017void Copy2B(TPM2B *out, // OUT: The TPM2B to receive the copy
18 TPM2B *in // IN: the TPM2B to copy
19 );
Vadim Bendebury0a050712015-05-29 11:35:04 -070020
Vadim Bendeburyf788ffb2015-06-05 12:57:27 -070021#endif // __TPM2_CPRIMISC_FP_H