UNPKG
@libp2p/aes-ctr
Version:
latest (1.0.1)
1.0.1
1.0.0
0.0.0
Streaming AES-CTR for node and browsers
github.com/libp2p/js-libp2p-aes-ctr
libp2p/js-libp2p-aes-ctr
@libp2p/aes-ctr
/
src
/
errors.ts
12 lines
(10 loc)
•
251 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** * Thrown when key length is invalid */
export
class
InvalidKeyLengthError
extends
Error
{
static
name =
'InvalidKeyLengthError'
constructor
(
message =
'Invalid key length'
) {
super
(message)
this
.
name
=
'InvalidKeyLengthError'
} }