<s> from __future__ import absolute_import , division , print_function <EOL> from nacl . _lib import lib <EOL> crypto_scalarmult_BYTES = lib . crypto_scalarmult_bytes ( ) <EOL> crypto_scalarmult_SCALARBYTES = lib . crypto_scalarmult_scalarbytes ( ) <EOL> def crypto_scalarmult_base ( n ) : <EOL> """<STR_LIT>""" <EOL> q = lib . ffi . new ( "<STR_LIT>" , crypto_scalarmult_BYTES ) <EOL> rc = lib . crypto_scalarmult_base ( q , n ) <EOL> assert rc == <NUM_LIT:0> <EOL> return lib . ffi . buffer ( q , crypto_scalarmult_SCALARBYTES ) [ : ] <EOL> def crypto_scalarmult ( n , p ) : <EOL> """<STR_LIT>""" <EOL> q = lib . ffi . new ( "<STR_LIT>" , crypto_scalarmult_BYTES ) <EOL> rc = lib . crypto_scalarmult ( q , n , p ) <EOL> assert rc == <NUM_LIT:0> <EOL> return lib . ffi . buffer ( q , crypto_scalarmult_SCALARBYTES ) [ : ] </s>
