Lines Matching refs:blake2b
68 :func:`sha512`, :func:`blake2b`, and :func:`blake2s`.
81 :func:`blake2b` and :func:`blake2s` were added.
300 single: blake2b, blake2s
324 .. function:: blake2b(data=b'', *, digest_size=64, key=b'', salt=b'', \
404 .. data:: blake2b.SALT_SIZE
410 .. data:: blake2b.PERSON_SIZE
416 .. data:: blake2b.MAX_KEY_SIZE
422 .. data:: blake2b.MAX_DIGEST_SIZE
435 calling the appropriate constructor function (:func:`blake2b` or
440 >>> from hashlib import blake2b
441 >>> h = blake2b()
450 >>> from hashlib import blake2b
451 >>> blake2b(b'Hello world').hexdigest()
457 >>> from hashlib import blake2b
459 >>> h = blake2b()
473 >>> from hashlib import blake2b
474 >>> h = blake2b(digest_size=20)
487 >>> from hashlib import blake2b, blake2s
488 >>> blake2b(digest_size=10).hexdigest()
490 >>> blake2b(digest_size=11).hexdigest()
510 >>> from hashlib import blake2b
511 >>> h = blake2b(key=b'pseudorandom key', digest_size=16)
520 >>> from hashlib import blake2b
527 ... h = blake2b(digest_size=AUTH_SIZE, key=SECRET_KEY)
597 >>> from hashlib import blake2b
600 >>> salt1 = os.urandom(blake2b.SALT_SIZE)
601 >>> h1 = blake2b(salt=salt1)
604 >>> salt2 = os.urandom(blake2b.SALT_SIZE)
605 >>> h2 = blake2b(salt=salt2)
632 >>> from hashlib import blake2b
635 >>> h = blake2b(digest_size=32, person=FILES_HASH_PERSON)
639 >>> h = blake2b(digest_size=32, person=BLOCK_HASH_PERSON)
669 >>> from hashlib import blake2b
679 ... h00 = blake2b(buf[0:LEAF_SIZE], fanout=FANOUT, depth=DEPTH,
683 ... h01 = blake2b(buf[LEAF_SIZE:], fanout=FANOUT, depth=DEPTH,
687 ... h10 = blake2b(digest_size=32, fanout=FANOUT, depth=DEPTH,