mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Change default tag size
This commit is contained in:
parent
4412e80d1d
commit
d8c96f9dd8
@ -228,7 +228,7 @@ def generate_key(sz):
|
|||||||
return random_bytes(sz)
|
return random_bytes(sz)
|
||||||
|
|
||||||
def generate_tag(sz):
|
def generate_tag(sz):
|
||||||
return random_bytes(sz or 16)
|
return random_bytes(sz or 32)
|
||||||
|
|
||||||
def typed_array_as_js(x):
|
def typed_array_as_js(x):
|
||||||
name = x.constructor.name or 'Uint8Array'
|
name = x.constructor.name or 'Uint8Array'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user