Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « Crypto.Protocol.AllOrNothing »

Fonction long_to_bytes - module Crypto.Protocol.AllOrNothing

Signature de la fonction long_to_bytes

def long_to_bytes(n, blocksize=0) 

Description

long_to_bytes.__doc__

long_to_bytes(n:long, blocksize:int) : string
    Convert a long integer to a byte string.

    If optional blocksize is given and greater than zero, pad the front of the
    byte string with binary zeros so that the length is a multiple of
    blocksize.