Top | ![]() |
![]() |
![]() |
![]() |
JcatContext * | jcat_context_new () |
void | jcat_context_add_public_key () |
void | jcat_context_add_public_keys () |
JcatEngine * | jcat_context_get_engine () |
void | jcat_context_set_keyring_path () |
const gchar * | jcat_context_get_keyring_path () |
JcatResult * | jcat_context_verify_blob () |
GPtrArray * | jcat_context_verify_item () |
void jcat_context_add_public_key (JcatContext *self
,const gchar *filename
);
Adds a single public key.
Since: 0.1.0
void jcat_context_add_public_keys (JcatContext *self
,const gchar *path
);
Adds a public key directory.
Since: 0.1.0
JcatEngine * jcat_context_get_engine (JcatContext *self
,JcatBlobKind kind
,GError **error
);
Gets the engine for a specific engine kind, setting up the context automartically if requried.
Since: 0.1.0
void jcat_context_set_keyring_path (JcatContext *self
,const gchar *path
);
Sets the local state directory for the engines to use.
Since: 0.1.0
const gchar *
jcat_context_get_keyring_path (JcatContext *self
);
Gets the local state directory the engines are using.
Since: 0.1.0
JcatResult * jcat_context_verify_blob (JcatContext *self
,GBytes *data
,JcatBlob *blob
,JcatVerifyFlags flags
,GError **error
);
Verifies a JcatBlob using the public keys added to the context.
Since: 0.1.0
GPtrArray * jcat_context_verify_item (JcatContext *self
,GBytes *data
,JcatItem *item
,JcatVerifyFlags flags
,GError **error
);
Verifies a JcatItem using the public keys added to the context. All
verify=CHECKSUM
engines (e.g. SHA256) must verify correctly,
but only one non-checksum signature has to verify.
Since: 0.1.0