@@ -387,6 +387,9 @@ static inline u32 tpm2_rc_value(u32 rc)
return (rc & BIT(7)) ? rc & 0xff : rc;
}
+extern int tpm2_rsa_decrypt(struct tpm_chip *chip, u32 parent,
+ const unsigned char *keyblob, size_t bloblen,
+ const void *data, size_t len, void *out);
#else
static inline int tpm_is_tpm2(struct tpm_chip *chip)
{
@@ -418,5 +421,11 @@ static inline struct tpm_chip *tpm_default_chip(void)
{
return NULL;
}
+static inline int tpm2_rsa_decrypt(struct tpm_chip *chip, u32 parent,
+ const unsigned char *keyblob, size_t bloblen,
+ const void *data, size_t len, void *out)
+{
+ return -ENODEV;
+}
#endif
#endif