59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
export type CryptoDigestKind = "md5" | "sha1" | "sha256" | "sha512"
|
|
|
|
export type CryptoMacKind = "sha1" | "sha256" | "sha512"
|
|
|
|
export type CryptoCodecKind = "utf8" | "hex" | "base64" | "base64url" | "latin1" | "utf16"
|
|
|
|
export type CryptoBlockMode = "ECB" | "CBC" | "CFB" | "CTR" | "CTRGladman" | "OFB"
|
|
|
|
export type CryptoPaddingKind = "PKCS7" | "ANSI_X923" | "ISO_10126" | "ISO_97971" | "NONE" | "ZERO"
|
|
|
|
export type RsaOutputKind = "base64" | "hex"
|
|
|
|
export type CryptoTextCipherOptions = {
|
|
mode : CryptoBlockMode,
|
|
padding : CryptoPaddingKind,
|
|
ivText : string | null,
|
|
keyLength : number | null
|
|
}
|
|
|
|
export type CryptoByteCipherOptions = {
|
|
mode : CryptoBlockMode,
|
|
padding : CryptoPaddingKind,
|
|
ivBytes : Uint8Array | null,
|
|
keyLength : number | null
|
|
}
|
|
|
|
export type CryptoTripleDesOptions = {
|
|
mode : "ECB" | "CBC",
|
|
ivText : string | null
|
|
}
|
|
|
|
export type CryptoDesOptions = {
|
|
mode : CryptoBlockMode,
|
|
padding : CryptoPaddingKind,
|
|
ivText : string | null
|
|
}
|
|
|
|
export type CryptoRsaPair = {
|
|
publicKey : string,
|
|
privateKey : string
|
|
}
|
|
|
|
export type RSARANDOMKEY = CryptoRsaPair
|
|
|
|
export type RSAKeyPair = CryptoRsaPair
|
|
|
|
export type CryptoRuntimeSnapshot = {
|
|
platformName : string,
|
|
engineName : string,
|
|
supportsAdvancedModes : boolean,
|
|
usesNativeBridge : boolean
|
|
}
|
|
|
|
export type CryptoBridgeErrorCode = 7401 | 7402 | 7403 | 7404 | 7405 | 7406 | 7407 | 7408 | 7409 | 7410
|
|
|
|
export interface CryptoBridgeFailure extends IUniError {
|
|
errCode : CryptoBridgeErrorCode
|
|
}
|