docs: def store_in_internal_db(args, hsm, modhex_id, public_id, kh, aead):
      """ Store record (AEAD) in YubiHSM internal DB """
      if args.verbose:
          print "    %i bytes (%s) -> internal db..." % \
              (len(aead.data), shorten_aead(aead)),
      try:
          hsm.db_store_yubikey(public_id.decode('hex'), kh, aead)
          if args.verbose:
              print "OK"
      except pyhsm.exception.YHSM_CommandFailed as e:
          if args.verbose:
              print "%s" % (pyhsm.defines.status2str(e.status))
          else:
              print "Storing ID %s FAILED: %s" % (modhex_id, pyhsm.defines.status2str(e.status))
          return False
      return True