@cathaysia/crown-wasm 0.19.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/crown_wasm.d.ts +118 -118
- package/crown_wasm_bg.js +484 -484
- package/crown_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/crown_wasm.d.ts
CHANGED
|
@@ -4,206 +4,206 @@ export class AeadCipher {
|
|
|
4
4
|
private constructor();
|
|
5
5
|
free(): void;
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
|
+
nonce_size(): number;
|
|
7
8
|
static new_aes_gcm(key: Uint8Array): AeadCipher;
|
|
8
|
-
static new_aes_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
9
|
-
static new_blowfish_gcm(key: Uint8Array): AeadCipher;
|
|
10
|
-
static new_blowfish_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
11
|
-
static new_cast5_gcm(key: Uint8Array): AeadCipher;
|
|
12
|
-
static new_cast5_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
13
9
|
static new_des_gcm(key: Uint8Array): AeadCipher;
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
10
|
+
static new_rc2_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
11
|
+
static new_rc5_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
12
|
+
static new_rc6_gcm(key: Uint8Array): AeadCipher;
|
|
13
|
+
static new_sm4_gcm(key: Uint8Array): AeadCipher;
|
|
17
14
|
static new_tea_gcm(key: Uint8Array): AeadCipher;
|
|
15
|
+
static new_aes_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
16
|
+
static new_des_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
17
|
+
static new_idea_gcm(key: Uint8Array): AeadCipher;
|
|
18
|
+
static new_rc6_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
19
|
+
static new_sm4_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
18
20
|
static new_tea_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
19
|
-
static new_twofish_gcm(key: Uint8Array): AeadCipher;
|
|
20
|
-
static new_twofish_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
21
21
|
static new_xtea_gcm(key: Uint8Array): AeadCipher;
|
|
22
|
+
static new_cast5_gcm(key: Uint8Array): AeadCipher;
|
|
23
|
+
static new_idea_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
24
|
+
static new_kseed_gcm(key: Uint8Array): AeadCipher;
|
|
22
25
|
static new_xtea_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
23
|
-
static
|
|
24
|
-
static
|
|
25
|
-
static new_sm4_gcm(key: Uint8Array): AeadCipher;
|
|
26
|
-
static new_sm4_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
27
|
-
static new_skipjack_gcm(key: Uint8Array): AeadCipher;
|
|
28
|
-
static new_skipjack_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
26
|
+
static new_anubis_gcm(key: Uint8Array): AeadCipher;
|
|
27
|
+
static new_cast5_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
29
28
|
static new_kasumi_gcm(key: Uint8Array): AeadCipher;
|
|
30
|
-
static
|
|
31
|
-
static new_kseed_gcm(key: Uint8Array): AeadCipher;
|
|
29
|
+
static new_khazad_gcm(key: Uint8Array): AeadCipher;
|
|
32
30
|
static new_kseed_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
33
|
-
static
|
|
31
|
+
static new_multi2_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
34
32
|
static new_anubis_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
35
|
-
static
|
|
36
|
-
static new_noekeon_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
37
|
-
static new_khazad_gcm(key: Uint8Array): AeadCipher;
|
|
33
|
+
static new_kasumi_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
38
34
|
static new_khazad_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
35
|
+
static new_noekeon_gcm(key: Uint8Array): AeadCipher;
|
|
39
36
|
static new_serpent_gcm(key: Uint8Array): AeadCipher;
|
|
40
|
-
static
|
|
41
|
-
static
|
|
42
|
-
static new_idea_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
43
|
-
static new_rc2_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
44
|
-
static new_rc5_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
37
|
+
static new_twofish_gcm(key: Uint8Array): AeadCipher;
|
|
38
|
+
static new_blowfish_gcm(key: Uint8Array): AeadCipher;
|
|
45
39
|
static new_camellia_gcm(key: Uint8Array, rounds?: number | null): AeadCipher;
|
|
46
|
-
static
|
|
40
|
+
static new_noekeon_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
41
|
+
static new_serpent_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
42
|
+
static new_skipjack_gcm(key: Uint8Array): AeadCipher;
|
|
43
|
+
static new_twofish_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
44
|
+
static new_blowfish_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
45
|
+
static new_skipjack_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
46
|
+
static new_tripledes_gcm(key: Uint8Array): AeadCipher;
|
|
47
|
+
static new_tripledes_ocb3(key: Uint8Array, tag_size: number, nonce_size: number): AeadCipher;
|
|
47
48
|
static new_chacha20_poly1305(key: Uint8Array): AeadCipher;
|
|
48
49
|
static new_xchacha20_poly1305(key: Uint8Array): AeadCipher;
|
|
49
|
-
nonce_size(): number;
|
|
50
|
-
tag_size(): number;
|
|
51
|
-
seal_in_place_separate_tag(data: Uint8Array, nonce: Uint8Array, aad: Uint8Array): Uint8Array;
|
|
52
50
|
open_in_place_separate_tag(data: Uint8Array, tag: Uint8Array, nonce: Uint8Array, aad: Uint8Array): void;
|
|
51
|
+
seal_in_place_separate_tag(data: Uint8Array, nonce: Uint8Array, aad: Uint8Array): Uint8Array;
|
|
52
|
+
tag_size(): number;
|
|
53
53
|
}
|
|
54
54
|
export class BlockCipher {
|
|
55
55
|
private constructor();
|
|
56
56
|
free(): void;
|
|
57
57
|
[Symbol.dispose](): void;
|
|
58
58
|
static new_aes_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
59
|
-
static new_blowfish_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
60
|
-
static new_cast5_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
61
59
|
static new_des_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
62
|
-
static
|
|
63
|
-
static
|
|
64
|
-
static new_twofish_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
65
|
-
static new_xtea_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
66
|
-
static new_idea_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
60
|
+
static new_rc2_cbc(key: Uint8Array, iv: Uint8Array, rounds?: number | null): BlockCipher;
|
|
61
|
+
static new_rc5_cbc(key: Uint8Array, iv: Uint8Array, rounds?: number | null): BlockCipher;
|
|
67
62
|
static new_rc6_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
68
63
|
static new_sm4_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
69
|
-
static
|
|
70
|
-
static
|
|
64
|
+
static new_tea_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
65
|
+
static new_idea_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
66
|
+
static new_xtea_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
67
|
+
static new_cast5_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
71
68
|
static new_kseed_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
72
69
|
static new_anubis_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
73
|
-
static
|
|
70
|
+
static new_kasumi_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
74
71
|
static new_khazad_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
72
|
+
static new_multi2_cbc(key: Uint8Array, iv: Uint8Array, rounds?: number | null): BlockCipher;
|
|
73
|
+
static new_noekeon_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
75
74
|
static new_serpent_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
76
|
-
static
|
|
77
|
-
static
|
|
75
|
+
static new_twofish_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
76
|
+
static new_blowfish_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
78
77
|
static new_camellia_cbc(key: Uint8Array, iv: Uint8Array, rounds?: number | null): BlockCipher;
|
|
79
|
-
static
|
|
80
|
-
|
|
78
|
+
static new_skipjack_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
79
|
+
static new_tripledes_cbc(key: Uint8Array, iv: Uint8Array): BlockCipher;
|
|
81
80
|
decrypt(data: Uint8Array): number;
|
|
81
|
+
encrypt(data: Uint8Array, pos: number): number;
|
|
82
82
|
}
|
|
83
83
|
export class Hash {
|
|
84
84
|
private constructor();
|
|
85
85
|
free(): void;
|
|
86
86
|
[Symbol.dispose](): void;
|
|
87
|
-
|
|
87
|
+
block_size(): number;
|
|
88
|
+
static new_sha224(): Hash;
|
|
89
|
+
static new_sha256(): Hash;
|
|
90
|
+
static new_sha384(): Hash;
|
|
91
|
+
static new_sha512(): Hash;
|
|
92
|
+
static new_blake2b(key: Uint8Array | null | undefined, output_len: number): Hash;
|
|
93
|
+
static new_blake2s(key: Uint8Array | null | undefined, output_len: number): Hash;
|
|
88
94
|
static new_md2_hmac(key: Uint8Array): Hash;
|
|
89
|
-
static new_md4(): Hash;
|
|
90
95
|
static new_md4_hmac(key: Uint8Array): Hash;
|
|
91
|
-
static new_md5(): Hash;
|
|
92
96
|
static new_md5_hmac(key: Uint8Array): Hash;
|
|
93
|
-
static
|
|
97
|
+
static new_sha3_224(): Hash;
|
|
98
|
+
static new_sha3_256(): Hash;
|
|
99
|
+
static new_sha3_384(): Hash;
|
|
100
|
+
static new_sha3_512(): Hash;
|
|
101
|
+
static new_shake128(): Hash;
|
|
102
|
+
static new_shake256(): Hash;
|
|
103
|
+
static new_sm3_hmac(key: Uint8Array): Hash;
|
|
94
104
|
static new_sha1_hmac(key: Uint8Array): Hash;
|
|
95
|
-
static
|
|
105
|
+
static new_sha512_224(): Hash;
|
|
106
|
+
static new_sha512_256(): Hash;
|
|
96
107
|
static new_sha224_hmac(key: Uint8Array): Hash;
|
|
97
|
-
static new_sha256(): Hash;
|
|
98
108
|
static new_sha256_hmac(key: Uint8Array): Hash;
|
|
99
|
-
static new_sha384(): Hash;
|
|
100
109
|
static new_sha384_hmac(key: Uint8Array): Hash;
|
|
101
|
-
static new_sha512(): Hash;
|
|
102
110
|
static new_sha512_hmac(key: Uint8Array): Hash;
|
|
103
|
-
static new_sha512_224(): Hash;
|
|
104
|
-
static new_sha512_224_hmac(key: Uint8Array): Hash;
|
|
105
|
-
static new_sha512_256(): Hash;
|
|
106
|
-
static new_sha512_256_hmac(key: Uint8Array): Hash;
|
|
107
|
-
static new_sha3_224(): Hash;
|
|
108
111
|
static new_sha3_224_hmac(key: Uint8Array): Hash;
|
|
109
|
-
static new_sha3_256(): Hash;
|
|
110
112
|
static new_sha3_256_hmac(key: Uint8Array): Hash;
|
|
111
|
-
static new_sha3_384(): Hash;
|
|
112
113
|
static new_sha3_384_hmac(key: Uint8Array): Hash;
|
|
113
|
-
static new_sha3_512(): Hash;
|
|
114
114
|
static new_sha3_512_hmac(key: Uint8Array): Hash;
|
|
115
|
-
static new_shake128(): Hash;
|
|
116
115
|
static new_shake128_hmac(key: Uint8Array): Hash;
|
|
117
|
-
static new_shake256(): Hash;
|
|
118
116
|
static new_shake256_hmac(key: Uint8Array): Hash;
|
|
119
|
-
static
|
|
120
|
-
static
|
|
121
|
-
static new_blake2s(key: Uint8Array | null | undefined, output_len: number): Hash;
|
|
122
|
-
static new_blake2b(key: Uint8Array | null | undefined, output_len: number): Hash;
|
|
123
|
-
write(data: Uint8Array): number;
|
|
124
|
-
flush(): void;
|
|
125
|
-
read(buf: Uint8Array): number;
|
|
117
|
+
static new_sha512_224_hmac(key: Uint8Array): Hash;
|
|
118
|
+
static new_sha512_256_hmac(key: Uint8Array): Hash;
|
|
126
119
|
sum(): Uint8Array;
|
|
127
|
-
|
|
120
|
+
read(buf: Uint8Array): number;
|
|
128
121
|
size(): number;
|
|
129
|
-
|
|
122
|
+
flush(): void;
|
|
123
|
+
reset(): void;
|
|
124
|
+
write(data: Uint8Array): number;
|
|
125
|
+
static new_md2(): Hash;
|
|
126
|
+
static new_md4(): Hash;
|
|
127
|
+
static new_md5(): Hash;
|
|
128
|
+
static new_sm3(): Hash;
|
|
129
|
+
static new_sha1(): Hash;
|
|
130
130
|
}
|
|
131
131
|
export class StreamCipher {
|
|
132
132
|
private constructor();
|
|
133
133
|
free(): void;
|
|
134
134
|
[Symbol.dispose](): void;
|
|
135
|
+
static new_rabbit(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
135
136
|
static new_aes_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
136
137
|
static new_aes_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
137
138
|
static new_aes_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
138
|
-
static new_blowfish_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
139
|
-
static new_blowfish_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
140
|
-
static new_blowfish_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
141
|
-
static new_cast5_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
142
|
-
static new_cast5_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
143
|
-
static new_cast5_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
144
139
|
static new_des_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
145
140
|
static new_des_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
146
141
|
static new_des_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
147
|
-
static
|
|
148
|
-
static
|
|
149
|
-
static
|
|
150
|
-
static
|
|
151
|
-
static
|
|
152
|
-
static
|
|
153
|
-
static new_twofish_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
154
|
-
static new_twofish_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
155
|
-
static new_twofish_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
156
|
-
static new_xtea_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
157
|
-
static new_xtea_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
158
|
-
static new_xtea_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
159
|
-
static new_idea_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
160
|
-
static new_idea_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
161
|
-
static new_idea_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
142
|
+
static new_rc2_cfb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
143
|
+
static new_rc2_ctr(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
144
|
+
static new_rc2_ofb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
145
|
+
static new_rc5_cfb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
146
|
+
static new_rc5_ctr(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
147
|
+
static new_rc5_ofb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
162
148
|
static new_rc6_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
163
149
|
static new_rc6_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
164
150
|
static new_rc6_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
151
|
+
static new_salsa20(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
165
152
|
static new_sm4_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
166
153
|
static new_sm4_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
167
154
|
static new_sm4_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
168
|
-
static
|
|
169
|
-
static
|
|
170
|
-
static
|
|
171
|
-
static
|
|
172
|
-
static
|
|
173
|
-
static
|
|
155
|
+
static new_tea_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
156
|
+
static new_tea_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
157
|
+
static new_tea_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
158
|
+
static new_chacha20(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
159
|
+
static new_idea_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
160
|
+
static new_idea_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
161
|
+
static new_idea_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
162
|
+
static new_sober128(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
163
|
+
static new_xtea_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
164
|
+
static new_xtea_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
165
|
+
static new_xtea_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
166
|
+
static new_cast5_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
167
|
+
static new_cast5_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
168
|
+
static new_cast5_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
174
169
|
static new_kseed_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
175
170
|
static new_kseed_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
176
171
|
static new_kseed_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
172
|
+
static new_sosemanuk(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
177
173
|
static new_anubis_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
178
174
|
static new_anubis_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
179
175
|
static new_anubis_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
180
|
-
static
|
|
181
|
-
static
|
|
182
|
-
static
|
|
176
|
+
static new_kasumi_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
177
|
+
static new_kasumi_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
178
|
+
static new_kasumi_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
183
179
|
static new_khazad_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
184
180
|
static new_khazad_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
185
181
|
static new_khazad_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
182
|
+
static new_multi2_cfb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
183
|
+
static new_multi2_ctr(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
184
|
+
static new_multi2_ofb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
185
|
+
static new_noekeon_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
186
|
+
static new_noekeon_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
187
|
+
static new_noekeon_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
186
188
|
static new_serpent_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
187
189
|
static new_serpent_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
188
190
|
static new_serpent_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
189
|
-
static
|
|
190
|
-
static
|
|
191
|
-
static
|
|
192
|
-
static
|
|
193
|
-
static
|
|
194
|
-
static
|
|
191
|
+
static new_twofish_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
192
|
+
static new_twofish_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
193
|
+
static new_twofish_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
194
|
+
static new_blowfish_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
195
|
+
static new_blowfish_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
196
|
+
static new_blowfish_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
195
197
|
static new_camellia_cfb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
196
198
|
static new_camellia_ctr(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
197
199
|
static new_camellia_ofb(key: Uint8Array, iv: Uint8Array, rounds?: number | null): StreamCipher;
|
|
198
|
-
static
|
|
199
|
-
static
|
|
200
|
-
static
|
|
201
|
-
static
|
|
202
|
-
static
|
|
203
|
-
static
|
|
204
|
-
static new_rabbit(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
205
|
-
static new_sosemanuk(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
206
|
-
static new_sober128(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
207
|
-
encrypt(data: Uint8Array): void;
|
|
200
|
+
static new_skipjack_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
201
|
+
static new_skipjack_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
202
|
+
static new_skipjack_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
203
|
+
static new_tripledes_cfb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
204
|
+
static new_tripledes_ctr(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
205
|
+
static new_tripledes_ofb(key: Uint8Array, iv: Uint8Array): StreamCipher;
|
|
208
206
|
decrypt(data: Uint8Array): void;
|
|
207
|
+
encrypt(data: Uint8Array): void;
|
|
208
|
+
static new_rc4(key: Uint8Array): StreamCipher;
|
|
209
209
|
}
|