aboutsummaryrefslogtreecommitdiff
path: root/CpriMisc_fp.h
blob: f7eead45727b0d59394b3f902f55312cbf2189e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Copyright 2015 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef __TPM2_CPRIMISC_FP_H
#define __TPM2_CPRIMISC_FP_H

BIGNUM *BnFrom2B(BIGNUM *out,     // OUT: The BIGNUM
                 const TPM2B *in  // IN: the TPM2B to copy
                 );
BOOL BnTo2B(TPM2B *outVal,  // OUT: place for the result
            BIGNUM *inVal,  // IN: number to convert
            UINT16 size     // IN: size of the output.
            );
void Copy2B(TPM2B *out,  // OUT: The TPM2B to receive the copy
            TPM2B *in    // IN: the TPM2B to copy
            );

#endif  // __TPM2_CPRIMISC_FP_H