#NEWLINE# def pack( self ) : #NEWLINE# #INDENT# fmt = ( b'< B I %is BBB 2s' % pyhsm . defines . YSM_AEAD_NONCE_SIZE ) #NEWLINE# val = struct . pack ( '> H' , self . value ) #NEWLINE# return struct . pack ( fmt , self . flags , self . key_handle , self . nonce , 0 , 0 , 0 , val )