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 | |
| 10 | BIGNUM *BnFrom2B( |
| 11 | BIGNUM *out, // OUT: The BIGNUM |
| 12 | const TPM2B *in // IN: the TPM2B to copy |
| 13 | ); |
| 14 | BOOL 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 | ); |
| 19 | void 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 |