aboutsummaryrefslogtreecommitdiff
path: root/hal_internal.h
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2016-08-23 12:27:44 -0400
committerPaul Selkirk <paul@psgd.org>2016-08-23 12:31:50 -0400
commitccdb3ab006dd46c125fc0277fa0ce2d3d7660147 (patch)
tree9f58521fff8c38cc2437eb494051ad5058f97387 /hal_internal.h
parent99b022abb09ffd17fc54b4e479086444f0eeb79f (diff)
parent0166b1b370862ab34335af3d5710304dc3546499 (diff)
Merge branch 'master' of git.cryptech.is:sw/libhal
Diffstat (limited to 'hal_internal.h')
-rw-r--r--hal_internal.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/hal_internal.h b/hal_internal.h
index 1c06494..5e08c4e 100644
--- a/hal_internal.h
+++ b/hal_internal.h
@@ -244,6 +244,18 @@ extern const hal_rpc_pkey_dispatch_t hal_rpc_local_pkey_dispatch, hal_rpc_remote
#define HAL_PKEY_HANDLE_PROXIMATE_FLAG (1 << 31)
/*
+ * Mostly used by the local_pkey code, but the mixed_pkey code needs
+ * it to pad hashes for RSA PKCS #1.5 signatures. This may indicate
+ * that we need a slightly more general internal API here, but not
+ * worth worrying about as long as we can treat RSA as a special case
+ * and just pass the plain hash for everything else.
+ */
+
+extern hal_error_t hal_rpc_pkey_pkcs1_construct_digestinfo(const hal_hash_handle_t handle,
+ uint8_t *digest_info, size_t *digest_info_len,
+ const size_t digest_info_max);
+
+/*
* Keystore API.
*
* The original design for this subsystem used two separate tables,