Lines Matching refs:blake2s
68 :func:`sha512`, :func:`blake2b`, and :func:`blake2s`.
81 :func:`blake2b` and :func:`blake2s` were added.
285 single: blake2b, blake2s
313 .. function:: blake2s(data=b'', *, digest_size=32, key=b'', salt=b'', \
388 .. data:: blake2s.SALT_SIZE
394 .. data:: blake2s.PERSON_SIZE
400 .. data:: blake2s.MAX_KEY_SIZE
406 .. data:: blake2s.MAX_DIGEST_SIZE
419 :func:`blake2s`), then update it with the data by calling :meth:`update` on the
470 >>> from hashlib import blake2b, blake2s
475 >>> blake2s(digest_size=10).hexdigest()
477 >>> blake2s(digest_size=11).hexdigest()
533 >>> m = hmac.new(b'secret key', digestmod=hashlib.blake2s)
630 >>> from hashlib import blake2s
633 >>> enc_key = blake2s(key=orig_key, person=b'kEncrypt').digest()
634 >>> mac_key = blake2s(key=orig_key, person=b'kMAC').digest()