@@ -1256,6 +1256,18 @@ WOLFTPM_API int wolfTPM2_SensitiveToPrivate(TPM2B_SENSITIVE* sens, TPM2B_PRIVATE
12561256 TPMI_ALG_HASH nameAlg , TPM2B_NAME * name , const WOLFTPM2_KEY * parentKey ,
12571257 TPMT_SYM_DEF_OBJECT * sym , TPM2B_DATA * symSeed );
12581258
1259+ /*!
1260+ \ingroup wolfTPM2_Wrappers
1261+ \brief Converts a big-endian byte array to a native word32 value.
1262+ Used for RSA exponent conversion from ASN.1/DER format.
1263+
1264+ \param e pointer to big-endian byte array
1265+ \param eSz size of the byte array (max 4 bytes)
1266+
1267+ \return word32 value in native byte order
1268+ */
1269+ WOLFTPM_API word32 wolfTPM2_RsaKey_Exponent (const byte * e , word32 eSz );
1270+
12591271#ifndef WOLFTPM2_NO_WOLFCRYPT
12601272/*!
12611273 \ingroup wolfTPM2_Wrappers
@@ -1320,18 +1332,6 @@ WOLFTPM_API int wolfTPM2_ImportPublicKeyBuffer(WOLFTPM2_DEV* dev, int keyType,
13201332WOLFTPM_API int wolfTPM2_ExportPublicKeyBuffer (WOLFTPM2_DEV * dev , WOLFTPM2_KEY * tpmKey ,
13211333 int encodingType , byte * out , word32 * outSz );
13221334
1323- /*!
1324- \ingroup wolfTPM2_Wrappers
1325- \brief Converts a big-endian byte array to a native word32 value.
1326- Used for RSA exponent conversion from ASN.1/DER format.
1327-
1328- \param e pointer to big-endian byte array
1329- \param eSz size of the byte array (max 4 bytes)
1330-
1331- \return word32 value in native byte order
1332- */
1333- WOLFTPM_API word32 wolfTPM2_RsaKey_Exponent (const byte * e , word32 eSz );
1334-
13351335#ifndef NO_RSA
13361336
13371337/*!
0 commit comments