This project is a Tauri plugin which allows for hardware KeyStore (Secure Enclave (iOS) & StrongBox (Android)) control and management on iOS and Android devices with a consistent API.
| Platform | Supported |
|---|---|
| Linux | x |
| Windows | x |
| macOS | x |
| Android | ✓ |
| iOS | ✓ |
import { generate } from "@auvo/tauri-plugin-crypto-hw-api";
async function generate() {
generate("default")
.then((returnValue) => {
genRes = returnValue;
})
.catch((error) => {
genRes = error;
});
}import { exists } from "@auvo/tauri-plugin-crypto-hw-api";
async function exists() {
exists("default")
.then((returnValue) => {
genRes = returnValue;
})
.catch((error) => {
genRes = error;
});
}import { getPublicKey } from "@auvo/tauri-plugin-crypto-hw-api";
async function getPublicKey() {
getPublicKey("default")
.then((returnValue) => {
genRes = returnValue;
})
.catch((error) => {
genRes = error;
});
}import { signPayload } from "@auvo/tauri-plugin-crypto-hw-api";
async function signPayload() {
signPayload("default")
.then((returnValue) => {
genRes = returnValue;
})
.catch((error) => {
genRes = error;
});
}import { verifySignature } from "@auvo/tauri-plugin-crypto-hw-api";
async function verifySignature() {
verifySignature("default")
.then((returnValue) => {
genRes = returnValue;
})
.catch((error) => {
genRes = error;
});
}This permission set configures which crypto features are by default exposed.
crypto-hw:default: It allows access to all crypto commands.
allow-generateallow-existsallow-get-public-keyallow-sign-payloadallow-verify-signature
| Identifier | Description |
|---|---|
|
|
Enables the exists command without any pre-configured scope. |
|
|
Denies the exists command without any pre-configured scope. |
|
|
Enables the generate command without any pre-configured scope. |
|
|
Denies the generate command without any pre-configured scope. |
|
|
Enables the get_public_key command without any pre-configured scope. |
|
|
Denies the get_public_key command without any pre-configured scope. |
|
|
Enables the sign_payload command without any pre-configured scope. |
|
|
Denies the sign_payload command without any pre-configured scope. |
|
|
Enables the verify_signature command without any pre-configured scope. |
|
|
Denies the verify_signature command without any pre-configured scope. |