Vadim Bendebury | 0a05071 | 2015-05-29 11:35:04 -0700 | [diff] [blame] | 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 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 10 | BIGNUM *BnFrom2B(BIGNUM *out, // OUT: The BIGNUM |
| 11 | const TPM2B *in // IN: the TPM2B to copy |
Vadim Bendebury | 0a05071 | 2015-05-29 11:35:04 -0700 | [diff] [blame] | 12 | ); |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 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. |
Vadim Bendebury | 0a05071 | 2015-05-29 11:35:04 -0700 | [diff] [blame] | 16 | ); |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 17 | void Copy2B(TPM2B *out, // OUT: The TPM2B to receive the copy |
| 18 | TPM2B *in // IN: the TPM2B to copy |
| 19 | ); |
Vadim Bendebury | 0a05071 | 2015-05-29 11:35:04 -0700 | [diff] [blame] | 20 | |
Vadim Bendebury | f788ffb | 2015-06-05 12:57:27 -0700 | [diff] [blame] | 21 | #endif // __TPM2_CPRIMISC_FP_H |